From a9f9d37286873d877fd87a7f30cb231a04df7022 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 7 May 2023 10:09:38 +0000 Subject: [PATCH 1/2] feat: Max concurrent backfill tasks You can now set the number of maximum concurrent backfill tasks for a stream using the Datastream API. PiperOrigin-RevId: 530067890 Source-Link: https://github.com/googleapis/googleapis/commit/b2c290faf99f388efb1e080333cba620f38e5afc Source-Link: https://github.com/googleapis/googleapis-gen/commit/83c5413e535cb6fa710541dc6e169a8a44b8a65d Copy-Tag: eyJwIjoiamF2YS1kYXRhc3RyZWFtLy5Pd2xCb3QueWFtbCIsImgiOiI4M2M1NDEzZTUzNWNiNmZhNzEwNTQxZGM2ZTE2OWE4YTQ0YjhhNjVkIn0= --- .../cloud/datastream/v1/DatastreamGrpc.java | 3234 ----------------- .../datastream/v1alpha1/DatastreamGrpc.java | 2782 -------------- .../v1/AvroFileFormatOrBuilder.java | 24 - .../v1/BigQueryProfileOrBuilder.java | 24 - .../cloud/datastream/v1/DatastreamProto.java | 809 ----- .../v1/DatastreamResourcesProto.java | 1176 ------ .../v1/FetchStaticIpsRequestOrBuilder.java | 96 - .../GetConnectionProfileRequestOrBuilder.java | 54 - .../GetPrivateConnectionRequestOrBuilder.java | 54 - .../v1/GetRouteRequestOrBuilder.java | 54 - .../v1/GetStreamObjectRequestOrBuilder.java | 54 - .../v1/GetStreamRequestOrBuilder.java | 54 - .../LookupStreamObjectRequestOrBuilder.java | 96 - .../v1/PrivateConnectivityOrBuilder.java | 56 - .../v1/SourceObjectIdentifierOrBuilder.java | 156 - .../v1/StartBackfillJobRequestOrBuilder.java | 54 - .../StaticServiceIpConnectivityOrBuilder.java | 24 - .../v1/StopBackfillJobRequestOrBuilder.java | 54 - .../v1alpha1/AvroFileFormatOrBuilder.java | 24 - .../CloudDatastreamResourcesProto.java | 832 ----- .../v1alpha1/CloudDatastreamServiceProto.java | 699 ---- .../GetConnectionProfileRequestOrBuilder.java | 54 - .../GetPrivateConnectionRequestOrBuilder.java | 54 - .../v1alpha1/GetRouteRequestOrBuilder.java | 54 - .../v1alpha1/GetStreamRequestOrBuilder.java | 54 - .../NoConnectivitySettingsOrBuilder.java | 24 - .../PrivateConnectivityOrBuilder.java | 38 - .../StaticServiceIpConnectivityOrBuilder.java | 24 - .../cloud/datastream/v1/DatastreamClient.java | 3 + .../datastream/v1/DatastreamSettings.java | 1 + .../cloud/datastream/v1/gapic_metadata.json | 0 .../cloud/datastream/v1/package-info.java | 0 .../datastream/v1/stub/DatastreamStub.java | 0 .../v1/stub/DatastreamStubSettings.java | 0 .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1/stub/GrpcDatastreamStub.java | 1 + .../HttpJsonDatastreamCallableFactory.java | 0 .../v1/stub/HttpJsonDatastreamStub.java | 2 + .../v1/DatastreamClientHttpJsonTest.java | 0 .../datastream/v1/DatastreamClientTest.java | 0 .../cloud/datastream/v1/MockDatastream.java | 0 .../datastream/v1/MockDatastreamImpl.java | 0 .../cloud/datastream/v1/MockIAMPolicy.java | 0 .../datastream/v1/MockIAMPolicyImpl.java | 0 .../cloud/datastream/v1/MockLocations.java | 0 .../datastream/v1/MockLocationsImpl.java | 0 .../cloud/datastream/v1/DatastreamGrpc.java | 2419 ++++++++++++ .../cloud/datastream/v1/AvroFileFormat.java | 244 +- .../v1/AvroFileFormatOrBuilder.java | 9 + .../cloud/datastream/v1/BackfillJob.java | 1060 ++---- .../datastream/v1/BackfillJobOrBuilder.java | 109 +- .../v1/BigQueryDestinationConfig.java | 2504 +++++-------- .../BigQueryDestinationConfigOrBuilder.java | 81 +- .../cloud/datastream/v1/BigQueryProfile.java | 244 +- .../v1/BigQueryProfileOrBuilder.java | 9 + .../datastream/v1/ConnectionProfile.java | 1909 ++++------ .../datastream/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 191 +- .../v1/CreateConnectionProfileRequest.java | 753 ++-- ...eateConnectionProfileRequestOrBuilder.java | 83 +- .../v1/CreatePrivateConnectionRequest.java | 744 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 83 +- .../datastream/v1/CreateRouteRequest.java | 616 ++-- .../v1/CreateRouteRequestOrBuilder.java | 70 +- .../datastream/v1/CreateStreamRequest.java | 705 ++-- .../v1/CreateStreamRequestOrBuilder.java | 76 +- .../cloud/datastream/v1/DatastreamProto.java | 742 ++++ .../v1/DatastreamResourcesProto.java | 1004 +++++ .../v1/DeleteConnectionProfileRequest.java | 441 +-- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../v1/DeletePrivateConnectionRequest.java | 493 +-- ...letePrivateConnectionRequestOrBuilder.java | 51 +- .../datastream/v1/DeleteRouteRequest.java | 425 +-- .../v1/DeleteRouteRequestOrBuilder.java | 44 +- .../datastream/v1/DeleteStreamRequest.java | 425 +-- .../v1/DeleteStreamRequestOrBuilder.java | 44 +- .../datastream/v1/DestinationConfig.java | 684 ++-- .../v1/DestinationConfigOrBuilder.java | 66 +- .../v1/DiscoverConnectionProfileRequest.java | 1101 ++---- ...overConnectionProfileRequestOrBuilder.java | 105 +- .../v1/DiscoverConnectionProfileResponse.java | 605 ++- ...verConnectionProfileResponseOrBuilder.java | 45 +- .../com/google/cloud/datastream/v1/Error.java | 789 ++-- .../cloud/datastream/v1/ErrorOrBuilder.java | 83 +- .../datastream/v1/FetchStaticIpsRequest.java | 486 +-- .../v1/FetchStaticIpsRequestOrBuilder.java | 63 + .../datastream/v1/FetchStaticIpsResponse.java | 432 +-- .../v1/FetchStaticIpsResponseOrBuilder.java | 45 +- .../v1/ForwardSshTunnelConnectivity.java | 658 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../datastream/v1/GcsDestinationConfig.java | 718 ++-- .../v1/GcsDestinationConfigOrBuilder.java | 63 +- .../cloud/datastream/v1/GcsProfile.java | 390 +- .../datastream/v1/GcsProfileOrBuilder.java | 36 +- .../v1/GetConnectionProfileRequest.java | 356 +- .../GetConnectionProfileRequestOrBuilder.java | 29 + .../v1/GetPrivateConnectionRequest.java | 356 +- .../GetPrivateConnectionRequestOrBuilder.java | 29 + .../cloud/datastream/v1/GetRouteRequest.java | 346 +- .../v1/GetRouteRequestOrBuilder.java | 29 + .../datastream/v1/GetStreamObjectRequest.java | 356 +- .../v1/GetStreamObjectRequestOrBuilder.java | 29 + .../cloud/datastream/v1/GetStreamRequest.java | 349 +- .../v1/GetStreamRequestOrBuilder.java | 29 + .../cloud/datastream/v1/JsonFileFormat.java | 534 +-- .../v1/JsonFileFormatOrBuilder.java | 36 +- .../v1/ListConnectionProfilesRequest.java | 617 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../v1/ListConnectionProfilesResponse.java | 589 ++- ...stConnectionProfilesResponseOrBuilder.java | 60 +- .../v1/ListPrivateConnectionsRequest.java | 638 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 71 +- .../v1/ListPrivateConnectionsResponse.java | 589 ++- ...stPrivateConnectionsResponseOrBuilder.java | 60 +- .../datastream/v1/ListRoutesRequest.java | 604 ++- .../v1/ListRoutesRequestOrBuilder.java | 65 +- .../datastream/v1/ListRoutesResponse.java | 586 ++- .../v1/ListRoutesResponseOrBuilder.java | 64 +- .../v1/ListStreamObjectsRequest.java | 461 +-- .../v1/ListStreamObjectsRequestOrBuilder.java | 47 +- .../v1/ListStreamObjectsResponse.java | 481 +-- .../ListStreamObjectsResponseOrBuilder.java | 45 +- .../datastream/v1/ListStreamsRequest.java | 604 ++- .../v1/ListStreamsRequestOrBuilder.java | 65 +- .../datastream/v1/ListStreamsResponse.java | 586 ++- .../v1/ListStreamsResponseOrBuilder.java | 63 +- .../cloud/datastream/v1/LocationName.java | 0 .../v1/LookupStreamObjectRequest.java | 519 +-- .../LookupStreamObjectRequestOrBuilder.java | 56 + .../cloud/datastream/v1/MysqlColumn.java | 602 ++- .../datastream/v1/MysqlColumnOrBuilder.java | 57 +- .../cloud/datastream/v1/MysqlDatabase.java | 476 +-- .../datastream/v1/MysqlDatabaseOrBuilder.java | 45 +- .../cloud/datastream/v1/MysqlProfile.java | 617 ++-- .../datastream/v1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1/MysqlRdbms.java | 381 +- .../datastream/v1/MysqlRdbmsOrBuilder.java | 36 +- .../datastream/v1/MysqlSourceConfig.java | 567 ++- .../v1/MysqlSourceConfigOrBuilder.java | 49 +- .../cloud/datastream/v1/MysqlSslConfig.java | 600 ++- .../v1/MysqlSslConfigOrBuilder.java | 62 +- .../cloud/datastream/v1/MysqlTable.java | 476 +-- .../datastream/v1/MysqlTableOrBuilder.java | 45 +- .../datastream/v1/OperationMetadata.java | 997 ++--- .../v1/OperationMetadataOrBuilder.java | 116 +- .../cloud/datastream/v1/OracleColumn.java | 668 ++-- .../datastream/v1/OracleColumnOrBuilder.java | 63 +- .../cloud/datastream/v1/OracleProfile.java | 792 ++-- .../datastream/v1/OracleProfileOrBuilder.java | 87 +- .../cloud/datastream/v1/OracleRdbms.java | 396 +- .../datastream/v1/OracleRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/OracleSchema.java | 476 +-- .../datastream/v1/OracleSchemaOrBuilder.java | 45 +- .../datastream/v1/OracleSourceConfig.java | 1586 ++++---- .../v1/OracleSourceConfigOrBuilder.java | 102 +- .../cloud/datastream/v1/OracleTable.java | 468 +-- .../datastream/v1/OracleTableOrBuilder.java | 45 +- .../cloud/datastream/v1/PostgresqlColumn.java | 599 ++- .../v1/PostgresqlColumnOrBuilder.java | 54 +- .../datastream/v1/PostgresqlProfile.java | 576 ++- .../v1/PostgresqlProfileOrBuilder.java | 57 +- .../cloud/datastream/v1/PostgresqlRdbms.java | 390 +- .../v1/PostgresqlRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/PostgresqlSchema.java | 463 +-- .../v1/PostgresqlSchemaOrBuilder.java | 45 +- .../datastream/v1/PostgresqlSourceConfig.java | 752 ++-- .../v1/PostgresqlSourceConfigOrBuilder.java | 84 +- .../cloud/datastream/v1/PostgresqlTable.java | 462 +-- .../v1/PostgresqlTableOrBuilder.java | 45 +- .../datastream/v1/PrivateConnection.java | 1354 +++---- .../datastream/v1/PrivateConnectionName.java | 0 .../v1/PrivateConnectionOrBuilder.java | 148 +- .../datastream/v1/PrivateConnectivity.java | 353 +- .../v1/PrivateConnectivityOrBuilder.java | 31 + .../com/google/cloud/datastream/v1/Route.java | 1009 ++--- .../google/cloud/datastream/v1/RouteName.java | 0 .../cloud/datastream/v1/RouteOrBuilder.java | 112 +- .../cloud/datastream/v1/SourceConfig.java | 744 ++-- .../datastream/v1/SourceConfigOrBuilder.java | 65 +- .../datastream/v1/SourceObjectIdentifier.java | 2440 +++++-------- .../v1/SourceObjectIdentifierOrBuilder.java | 92 + .../v1/StartBackfillJobRequest.java | 377 +- .../v1/StartBackfillJobRequestOrBuilder.java | 31 + .../v1/StartBackfillJobResponse.java | 356 +- .../v1/StartBackfillJobResponseOrBuilder.java | 26 +- .../v1/StaticServiceIpConnectivity.java | 262 +- .../StaticServiceIpConnectivityOrBuilder.java | 9 + .../datastream/v1/StopBackfillJobRequest.java | 377 +- .../v1/StopBackfillJobRequestOrBuilder.java | 31 + .../v1/StopBackfillJobResponse.java | 356 +- .../v1/StopBackfillJobResponseOrBuilder.java | 26 +- .../google/cloud/datastream/v1/Stream.java | 2848 ++++++--------- .../cloud/datastream/v1/StreamName.java | 0 .../cloud/datastream/v1/StreamObject.java | 1101 ++---- .../cloud/datastream/v1/StreamObjectName.java | 0 .../datastream/v1/StreamObjectOrBuilder.java | 125 +- .../cloud/datastream/v1/StreamOrBuilder.java | 225 +- .../v1/UpdateConnectionProfileRequest.java | 706 ++-- ...dateConnectionProfileRequestOrBuilder.java | 74 +- .../datastream/v1/UpdateStreamRequest.java | 674 ++-- .../v1/UpdateStreamRequestOrBuilder.java | 71 +- .../cloud/datastream/v1/Validation.java | 667 ++-- .../datastream/v1/ValidationMessage.java | 775 ++-- .../v1/ValidationMessageOrBuilder.java | 72 +- .../datastream/v1/ValidationOrBuilder.java | 60 +- .../cloud/datastream/v1/ValidationResult.java | 410 +-- .../v1/ValidationResultOrBuilder.java | 36 +- .../cloud/datastream/v1/VpcPeeringConfig.java | 421 +-- .../v1/VpcPeeringConfigOrBuilder.java | 44 +- .../cloud/datastream/v1/datastream.proto | 119 +- .../datastream/v1/datastream_resources.proto | 118 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnectionProfile.java | 0 .../AsyncCreateConnectionProfileLRO.java | 0 .../SyncCreateConnectionProfile.java | 0 ...leLocationnameConnectionprofileString.java | 0 ...nProfileStringConnectionprofileString.java | 0 .../AsyncCreatePrivateConnection.java | 1 + .../AsyncCreatePrivateConnectionLRO.java | 1 + .../SyncCreatePrivateConnection.java | 1 + ...onLocationnamePrivateconnectionString.java | 0 ...nnectionStringPrivateconnectionString.java | 0 .../createroute/AsyncCreateRoute.java | 0 .../createroute/AsyncCreateRouteLRO.java | 0 .../createroute/SyncCreateRoute.java | 0 ...RoutePrivateconnectionnameRouteString.java | 0 .../SyncCreateRouteStringRouteString.java | 0 .../createstream/AsyncCreateStream.java | 0 .../createstream/AsyncCreateStreamLRO.java | 0 .../createstream/SyncCreateStream.java | 0 ...cCreateStreamLocationnameStreamString.java | 0 .../SyncCreateStreamStringStreamString.java | 0 .../AsyncDeleteConnectionProfile.java | 0 .../AsyncDeleteConnectionProfileLRO.java | 0 .../SyncDeleteConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncDeleteConnectionProfileString.java | 0 .../AsyncDeletePrivateConnection.java | 0 .../AsyncDeletePrivateConnectionLRO.java | 0 .../SyncDeletePrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncDeletePrivateConnectionString.java | 0 .../deleteroute/AsyncDeleteRoute.java | 0 .../deleteroute/AsyncDeleteRouteLRO.java | 0 .../deleteroute/SyncDeleteRoute.java | 0 .../deleteroute/SyncDeleteRouteRoutename.java | 0 .../deleteroute/SyncDeleteRouteString.java | 0 .../deletestream/AsyncDeleteStream.java | 0 .../deletestream/AsyncDeleteStreamLRO.java | 0 .../deletestream/SyncDeleteStream.java | 0 .../SyncDeleteStreamStreamname.java | 0 .../deletestream/SyncDeleteStreamString.java | 0 .../AsyncDiscoverConnectionProfile.java | 0 .../SyncDiscoverConnectionProfile.java | 0 .../fetchstaticips/AsyncFetchStaticIps.java | 0 .../AsyncFetchStaticIpsPaged.java | 0 .../fetchstaticips/SyncFetchStaticIps.java | 0 .../SyncFetchStaticIpsLocationname.java | 0 .../SyncFetchStaticIpsString.java | 0 .../AsyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncGetConnectionProfileString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../AsyncGetPrivateConnection.java | 0 .../SyncGetPrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncGetPrivateConnectionString.java | 0 .../v1/datastream/getroute/AsyncGetRoute.java | 0 .../v1/datastream/getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../datastream/getstream/AsyncGetStream.java | 0 .../datastream/getstream/SyncGetStream.java | 0 .../getstream/SyncGetStreamStreamname.java | 0 .../getstream/SyncGetStreamString.java | 0 .../getstreamobject/AsyncGetStreamObject.java | 0 .../getstreamobject/SyncGetStreamObject.java | 0 .../SyncGetStreamObjectStreamobjectname.java | 0 .../SyncGetStreamObjectString.java | 0 .../AsyncListConnectionProfiles.java | 0 .../AsyncListConnectionProfilesPaged.java | 0 .../SyncListConnectionProfiles.java | 0 ...yncListConnectionProfilesLocationname.java | 0 .../SyncListConnectionProfilesString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncListPrivateConnections.java | 0 .../AsyncListPrivateConnectionsPaged.java | 0 .../SyncListPrivateConnections.java | 0 ...yncListPrivateConnectionsLocationname.java | 0 .../SyncListPrivateConnectionsString.java | 0 .../listroutes/AsyncListRoutes.java | 0 .../listroutes/AsyncListRoutesPaged.java | 0 .../datastream/listroutes/SyncListRoutes.java | 0 .../SyncListRoutesPrivateconnectionname.java | 0 .../listroutes/SyncListRoutesString.java | 0 .../AsyncListStreamObjects.java | 0 .../AsyncListStreamObjectsPaged.java | 0 .../SyncListStreamObjects.java | 0 .../SyncListStreamObjectsStreamname.java | 0 .../SyncListStreamObjectsString.java | 0 .../liststreams/AsyncListStreams.java | 0 .../liststreams/AsyncListStreamsPaged.java | 0 .../liststreams/SyncListStreams.java | 0 .../SyncListStreamsLocationname.java | 0 .../liststreams/SyncListStreamsString.java | 0 .../AsyncLookupStreamObject.java | 0 .../SyncLookupStreamObject.java | 0 .../AsyncStartBackfillJob.java | 0 .../SyncStartBackfillJob.java | 0 .../SyncStartBackfillJobStreamobjectname.java | 0 .../SyncStartBackfillJobString.java | 0 .../stopbackfilljob/AsyncStopBackfillJob.java | 0 .../stopbackfilljob/SyncStopBackfillJob.java | 0 .../SyncStopBackfillJobStreamobjectname.java | 0 .../SyncStopBackfillJobString.java | 0 .../AsyncUpdateConnectionProfile.java | 0 .../AsyncUpdateConnectionProfileLRO.java | 0 .../SyncUpdateConnectionProfile.java | 0 ...tionProfileConnectionprofileFieldmask.java | 0 .../updatestream/AsyncUpdateStream.java | 0 .../updatestream/AsyncUpdateStreamLRO.java | 0 .../updatestream/SyncUpdateStream.java | 0 .../SyncUpdateStreamStreamFieldmask.java | 0 .../SyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 .../datastream/v1alpha1/DatastreamClient.java | 0 .../v1alpha1/DatastreamSettings.java | 1 + .../datastream/v1alpha1/gapic_metadata.json | 0 .../datastream/v1alpha1/package-info.java | 0 .../v1alpha1/stub/DatastreamStub.java | 0 .../v1alpha1/stub/DatastreamStubSettings.java | 0 .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1alpha1/stub/GrpcDatastreamStub.java | 1 + .../HttpJsonDatastreamCallableFactory.java | 0 .../v1alpha1/stub/HttpJsonDatastreamStub.java | 1 + .../DatastreamClientHttpJsonTest.java | 0 .../v1alpha1/DatastreamClientTest.java | 0 .../datastream/v1alpha1/MockDatastream.java | 0 .../v1alpha1/MockDatastreamImpl.java | 0 .../datastream/v1alpha1/DatastreamGrpc.java | 2079 +++++++++++ .../datastream/v1alpha1/AvroFileFormat.java | 251 +- .../v1alpha1/AvroFileFormatOrBuilder.java | 9 + .../CloudDatastreamResourcesProto.java | 712 ++++ .../v1alpha1/CloudDatastreamServiceProto.java | 640 ++++ .../v1alpha1/ConnectionProfile.java | 1914 ++++------ .../v1alpha1/ConnectionProfileName.java | 0 .../v1alpha1/ConnectionProfileOrBuilder.java | 192 +- .../CreateConnectionProfileRequest.java | 704 ++-- ...eateConnectionProfileRequestOrBuilder.java | 73 +- .../CreatePrivateConnectionRequest.java | 704 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 73 +- .../v1alpha1/CreateRouteRequest.java | 645 ++-- .../v1alpha1/CreateRouteRequestOrBuilder.java | 73 +- .../v1alpha1/CreateStreamRequest.java | 723 ++-- .../CreateStreamRequestOrBuilder.java | 79 +- .../DeleteConnectionProfileRequest.java | 470 +-- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../DeletePrivateConnectionRequest.java | 506 ++- ...letePrivateConnectionRequestOrBuilder.java | 47 +- .../v1alpha1/DeleteRouteRequest.java | 428 +-- .../v1alpha1/DeleteRouteRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteStreamRequest.java | 432 +-- .../DeleteStreamRequestOrBuilder.java | 44 +- .../v1alpha1/DestinationConfig.java | 542 ++- .../v1alpha1/DestinationConfigOrBuilder.java | 50 +- .../DiscoverConnectionProfileRequest.java | 1005 ++--- ...overConnectionProfileRequestOrBuilder.java | 92 +- .../DiscoverConnectionProfileResponse.java | 531 ++- ...verConnectionProfileResponseOrBuilder.java | 37 +- .../cloud/datastream/v1alpha1/Error.java | 796 ++-- .../datastream/v1alpha1/ErrorOrBuilder.java | 83 +- .../v1alpha1/FetchErrorsRequest.java | 328 +- .../v1alpha1/FetchErrorsRequestOrBuilder.java | 27 +- .../v1alpha1/FetchErrorsResponse.java | 417 +-- .../FetchErrorsResponseOrBuilder.java | 36 +- .../v1alpha1/FetchStaticIpsRequest.java | 461 +-- .../FetchStaticIpsRequestOrBuilder.java | 47 +- .../v1alpha1/FetchStaticIpsResponse.java | 432 +-- .../FetchStaticIpsResponseOrBuilder.java | 45 +- .../ForwardSshTunnelConnectivity.java | 689 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../v1alpha1/GcsDestinationConfig.java | 831 ++--- .../GcsDestinationConfigOrBuilder.java | 83 +- .../datastream/v1alpha1/GcsFileFormat.java | 80 +- .../cloud/datastream/v1alpha1/GcsProfile.java | 393 +- .../v1alpha1/GcsProfileOrBuilder.java | 36 +- .../v1alpha1/GetConnectionProfileRequest.java | 383 +- .../GetConnectionProfileRequestOrBuilder.java | 29 + .../v1alpha1/GetPrivateConnectionRequest.java | 383 +- .../GetPrivateConnectionRequestOrBuilder.java | 29 + .../datastream/v1alpha1/GetRouteRequest.java | 353 +- .../v1alpha1/GetRouteRequestOrBuilder.java | 29 + .../datastream/v1alpha1/GetStreamRequest.java | 360 +- .../v1alpha1/GetStreamRequestOrBuilder.java | 29 + .../datastream/v1alpha1/JsonFileFormat.java | 475 +-- .../v1alpha1/JsonFileFormatOrBuilder.java | 30 +- .../ListConnectionProfilesRequest.java | 646 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../ListConnectionProfilesResponse.java | 718 ++-- ...stConnectionProfilesResponseOrBuilder.java | 74 +- .../ListPrivateConnectionsRequest.java | 646 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 65 +- .../ListPrivateConnectionsResponse.java | 718 ++-- ...stPrivateConnectionsResponseOrBuilder.java | 74 +- .../v1alpha1/ListRoutesRequest.java | 607 ++-- .../v1alpha1/ListRoutesRequestOrBuilder.java | 65 +- .../v1alpha1/ListRoutesResponse.java | 590 ++- .../v1alpha1/ListRoutesResponseOrBuilder.java | 63 +- .../v1alpha1/ListStreamsRequest.java | 611 ++-- .../v1alpha1/ListStreamsRequestOrBuilder.java | 65 +- .../v1alpha1/ListStreamsResponse.java | 594 ++- .../ListStreamsResponseOrBuilder.java | 63 +- .../datastream/v1alpha1/LocationName.java | 0 .../datastream/v1alpha1/MysqlColumn.java | 609 ++-- .../v1alpha1/MysqlColumnOrBuilder.java | 57 +- .../datastream/v1alpha1/MysqlDatabase.java | 469 +-- .../v1alpha1/MysqlDatabaseOrBuilder.java | 45 +- .../datastream/v1alpha1/MysqlProfile.java | 625 ++-- .../v1alpha1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1alpha1/MysqlRdbms.java | 396 +- .../v1alpha1/MysqlRdbmsOrBuilder.java | 36 +- .../v1alpha1/MysqlSourceConfig.java | 448 +-- .../v1alpha1/MysqlSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/MysqlSslConfig.java | 579 ++- .../v1alpha1/MysqlSslConfigOrBuilder.java | 54 +- .../cloud/datastream/v1alpha1/MysqlTable.java | 466 +-- .../v1alpha1/MysqlTableOrBuilder.java | 45 +- .../v1alpha1/NoConnectivitySettings.java | 254 +- .../NoConnectivitySettingsOrBuilder.java | 9 + .../v1alpha1/OperationMetadata.java | 995 ++--- .../v1alpha1/OperationMetadataOrBuilder.java | 111 +- .../datastream/v1alpha1/OracleColumn.java | 675 ++-- .../v1alpha1/OracleColumnOrBuilder.java | 63 +- .../datastream/v1alpha1/OracleProfile.java | 799 ++-- .../v1alpha1/OracleProfileOrBuilder.java | 87 +- .../datastream/v1alpha1/OracleRdbms.java | 397 +- .../v1alpha1/OracleRdbmsOrBuilder.java | 36 +- .../datastream/v1alpha1/OracleSchema.java | 470 +-- .../v1alpha1/OracleSchemaOrBuilder.java | 45 +- .../v1alpha1/OracleSourceConfig.java | 449 +-- .../v1alpha1/OracleSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/OracleTable.java | 469 +-- .../v1alpha1/OracleTableOrBuilder.java | 45 +- .../v1alpha1/PrivateConnection.java | 1349 +++---- .../v1alpha1/PrivateConnectionName.java | 0 .../v1alpha1/PrivateConnectionOrBuilder.java | 142 +- .../v1alpha1/PrivateConnectivity.java | 314 +- .../PrivateConnectivityOrBuilder.java | 21 + .../cloud/datastream/v1alpha1/Route.java | 1016 ++---- .../cloud/datastream/v1alpha1/RouteName.java | 0 .../datastream/v1alpha1/RouteOrBuilder.java | 112 +- .../datastream/v1alpha1/SchemaFileFormat.java | 86 +- .../datastream/v1alpha1/SourceConfig.java | 618 ++-- .../v1alpha1/SourceConfigOrBuilder.java | 52 +- .../v1alpha1/StaticServiceIpConnectivity.java | 274 +- .../StaticServiceIpConnectivityOrBuilder.java | 9 + .../cloud/datastream/v1alpha1/Stream.java | 2779 +++++--------- .../cloud/datastream/v1alpha1/StreamName.java | 0 .../datastream/v1alpha1/StreamOrBuilder.java | 206 +- .../UpdateConnectionProfileRequest.java | 657 ++-- ...dateConnectionProfileRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateStreamRequest.java | 676 ++-- .../UpdateStreamRequestOrBuilder.java | 70 +- .../cloud/datastream/v1alpha1/Validation.java | 681 ++-- .../v1alpha1/ValidationMessage.java | 786 ++-- .../v1alpha1/ValidationMessageOrBuilder.java | 72 +- .../v1alpha1/ValidationOrBuilder.java | 60 +- .../datastream/v1alpha1/ValidationResult.java | 400 +- .../v1alpha1/ValidationResultOrBuilder.java | 36 +- .../datastream/v1alpha1/VpcPeeringConfig.java | 400 +- .../v1alpha1/VpcPeeringConfigOrBuilder.java | 36 +- .../datastream/v1alpha1/datastream.proto | 0 .../v1alpha1/datastream_resources.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnectionProfile.java | 0 .../AsyncCreateConnectionProfileLRO.java | 0 .../SyncCreateConnectionProfile.java | 0 ...leLocationnameConnectionprofileString.java | 0 ...nProfileStringConnectionprofileString.java | 0 .../AsyncCreatePrivateConnection.java | 0 .../AsyncCreatePrivateConnectionLRO.java | 0 .../SyncCreatePrivateConnection.java | 0 ...onLocationnamePrivateconnectionString.java | 0 ...nnectionStringPrivateconnectionString.java | 0 .../createroute/AsyncCreateRoute.java | 0 .../createroute/AsyncCreateRouteLRO.java | 0 .../createroute/SyncCreateRoute.java | 0 ...RoutePrivateconnectionnameRouteString.java | 0 .../SyncCreateRouteStringRouteString.java | 0 .../createstream/AsyncCreateStream.java | 0 .../createstream/AsyncCreateStreamLRO.java | 0 .../createstream/SyncCreateStream.java | 0 ...cCreateStreamLocationnameStreamString.java | 0 .../SyncCreateStreamStringStreamString.java | 0 .../AsyncDeleteConnectionProfile.java | 0 .../AsyncDeleteConnectionProfileLRO.java | 0 .../SyncDeleteConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncDeleteConnectionProfileString.java | 0 .../AsyncDeletePrivateConnection.java | 0 .../AsyncDeletePrivateConnectionLRO.java | 0 .../SyncDeletePrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncDeletePrivateConnectionString.java | 0 .../deleteroute/AsyncDeleteRoute.java | 0 .../deleteroute/AsyncDeleteRouteLRO.java | 0 .../deleteroute/SyncDeleteRoute.java | 0 .../deleteroute/SyncDeleteRouteRoutename.java | 0 .../deleteroute/SyncDeleteRouteString.java | 0 .../deletestream/AsyncDeleteStream.java | 0 .../deletestream/AsyncDeleteStreamLRO.java | 0 .../deletestream/SyncDeleteStream.java | 0 .../SyncDeleteStreamStreamname.java | 0 .../deletestream/SyncDeleteStreamString.java | 0 .../AsyncDiscoverConnectionProfile.java | 0 .../SyncDiscoverConnectionProfile.java | 0 .../fetcherrors/AsyncFetchErrors.java | 0 .../fetcherrors/AsyncFetchErrorsLRO.java | 0 .../fetcherrors/SyncFetchErrors.java | 0 .../fetchstaticips/AsyncFetchStaticIps.java | 0 .../AsyncFetchStaticIpsPaged.java | 0 .../fetchstaticips/SyncFetchStaticIps.java | 0 .../SyncFetchStaticIpsLocationname.java | 0 .../SyncFetchStaticIpsString.java | 0 .../AsyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncGetConnectionProfileString.java | 0 .../AsyncGetPrivateConnection.java | 0 .../SyncGetPrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncGetPrivateConnectionString.java | 0 .../datastream/getroute/AsyncGetRoute.java | 0 .../datastream/getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../datastream/getstream/AsyncGetStream.java | 0 .../datastream/getstream/SyncGetStream.java | 0 .../getstream/SyncGetStreamStreamname.java | 0 .../getstream/SyncGetStreamString.java | 0 .../AsyncListConnectionProfiles.java | 0 .../AsyncListConnectionProfilesPaged.java | 0 .../SyncListConnectionProfiles.java | 0 ...yncListConnectionProfilesLocationname.java | 0 .../SyncListConnectionProfilesString.java | 0 .../AsyncListPrivateConnections.java | 0 .../AsyncListPrivateConnectionsPaged.java | 0 .../SyncListPrivateConnections.java | 0 ...yncListPrivateConnectionsLocationname.java | 0 .../SyncListPrivateConnectionsString.java | 0 .../listroutes/AsyncListRoutes.java | 0 .../listroutes/AsyncListRoutesPaged.java | 0 .../datastream/listroutes/SyncListRoutes.java | 0 .../SyncListRoutesPrivateconnectionname.java | 0 .../listroutes/SyncListRoutesString.java | 0 .../liststreams/AsyncListStreams.java | 0 .../liststreams/AsyncListStreamsPaged.java | 0 .../liststreams/SyncListStreams.java | 0 .../SyncListStreamsLocationname.java | 0 .../liststreams/SyncListStreamsString.java | 0 .../AsyncUpdateConnectionProfile.java | 0 .../AsyncUpdateConnectionProfileLRO.java | 0 .../SyncUpdateConnectionProfile.java | 0 ...tionProfileConnectionprofileFieldmask.java | 0 .../updatestream/AsyncUpdateStream.java | 0 .../updatestream/AsyncUpdateStreamLRO.java | 0 .../updatestream/SyncUpdateStream.java | 0 .../SyncUpdateStreamStreamFieldmask.java | 0 .../SyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 578 files changed, 45080 insertions(+), 72915 deletions(-) delete mode 100644 java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java delete mode 100644 java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java delete mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java (100%) create mode 100644 owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java (64%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java (55%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java (61%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java (59%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java (64%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java (78%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java (74%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java (78%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java (75%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java (64%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java (77%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java (57%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java (62%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java (63%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java (75%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java (60%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java (59%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java (62%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java (75%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java (62%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java (75%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java (64%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java (59%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java (60%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java (62%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java (60%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java (76%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java (80%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java (52%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto (92%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto (90%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java (98%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (98%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java (98%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1}/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java (99%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java (100%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java (63%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfile.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java (63%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java (55%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java (77%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java (51%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java (62%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java (55%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java (63%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java (60%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java (59%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java (59%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java (63%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java (61%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java (70%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java (66%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java (77%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java (63%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java (71%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java (74%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java (62%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java (66%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java (60%) create mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java (67%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java (75%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java (78%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java (72%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java (64%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java (65%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java (73%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java (69%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java (68%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java (60%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {java-datastream => owl-bot-staging/java-datastream/v1alpha1}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) diff --git a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java deleted file mode 100644 index 5944c1b2f761..000000000000 --- a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java +++ /dev/null @@ -1,3234 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datastream.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Datastream service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1/datastream.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastreamGrpc { - - private DatastreamGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datastream.v1.Datastream"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - DatastreamGrpc.getListConnectionProfilesMethod = - getListConnectionProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1.ConnectionProfile> - getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1.ConnectionProfile> - getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1.ConnectionProfile> - getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) - == null) { - DatastreamGrpc.getGetConnectionProfileMethod = - getGetConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ConnectionProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - DatastreamGrpc.getCreateConnectionProfileMethod = - getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - DatastreamGrpc.getUpdateConnectionProfileMethod = - getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - DatastreamGrpc.getDeleteConnectionProfileMethod = - getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", - requestType = com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - DatastreamGrpc.getDiscoverConnectionProfileMethod = - getDiscoverConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) - .build(); - } - } - } - return getDiscoverConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamsRequest, - com.google.cloud.datastream.v1.ListStreamsResponse> - getListStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreams", - requestType = com.google.cloud.datastream.v1.ListStreamsRequest.class, - responseType = com.google.cloud.datastream.v1.ListStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamsRequest, - com.google.cloud.datastream.v1.ListStreamsResponse> - getListStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamsRequest, - com.google.cloud.datastream.v1.ListStreamsResponse> - getListStreamsMethod; - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - DatastreamGrpc.getListStreamsMethod = - getListStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) - .build(); - } - } - } - return getListStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> - getGetStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStream", - requestType = com.google.cloud.datastream.v1.GetStreamRequest.class, - responseType = com.google.cloud.datastream.v1.Stream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> - getGetStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> - getGetStreamMethod; - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - DatastreamGrpc.getGetStreamMethod = - getGetStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.Stream.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) - .build(); - } - } - } - return getGetStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> - getCreateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStream", - requestType = com.google.cloud.datastream.v1.CreateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> - getCreateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> - getCreateStreamMethod; - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - DatastreamGrpc.getCreateStreamMethod = - getCreateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) - .build(); - } - } - } - return getCreateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> - getUpdateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateStream", - requestType = com.google.cloud.datastream.v1.UpdateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> - getUpdateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> - getUpdateStreamMethod; - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - DatastreamGrpc.getUpdateStreamMethod = - getUpdateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.UpdateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) - .build(); - } - } - } - return getUpdateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> - getDeleteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteStream", - requestType = com.google.cloud.datastream.v1.DeleteStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> - getDeleteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> - getDeleteStreamMethod; - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - DatastreamGrpc.getDeleteStreamMethod = - getDeleteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) - .build(); - } - } - } - return getDeleteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getGetStreamObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStreamObject", - requestType = com.google.cloud.datastream.v1.GetStreamObjectRequest.class, - responseType = com.google.cloud.datastream.v1.StreamObject.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getGetStreamObjectMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getGetStreamObjectMethod; - if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { - DatastreamGrpc.getGetStreamObjectMethod = - getGetStreamObjectMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetStreamObjectRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetStreamObject")) - .build(); - } - } - } - return getGetStreamObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.LookupStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getLookupStreamObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LookupStreamObject", - requestType = com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, - responseType = com.google.cloud.datastream.v1.StreamObject.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.LookupStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getLookupStreamObjectMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.LookupStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject> - getLookupStreamObjectMethod; - if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { - DatastreamGrpc.getLookupStreamObjectMethod = - getLookupStreamObjectMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupStreamObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.LookupStreamObjectRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("LookupStreamObject")) - .build(); - } - } - } - return getLookupStreamObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamObjectsRequest, - com.google.cloud.datastream.v1.ListStreamObjectsResponse> - getListStreamObjectsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreamObjects", - requestType = com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, - responseType = com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamObjectsRequest, - com.google.cloud.datastream.v1.ListStreamObjectsResponse> - getListStreamObjectsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListStreamObjectsRequest, - com.google.cloud.datastream.v1.ListStreamObjectsResponse> - getListStreamObjectsMethod; - if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { - DatastreamGrpc.getListStreamObjectsMethod = - getListStreamObjectsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreamObjects")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamObjectsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamObjectsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListStreamObjects")) - .build(); - } - } - } - return getListStreamObjectsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StartBackfillJobRequest, - com.google.cloud.datastream.v1.StartBackfillJobResponse> - getStartBackfillJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartBackfillJob", - requestType = com.google.cloud.datastream.v1.StartBackfillJobRequest.class, - responseType = com.google.cloud.datastream.v1.StartBackfillJobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StartBackfillJobRequest, - com.google.cloud.datastream.v1.StartBackfillJobResponse> - getStartBackfillJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StartBackfillJobRequest, - com.google.cloud.datastream.v1.StartBackfillJobResponse> - getStartBackfillJobMethod; - if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { - DatastreamGrpc.getStartBackfillJobMethod = - getStartBackfillJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartBackfillJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StartBackfillJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StartBackfillJobResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("StartBackfillJob")) - .build(); - } - } - } - return getStartBackfillJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StopBackfillJobRequest, - com.google.cloud.datastream.v1.StopBackfillJobResponse> - getStopBackfillJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopBackfillJob", - requestType = com.google.cloud.datastream.v1.StopBackfillJobRequest.class, - responseType = com.google.cloud.datastream.v1.StopBackfillJobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StopBackfillJobRequest, - com.google.cloud.datastream.v1.StopBackfillJobResponse> - getStopBackfillJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.StopBackfillJobRequest, - com.google.cloud.datastream.v1.StopBackfillJobResponse> - getStopBackfillJobMethod; - if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { - DatastreamGrpc.getStopBackfillJobMethod = - getStopBackfillJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopBackfillJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StopBackfillJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StopBackfillJobResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("StopBackfillJob")) - .build(); - } - } - } - return getStopBackfillJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", - requestType = com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, - responseType = com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1.FetchStaticIpsResponse> - getFetchStaticIpsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - DatastreamGrpc.getFetchStaticIpsMethod = - getFetchStaticIpsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.FetchStaticIpsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.FetchStaticIpsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) - .build(); - } - } - } - return getFetchStaticIpsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - DatastreamGrpc.getCreatePrivateConnectionMethod = - getCreatePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) - .build(); - } - } - } - return getCreatePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1.PrivateConnection> - getGetPrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", - requestType = com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, - responseType = com.google.cloud.datastream.v1.PrivateConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1.PrivateConnection> - getGetPrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1.PrivateConnection> - getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) - == null) { - DatastreamGrpc.getGetPrivateConnectionMethod = - getGetPrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.PrivateConnection - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) - .build(); - } - } - } - return getGetPrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", - requestType = com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, - responseType = com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - DatastreamGrpc.getListPrivateConnectionsMethod = - getListPrivateConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) - .build(); - } - } - } - return getListPrivateConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - DatastreamGrpc.getDeletePrivateConnectionMethod = - getDeletePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) - .build(); - } - } - } - return getDeletePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoute", - requestType = com.google.cloud.datastream.v1.CreateRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod; - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - DatastreamGrpc.getCreateRouteMethod = - getCreateRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) - .build(); - } - } - } - return getCreateRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> - getGetRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoute", - requestType = com.google.cloud.datastream.v1.GetRouteRequest.class, - responseType = com.google.cloud.datastream.v1.Route.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> - getGetRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> - getGetRouteMethod; - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - DatastreamGrpc.getGetRouteMethod = - getGetRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.Route.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) - .build(); - } - } - } - return getGetRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse> - getListRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoutes", - requestType = com.google.cloud.datastream.v1.ListRoutesRequest.class, - responseType = com.google.cloud.datastream.v1.ListRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse> - getListRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse> - getListRoutesMethod; - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - DatastreamGrpc.getListRoutesMethod = - getListRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListRoutesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) - .build(); - } - } - } - return getListRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", - requestType = com.google.cloud.datastream.v1.DeleteRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod; - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - DatastreamGrpc.getDeleteRouteMethod = - getDeleteRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) - .build(); - } - } - } - return getDeleteRouteMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DatastreamStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - }; - return DatastreamStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastreamBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - }; - return DatastreamBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DatastreamFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - }; - return DatastreamFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Datastream service
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - default void listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - default void getConnectionProfile( - com.google.cloud.datastream.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - default void createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - default void updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a connection profile.
-     * 
- */ - default void deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - default void discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDiscoverConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - default void listStreams( - com.google.cloud.datastream.v1.ListStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - default void getStream( - com.google.cloud.datastream.v1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - default void createStream( - com.google.cloud.datastream.v1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - default void updateStream( - com.google.cloud.datastream.v1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - default void deleteStream( - com.google.cloud.datastream.v1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream object.
-     * 
- */ - default void getStreamObject( - com.google.cloud.datastream.v1.GetStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetStreamObjectMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - default void lookupStreamObject( - com.google.cloud.datastream.v1.LookupStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLookupStreamObjectMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - default void listStreamObjects( - com.google.cloud.datastream.v1.ListStreamObjectsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListStreamObjectsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - default void startBackfillJob( - com.google.cloud.datastream.v1.StartBackfillJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStartBackfillJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - default void stopBackfillJob( - com.google.cloud.datastream.v1.StopBackfillJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getStopBackfillJobMethod(), responseObserver); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - default void fetchStaticIps( - com.google.cloud.datastream.v1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchStaticIpsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - default void createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - default void getPrivateConnection( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - default void listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPrivateConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - default void deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - default void createRoute( - com.google.cloud.datastream.v1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - default void getRoute( - com.google.cloud.datastream.v1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - default void listRoutes( - com.google.cloud.datastream.v1.ListRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - default void deleteRoute( - com.google.cloud.datastream.v1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRouteMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public abstract static class DatastreamImplBase implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DatastreamGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamStub extends io.grpc.stub.AbstractAsyncStub { - private DatastreamStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public void listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public void getConnectionProfile( - com.google.cloud.datastream.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public void createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public void updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public void deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public void discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public void listStreams( - com.google.cloud.datastream.v1.ListStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public void getStream( - com.google.cloud.datastream.v1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public void createStream( - com.google.cloud.datastream.v1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public void updateStream( - com.google.cloud.datastream.v1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public void deleteStream( - com.google.cloud.datastream.v1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public void getStreamObject( - com.google.cloud.datastream.v1.GetStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public void lookupStreamObject( - com.google.cloud.datastream.v1.LookupStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public void listStreamObjects( - com.google.cloud.datastream.v1.ListStreamObjectsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public void startBackfillJob( - com.google.cloud.datastream.v1.StartBackfillJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public void stopBackfillJob( - com.google.cloud.datastream.v1.StopBackfillJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public void fetchStaticIps( - com.google.cloud.datastream.v1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public void createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public void getPrivateConnection( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public void listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public void deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public void createRoute( - com.google.cloud.datastream.v1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public void getRoute( - com.google.cloud.datastream.v1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public void listRoutes( - com.google.cloud.datastream.v1.ListRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public void deleteRoute( - com.google.cloud.datastream.v1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DatastreamBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile( - com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListStreamsResponse listStreams( - com.google.cloud.datastream.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.cloud.datastream.v1.Stream getStream( - com.google.cloud.datastream.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.longrunning.Operation createStream( - com.google.cloud.datastream.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.longrunning.Operation updateStream( - com.google.cloud.datastream.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.longrunning.Operation deleteStream( - com.google.cloud.datastream.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StreamObject getStreamObject( - com.google.cloud.datastream.v1.GetStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamObjectMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public com.google.cloud.datastream.v1.StreamObject lookupStreamObject( - com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupStreamObjectMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObjects( - com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamObjectsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob( - com.google.cloud.datastream.v1.StartBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartBackfillJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob( - com.google.cloud.datastream.v1.StopBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopBackfillJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps( - com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createRoute( - com.google.cloud.datastream.v1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.cloud.datastream.v1.Route getRoute( - com.google.cloud.datastream.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes( - com.google.cloud.datastream.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRoutesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.longrunning.Operation deleteRoute( - com.google.cloud.datastream.v1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRouteMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DatastreamFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ListConnectionProfilesResponse> - listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ConnectionProfile> - getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> - discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ListStreamsResponse> - listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getStream(com.google.cloud.datastream.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createStream(com.google.cloud.datastream.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.StreamObject> - getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.StreamObject> - lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ListStreamObjectsResponse> - listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.StartBackfillJobResponse> - startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.StopBackfillJobResponse> - stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.FetchStaticIpsResponse> - fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.PrivateConnection> - getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> - listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getRoute(com.google.cloud.datastream.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1.ListRoutesResponse> - listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONNECTION_PROFILES = 0; - private static final int METHODID_GET_CONNECTION_PROFILE = 1; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; - private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; - private static final int METHODID_LIST_STREAMS = 6; - private static final int METHODID_GET_STREAM = 7; - private static final int METHODID_CREATE_STREAM = 8; - private static final int METHODID_UPDATE_STREAM = 9; - private static final int METHODID_DELETE_STREAM = 10; - private static final int METHODID_GET_STREAM_OBJECT = 11; - private static final int METHODID_LOOKUP_STREAM_OBJECT = 12; - private static final int METHODID_LIST_STREAM_OBJECTS = 13; - private static final int METHODID_START_BACKFILL_JOB = 14; - private static final int METHODID_STOP_BACKFILL_JOB = 15; - private static final int METHODID_FETCH_STATIC_IPS = 16; - private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; - private static final int METHODID_GET_PRIVATE_CONNECTION = 18; - private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; - private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; - private static final int METHODID_CREATE_ROUTE = 21; - private static final int METHODID_GET_ROUTE = 22; - private static final int METHODID_LIST_ROUTES = 23; - private static final int METHODID_DELETE_ROUTE = 24; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles( - (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.ListConnectionProfilesResponse>) - responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile( - (com.google.cloud.datastream.v1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile( - (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile( - (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile( - (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISCOVER_CONNECTION_PROFILE: - serviceImpl.discoverConnectionProfile( - (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>) - responseObserver); - break; - case METHODID_LIST_STREAMS: - serviceImpl.listStreams( - (com.google.cloud.datastream.v1.ListStreamsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_STREAM: - serviceImpl.getStream( - (com.google.cloud.datastream.v1.GetStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_STREAM: - serviceImpl.createStream( - (com.google.cloud.datastream.v1.CreateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_STREAM: - serviceImpl.updateStream( - (com.google.cloud.datastream.v1.UpdateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_STREAM: - serviceImpl.deleteStream( - (com.google.cloud.datastream.v1.DeleteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STREAM_OBJECT: - serviceImpl.getStreamObject( - (com.google.cloud.datastream.v1.GetStreamObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LOOKUP_STREAM_OBJECT: - serviceImpl.lookupStreamObject( - (com.google.cloud.datastream.v1.LookupStreamObjectRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_STREAM_OBJECTS: - serviceImpl.listStreamObjects( - (com.google.cloud.datastream.v1.ListStreamObjectsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.ListStreamObjectsResponse>) - responseObserver); - break; - case METHODID_START_BACKFILL_JOB: - serviceImpl.startBackfillJob( - (com.google.cloud.datastream.v1.StartBackfillJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_STOP_BACKFILL_JOB: - serviceImpl.stopBackfillJob( - (com.google.cloud.datastream.v1.StopBackfillJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_FETCH_STATIC_IPS: - serviceImpl.fetchStaticIps( - (com.google.cloud.datastream.v1.FetchStaticIpsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_PRIVATE_CONNECTION: - serviceImpl.createPrivateConnection( - (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PRIVATE_CONNECTION: - serviceImpl.getPrivateConnection( - (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PRIVATE_CONNECTIONS: - serviceImpl.listPrivateConnections( - (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>) - responseObserver); - break; - case METHODID_DELETE_PRIVATE_CONNECTION: - serviceImpl.deletePrivateConnection( - (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROUTE: - serviceImpl.createRoute( - (com.google.cloud.datastream.v1.CreateRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROUTE: - serviceImpl.getRoute( - (com.google.cloud.datastream.v1.GetRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROUTES: - serviceImpl.listRoutes( - (com.google.cloud.datastream.v1.ListRoutesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ROUTE: - serviceImpl.deleteRoute( - (com.google.cloud.datastream.v1.DeleteRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse>( - service, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1.ConnectionProfile>( - service, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTION_PROFILE))) - .addMethod( - getDiscoverConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>( - service, METHODID_DISCOVER_CONNECTION_PROFILE))) - .addMethod( - getListStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListStreamsRequest, - com.google.cloud.datastream.v1.ListStreamsResponse>( - service, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamRequest, - com.google.cloud.datastream.v1.Stream>(service, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateStreamRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateStreamRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteStreamRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_STREAM))) - .addMethod( - getGetStreamObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject>( - service, METHODID_GET_STREAM_OBJECT))) - .addMethod( - getLookupStreamObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.LookupStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject>( - service, METHODID_LOOKUP_STREAM_OBJECT))) - .addMethod( - getListStreamObjectsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListStreamObjectsRequest, - com.google.cloud.datastream.v1.ListStreamObjectsResponse>( - service, METHODID_LIST_STREAM_OBJECTS))) - .addMethod( - getStartBackfillJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.StartBackfillJobRequest, - com.google.cloud.datastream.v1.StartBackfillJobResponse>( - service, METHODID_START_BACKFILL_JOB))) - .addMethod( - getStopBackfillJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.StopBackfillJobRequest, - com.google.cloud.datastream.v1.StopBackfillJobResponse>( - service, METHODID_STOP_BACKFILL_JOB))) - .addMethod( - getFetchStaticIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1.FetchStaticIpsResponse>( - service, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) - .addMethod( - getGetPrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1.PrivateConnection>( - service, METHODID_GET_PRIVATE_CONNECTION))) - .addMethod( - getListPrivateConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>( - service, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateRouteRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetRouteRequest, - com.google.cloud.datastream.v1.Route>(service, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse>( - service, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteRouteRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_ROUTE))) - .build(); - } - - private abstract static class DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DatastreamBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Datastream"); - } - } - - private static final class DatastreamFileDescriptorSupplier - extends DatastreamBaseDescriptorSupplier { - DatastreamFileDescriptorSupplier() {} - } - - private static final class DatastreamMethodDescriptorSupplier - extends DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DatastreamMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DatastreamGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .addMethod(getDiscoverConnectionProfileMethod()) - .addMethod(getListStreamsMethod()) - .addMethod(getGetStreamMethod()) - .addMethod(getCreateStreamMethod()) - .addMethod(getUpdateStreamMethod()) - .addMethod(getDeleteStreamMethod()) - .addMethod(getGetStreamObjectMethod()) - .addMethod(getLookupStreamObjectMethod()) - .addMethod(getListStreamObjectsMethod()) - .addMethod(getStartBackfillJobMethod()) - .addMethod(getStopBackfillJobMethod()) - .addMethod(getFetchStaticIpsMethod()) - .addMethod(getCreatePrivateConnectionMethod()) - .addMethod(getGetPrivateConnectionMethod()) - .addMethod(getListPrivateConnectionsMethod()) - .addMethod(getDeletePrivateConnectionMethod()) - .addMethod(getCreateRouteMethod()) - .addMethod(getGetRouteMethod()) - .addMethod(getListRoutesMethod()) - .addMethod(getDeleteRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java deleted file mode 100644 index 213e5eacf49f..000000000000 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2782 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datastream.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Datastream service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastreamGrpc { - - private DatastreamGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datastream.v1alpha1.Datastream"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - DatastreamGrpc.getListConnectionProfilesMethod = - getListConnectionProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) - == null) { - DatastreamGrpc.getGetConnectionProfileMethod = - getGetConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ConnectionProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - DatastreamGrpc.getCreateConnectionProfileMethod = - getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - DatastreamGrpc.getUpdateConnectionProfileMethod = - getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - DatastreamGrpc.getDeleteConnectionProfileMethod = - getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - DatastreamGrpc.getDiscoverConnectionProfileMethod = - getDiscoverConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) - .build(); - } - } - } - return getDiscoverConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreams", - requestType = com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod; - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - DatastreamGrpc.getListStreamsMethod = - getListStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) - .build(); - } - } - } - return getListStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStream", - requestType = com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Stream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod; - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - DatastreamGrpc.getGetStreamMethod = - getGetStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) - .build(); - } - } - } - return getGetStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStream", - requestType = com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod; - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - DatastreamGrpc.getCreateStreamMethod = - getCreateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) - .build(); - } - } - } - return getCreateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateStream", - requestType = com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod; - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - DatastreamGrpc.getUpdateStreamMethod = - getUpdateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) - .build(); - } - } - } - return getUpdateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteStream", - requestType = com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod; - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - DatastreamGrpc.getDeleteStreamMethod = - getDeleteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) - .build(); - } - } - } - return getDeleteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> - getFetchErrorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchErrors", - requestType = com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> - getFetchErrorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, - com.google.longrunning.Operation> - getFetchErrorsMethod; - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - DatastreamGrpc.getFetchErrorsMethod = - getFetchErrorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchErrors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchErrors")) - .build(); - } - } - } - return getFetchErrorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", - requestType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - DatastreamGrpc.getFetchStaticIpsMethod = - getFetchStaticIpsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) - .build(); - } - } - } - return getFetchStaticIpsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - DatastreamGrpc.getCreatePrivateConnectionMethod = - getCreatePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) - .build(); - } - } - } - return getCreatePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.PrivateConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) - == null) { - DatastreamGrpc.getGetPrivateConnectionMethod = - getGetPrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.PrivateConnection - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) - .build(); - } - } - } - return getGetPrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", - requestType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - DatastreamGrpc.getListPrivateConnectionsMethod = - getListPrivateConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) - .build(); - } - } - } - return getListPrivateConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - DatastreamGrpc.getDeletePrivateConnectionMethod = - getDeletePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) - .build(); - } - } - } - return getDeletePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoute", - requestType = com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, - com.google.longrunning.Operation> - getCreateRouteMethod; - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - DatastreamGrpc.getCreateRouteMethod = - getCreateRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) - .build(); - } - } - } - return getCreateRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoute", - requestType = com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Route.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod; - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - DatastreamGrpc.getGetRouteMethod = - getGetRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) - .build(); - } - } - } - return getGetRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoutes", - requestType = com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod; - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - DatastreamGrpc.getListRoutesMethod = - getListRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) - .build(); - } - } - } - return getListRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", - requestType = com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, - com.google.longrunning.Operation> - getDeleteRouteMethod; - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - DatastreamGrpc.getDeleteRouteMethod = - getDeleteRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) - .build(); - } - } - } - return getDeleteRouteMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DatastreamStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - }; - return DatastreamStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastreamBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - }; - return DatastreamBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DatastreamFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - }; - return DatastreamFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Datastream service
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - default void listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionProfilesMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - default void getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - default void createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - default void updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a connection profile..
-     * 
- */ - default void deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - default void discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDiscoverConnectionProfileMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - default void listStreams( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListStreamsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - default void getStream( - com.google.cloud.datastream.v1alpha1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - default void createStream( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - default void updateStream( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - default void deleteStream( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteStreamMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - default void fetchErrors( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchErrorsMethod(), responseObserver); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - default void fetchStaticIps( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getFetchStaticIpsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - default void createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - default void getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - default void listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPrivateConnectionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - default void deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePrivateConnectionMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - default void createRoute( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - default void getRoute( - com.google.cloud.datastream.v1alpha1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - default void listRoutes( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - default void deleteRoute( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteRouteMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public abstract static class DatastreamImplBase implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DatastreamGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamStub extends io.grpc.stub.AbstractAsyncStub { - private DatastreamStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public void listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public void getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public void createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public void updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public void deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public void discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public void listStreams( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public void getStream( - com.google.cloud.datastream.v1alpha1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public void createStream( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public void updateStream( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public void deleteStream( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public void fetchErrors( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public void fetchStaticIps( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public void createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public void getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public void listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public void deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public void createRoute( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public void getRoute( - com.google.cloud.datastream.v1alpha1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public void listRoutes( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public void deleteRoute( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DatastreamBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.Stream getStream( - com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.longrunning.Operation createStream( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.longrunning.Operation updateStream( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.longrunning.Operation deleteStream( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteStreamMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public com.google.longrunning.Operation fetchErrors( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchErrorsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIps( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public com.google.longrunning.Operation createRoute( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.Route getRoute( - com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRouteMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRoutesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.longrunning.Operation deleteRoute( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRouteMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. - * - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DatastreamFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.Stream> - getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.Route> - getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONNECTION_PROFILES = 0; - private static final int METHODID_GET_CONNECTION_PROFILE = 1; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; - private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; - private static final int METHODID_LIST_STREAMS = 6; - private static final int METHODID_GET_STREAM = 7; - private static final int METHODID_CREATE_STREAM = 8; - private static final int METHODID_UPDATE_STREAM = 9; - private static final int METHODID_DELETE_STREAM = 10; - private static final int METHODID_FETCH_ERRORS = 11; - private static final int METHODID_FETCH_STATIC_IPS = 12; - private static final int METHODID_CREATE_PRIVATE_CONNECTION = 13; - private static final int METHODID_GET_PRIVATE_CONNECTION = 14; - private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 15; - private static final int METHODID_DELETE_PRIVATE_CONNECTION = 16; - private static final int METHODID_CREATE_ROUTE = 17; - private static final int METHODID_GET_ROUTE = 18; - private static final int METHODID_LIST_ROUTES = 19; - private static final int METHODID_DELETE_ROUTE = 20; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles( - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>) - responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile( - (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile( - (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile( - (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile( - (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISCOVER_CONNECTION_PROFILE: - serviceImpl.discoverConnectionProfile( - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>) - responseObserver); - break; - case METHODID_LIST_STREAMS: - serviceImpl.listStreams( - (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListStreamsResponse>) - responseObserver); - break; - case METHODID_GET_STREAM: - serviceImpl.getStream( - (com.google.cloud.datastream.v1alpha1.GetStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_STREAM: - serviceImpl.createStream( - (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_STREAM: - serviceImpl.updateStream( - (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_STREAM: - serviceImpl.deleteStream( - (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_ERRORS: - serviceImpl.fetchErrors( - (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_STATIC_IPS: - serviceImpl.fetchStaticIps( - (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>) - responseObserver); - break; - case METHODID_CREATE_PRIVATE_CONNECTION: - serviceImpl.createPrivateConnection( - (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PRIVATE_CONNECTION: - serviceImpl.getPrivateConnection( - (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PRIVATE_CONNECTIONS: - serviceImpl.listPrivateConnections( - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>) - responseObserver); - break; - case METHODID_DELETE_PRIVATE_CONNECTION: - serviceImpl.deletePrivateConnection( - (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROUTE: - serviceImpl.createRoute( - (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROUTE: - serviceImpl.getRoute( - (com.google.cloud.datastream.v1alpha1.GetRouteRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ROUTES: - serviceImpl.listRoutes( - (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ROUTE: - serviceImpl.deleteRoute( - (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>( - service, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile>( - service, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTION_PROFILE))) - .addMethod( - getDiscoverConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>( - service, METHODID_DISCOVER_CONNECTION_PROFILE))) - .addMethod( - getListStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse>( - service, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream>(service, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation>(service, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_STREAM))) - .addMethod( - getFetchErrorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, - com.google.longrunning.Operation>(service, METHODID_FETCH_ERRORS))) - .addMethod( - getFetchStaticIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( - service, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) - .addMethod( - getGetPrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection>( - service, METHODID_GET_PRIVATE_CONNECTION))) - .addMethod( - getListPrivateConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>( - service, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, - com.google.longrunning.Operation>(service, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route>(service, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( - service, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, - com.google.longrunning.Operation>(service, METHODID_DELETE_ROUTE))) - .build(); - } - - private abstract static class DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DatastreamBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Datastream"); - } - } - - private static final class DatastreamFileDescriptorSupplier - extends DatastreamBaseDescriptorSupplier { - DatastreamFileDescriptorSupplier() {} - } - - private static final class DatastreamMethodDescriptorSupplier - extends DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DatastreamMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DatastreamGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .addMethod(getDiscoverConnectionProfileMethod()) - .addMethod(getListStreamsMethod()) - .addMethod(getGetStreamMethod()) - .addMethod(getCreateStreamMethod()) - .addMethod(getUpdateStreamMethod()) - .addMethod(getDeleteStreamMethod()) - .addMethod(getFetchErrorsMethod()) - .addMethod(getFetchStaticIpsMethod()) - .addMethod(getCreatePrivateConnectionMethod()) - .addMethod(getGetPrivateConnectionMethod()) - .addMethod(getListPrivateConnectionsMethod()) - .addMethod(getDeletePrivateConnectionMethod()) - .addMethod(getCreateRouteMethod()) - .addMethod(getGetRouteMethod()) - .addMethod(getListRoutesMethod()) - .addMethod(getDeleteRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java deleted file mode 100644 index 26143146007d..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface AvroFileFormatOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.AvroFileFormat) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java deleted file mode 100644 index 65ad646b3e60..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface BigQueryProfileOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java deleted file mode 100644 index 3de25bb34122..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ /dev/null @@ -1,809 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public final class DatastreamProto { - private DatastreamProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/datastream/v1/datastream." - + "proto\022\032google.cloud.datastream.v1\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\0325google/clo" - + "ud/datastream/v1/datastream_resources.pr" - + "oto\032#google/longrunning/operations.proto" - + "\032 google/protobuf/field_mask.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\375\003\n Discover" - + "ConnectionProfileRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\022+datastream.googleapis.com/Conn" - + "ectionProfile\022L\n\022connection_profile\030\310\001 \001" - + "(\0132-.google.cloud.datastream.v1.Connecti" - + "onProfileH\000\022\"\n\027connection_profile_name\030\311" - + "\001 \001(\tH\000\022\030\n\016full_hierarchy\030\003 \001(\010H\001\022\031\n\017hie" - + "rarchy_depth\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001" - + "(\0132\'.google.cloud.datastream.v1.OracleRd" - + "bmsH\002\022=\n\013mysql_rdbms\030e \001(\0132&.google.clou" - + "d.datastream.v1.MysqlRdbmsH\002\022G\n\020postgres" - + "ql_rdbms\030f \001(\0132+.google.cloud.datastream" - + ".v1.PostgresqlRdbmsH\002B\010\n\006targetB\013\n\thiera" - + "rchyB\r\n\013data_object\"\373\001\n!DiscoverConnecti" - + "onProfileResponse\022?\n\014oracle_rdbms\030d \001(\0132" - + "\'.google.cloud.datastream.v1.OracleRdbms" - + "H\000\022=\n\013mysql_rdbms\030e \001(\0132&.google.cloud.d" - + "atastream.v1.MysqlRdbmsH\000\022G\n\020postgresql_" - + "rdbms\030f \001(\0132+.google.cloud.datastream.v1" - + ".PostgresqlRdbmsH\000B\r\n\013data_object\"w\n\025Fet" - + "chStaticIpsRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" - + "\n!locations.googleapis.com/Location\022\021\n\tp" - + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026Fe" - + "tchStaticIpsResponse\022\022\n\nstatic_ips\030\001 \003(\t" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n\035ListConnec" - + "tionProfilesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" - + "\372A-\022+datastream.googleapis.com/Connectio" - + "nProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(" - + "\t\"\232\001\n\036ListConnectionProfilesResponse\022J\n\023" - + "connection_profiles\030\001 \003(\0132-.google.cloud" - + ".datastream.v1.ConnectionProfile\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`" - + "\n\033GetConnectionProfileRequest\022A\n\004name\030\001 " - + "\001(\tB3\340A\002\372A-\n+datastream.googleapis.com/C" - + "onnectionProfile\"\242\002\n\036CreateConnectionPro" - + "fileRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+dat" - + "astream.googleapis.com/ConnectionProfile" - + "\022\"\n\025connection_profile_id\030\002 \001(\tB\003\340A\002\022N\n\022" - + "connection_profile\030\003 \001(\0132-.google.cloud." - + "datastream.v1.ConnectionProfileB\003\340A\002\022\027\n\n" - + "request_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005" - + " \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"\357\001\n\036Update" - + "ConnectionProfileRequest\0224\n\013update_mask\030" - + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022N" - + "\n\022connection_profile\030\002 \001(\0132-.google.clou" - + "d.datastream.v1.ConnectionProfileB\003\340A\002\022\027" - + "\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only" - + "\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"|\n\036Delet" - + "eConnectionProfileRequest\022A\n\004name\030\001 \001(\tB" - + "3\340A\002\372A-\n+datastream.googleapis.com/Conne" - + "ctionProfile\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001" - + "\n\022ListStreamsRequest\0228\n\006parent\030\001 \001(\tB(\340A" - + "\002\372A\"\022 datastream.googleapis.com/Stream\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\023ListS" - + "treamsResponse\0223\n\007streams\030\001 \003(\0132\".google" - + ".cloud.datastream.v1.Stream\022\027\n\017next_page" - + "_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"J\n\020Get" - + "StreamRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n dat" - + "astream.googleapis.com/Stream\"\351\001\n\023Create" - + "StreamRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 d" - + "atastream.googleapis.com/Stream\022\026\n\tstrea" - + "m_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030\003 \001(\0132\".google" - + ".cloud.datastream.v1.StreamB\003\340A\002\022\027\n\nrequ" - + "est_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010" - + "B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"\315\001\n\023UpdateStre" - + "amRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\001\0227\n\006stream\030\002 \001(\0132" - + "\".google.cloud.datastream.v1.StreamB\003\340A\002" - + "\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_on" - + "ly\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023Del" - + "eteStreamRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " - + "datastream.googleapis.com/Stream\022\027\n\nrequ" - + "est_id\030\002 \001(\tB\003\340A\001\"V\n\026GetStreamObjectRequ" - + "est\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datastream.go" - + "ogleapis.com/StreamObject\"\260\001\n\031LookupStre" - + "amObjectRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n" - + " datastream.googleapis.com/Stream\022Y\n\030sou" - + "rce_object_identifier\030\002 \001(\01322.google.clo" - + "ud.datastream.v1.SourceObjectIdentifierB" - + "\003\340A\002\"Y\n\027StartBackfillJobRequest\022>\n\006objec" - + "t\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.c" - + "om/StreamObject\"T\n\030StartBackfillJobRespo" - + "nse\0228\n\006object\030\001 \001(\0132(.google.cloud.datas" - + "tream.v1.StreamObject\"X\n\026StopBackfillJob" - + "Request\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastr" - + "eam.googleapis.com/StreamObject\"S\n\027StopB" - + "ackfillJobResponse\0228\n\006object\030\001 \001(\0132(.goo" - + "gle.cloud.datastream.v1.StreamObject\"\201\001\n" - + "\030ListStreamObjectsRequest\022>\n\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&datastream.googleapis.com/Str" - + "eamObject\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\"v\n\031ListStreamObjectsResponse\022@\n" - + "\016stream_objects\030\001 \003(\0132(.google.cloud.dat" - + "astream.v1.StreamObject\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"\316\002\n\021OperationMetadata\0224\n\013create" - + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004" - + "verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB" - + "\003\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A" - + "\003\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022L\n\021validatio" - + "n_result\030\010 \001(\0132,.google.cloud.datastream" - + ".v1.ValidationResultB\003\340A\003\"\362\001\n\036CreatePriv" - + "ateConnectionRequest\022C\n\006parent\030\001 \001(\tB3\340A" - + "\002\372A-\022+datastream.googleapis.com/PrivateC" - + "onnection\022\"\n\025private_connection_id\030\002 \001(\t" - + "B\003\340A\002\022N\n\022private_connection\030\003 \001(\0132-.goog" - + "le.cloud.datastream.v1.PrivateConnection" - + "B\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\255\001\n\035ListP" - + "rivateConnectionsRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\022+datastream.googleapis.com/Priv" - + "ateConnection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"\232\001\n\036ListPrivateConnectionsRespons" - + "e\022J\n\023private_connections\030\001 \003(\0132-.google." - + "cloud.datastream.v1.PrivateConnection\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 " - + "\003(\t\"\220\001\n\036DeletePrivateConnectionRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" - + "pis.com/PrivateConnection\022\027\n\nrequest_id\030" - + "\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"`\n\033GetPri" - + "vateConnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002" - + "\372A-\n+datastream.googleapis.com/PrivateCo" - + "nnection\"\264\001\n\022CreateRouteRequest\0227\n\006paren" - + "t\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googleapis.c" - + "om/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002\0225\n\005route" - + "\030\003 \001(\0132!.google.cloud.datastream.v1.Rout" - + "eB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021List" - + "RoutesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037d" - + "atastream.googleapis.com/Route\022\021\n\tpage_s" - + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" - + "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022ListRoutesRes" - + "ponse\0221\n\006routes\030\001 \003(\0132!.google.cloud.dat" - + "astream.v1.Route\022\027\n\017next_page_token\030\002 \001(" - + "\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022DeleteRouteReq" - + "uest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.g" - + "oogleapis.com/Route\022\027\n\nrequest_id\030\002 \001(\tB" - + "\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037datastream.googleapis.com/Route2\375" - + "*\n\nDatastream\022\330\001\n\026ListConnectionProfiles" - + "\0229.google.cloud.datastream.v1.ListConnec" - + "tionProfilesRequest\032:.google.cloud.datas" - + "tream.v1.ListConnectionProfilesResponse\"" - + "G\202\323\344\223\0028\0226/v1/{parent=projects/*/location" - + "s/*}/connectionProfiles\332A\006parent\022\305\001\n\024Get" - + "ConnectionProfile\0227.google.cloud.datastr" - + "eam.v1.GetConnectionProfileRequest\032-.goo" - + "gle.cloud.datastream.v1.ConnectionProfil" - + "e\"E\202\323\344\223\0028\0226/v1/{name=projects/*/location" - + "s/*/connectionProfiles/*}\332A\004name\022\244\002\n\027Cre" - + "ateConnectionProfile\022:.google.cloud.data" - + "stream.v1.CreateConnectionProfileRequest" - + "\032\035.google.longrunning.Operation\"\255\001\202\323\344\223\002L" - + "\"6/v1/{parent=projects/*/locations/*}/co" - + "nnectionProfiles:\022connection_profile\332A/p" - + "arent,connection_profile,connection_prof" - + "ile_id\312A&\n\021ConnectionProfile\022\021OperationM" - + "etadata\022\246\002\n\027UpdateConnectionProfile\022:.go" - + "ogle.cloud.datastream.v1.UpdateConnectio" - + "nProfileRequest\032\035.google.longrunning.Ope" - + "ration\"\257\001\202\323\344\223\002_2I/v1/{connection_profile" - + ".name=projects/*/locations/*/connectionP" - + "rofiles/*}:\022connection_profile\332A\036connect" - + "ion_profile,update_mask\312A&\n\021ConnectionPr" - + "ofile\022\021OperationMetadata\022\350\001\n\027DeleteConne" - + "ctionProfile\022:.google.cloud.datastream.v" - + "1.DeleteConnectionProfileRequest\032\035.googl" - + "e.longrunning.Operation\"r\202\323\344\223\0028*6/v1/{na" - + "me=projects/*/locations/*/connectionProf" - + "iles/*}\332A\004name\312A*\n\025google.protobuf.Empty" - + "\022\021OperationMetadata\022\344\001\n\031DiscoverConnecti" - + "onProfile\022<.google.cloud.datastream.v1.D" - + "iscoverConnectionProfileRequest\032=.google" - + ".cloud.datastream.v1.DiscoverConnectionP" - + "rofileResponse\"J\202\323\344\223\002D\"?/v1/{parent=proj" - + "ects/*/locations/*}/connectionProfiles:d" - + "iscover:\001*\022\254\001\n\013ListStreams\022..google.clou" - + "d.datastream.v1.ListStreamsRequest\032/.goo" - + "gle.cloud.datastream.v1.ListStreamsRespo" - + "nse\"<\202\323\344\223\002-\022+/v1/{parent=projects/*/loca" - + "tions/*}/streams\332A\006parent\022\231\001\n\tGetStream\022" - + ",.google.cloud.datastream.v1.GetStreamRe" - + "quest\032\".google.cloud.datastream.v1.Strea" - + "m\":\202\323\344\223\002-\022+/v1/{name=projects/*/location" - + "s/*/streams/*}\332A\004name\022\323\001\n\014CreateStream\022/" - + ".google.cloud.datastream.v1.CreateStream" - + "Request\032\035.google.longrunning.Operation\"s" - + "\202\323\344\223\0025\"+/v1/{parent=projects/*/locations" - + "/*}/streams:\006stream\332A\027parent,stream,stre" - + "am_id\312A\033\n\006Stream\022\021OperationMetadata\022\325\001\n\014" - + "UpdateStream\022/.google.cloud.datastream.v" - + "1.UpdateStreamRequest\032\035.google.longrunni" - + "ng.Operation\"u\202\323\344\223\002<22/v1/{stream.name=p" - + "rojects/*/locations/*/streams/*}:\006stream" - + "\332A\022stream,update_mask\312A\033\n\006Stream\022\021Operat" - + "ionMetadata\022\307\001\n\014DeleteStream\022/.google.cl" - + "oud.datastream.v1.DeleteStreamRequest\032\035." - + "google.longrunning.Operation\"g\202\323\344\223\002-*+/v" - + "1/{name=projects/*/locations/*/streams/*" - + "}\332A\004name\312A*\n\025google.protobuf.Empty\022\021Oper" - + "ationMetadata\022\265\001\n\017GetStreamObject\0222.goog" - + "le.cloud.datastream.v1.GetStreamObjectRe" - + "quest\032(.google.cloud.datastream.v1.Strea" - + "mObject\"D\202\323\344\223\0027\0225/v1/{name=projects/*/lo" - + "cations/*/streams/*/objects/*}\332A\004name\022\276\001" - + "\n\022LookupStreamObject\0225.google.cloud.data" - + "stream.v1.LookupStreamObjectRequest\032(.go" - + "ogle.cloud.datastream.v1.StreamObject\"G\202" - + "\323\344\223\002A\"cl" - + "oud.google.com/go/datastream/apiv1/datas" - + "treampb;datastreampb\252\002\032Google.Cloud.Data" - + "stream.V1\312\002\032Google\\Cloud\\Datastream\\V1\352\002" - + "\035Google::Cloud::Datastream::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Parent", - "ConnectionProfile", - "ConnectionProfileName", - "FullHierarchy", - "HierarchyDepth", - "OracleRdbms", - "MysqlRdbms", - "PostgresqlRdbms", - "Target", - "Hierarchy", - "DataObject", - }); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor, - new java.lang.String[] { - "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "DataObject", - }); - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor, - new java.lang.String[] { - "Name", "PageSize", "PageToken", - }); - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor, - new java.lang.String[] { - "StaticIps", "NextPageToken", - }); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor, - new java.lang.String[] { - "ConnectionProfiles", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Parent", - "ConnectionProfileId", - "ConnectionProfile", - "RequestId", - "ValidateOnly", - "Force", - }); - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", - }); - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor, - new java.lang.String[] { - "Streams", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor, - new java.lang.String[] { - "Parent", "StreamId", "Stream", "RequestId", "ValidateOnly", "Force", - }); - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor, - new java.lang.String[] { - "UpdateMask", "Stream", "RequestId", "ValidateOnly", "Force", - }); - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor, - new java.lang.String[] { - "Parent", "SourceObjectIdentifier", - }); - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, - new java.lang.String[] { - "Object", - }); - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor, - new java.lang.String[] { - "Object", - }); - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor, - new java.lang.String[] { - "Object", - }); - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor, - new java.lang.String[] { - "Object", - }); - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor, - new java.lang.String[] { - "StreamObjects", "NextPageToken", - }); - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor, - new java.lang.String[] { - "CreateTime", - "EndTime", - "Target", - "Verb", - "StatusMessage", - "RequestedCancellation", - "ApiVersion", - "ValidationResult", - }); - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor, - new java.lang.String[] { - "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", - }); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor, - new java.lang.String[] { - "PrivateConnections", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", "Force", - }); - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor, - new java.lang.String[] { - "Parent", "RouteId", "Route", "RequestId", - }); - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", "OrderBy", - }); - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor, - new java.lang.String[] { - "Routes", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor, - new java.lang.String[] { - "Name", "RequestId", - }); - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java deleted file mode 100644 index e1b2218d84c6..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java +++ /dev/null @@ -1,1176 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public final class DatastreamResourcesProto { - private DatastreamResourcesProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Route_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StreamObject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Validation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/datastream/v1/datastream_" - + "resources.proto\022\032google.cloud.datastream" - + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\036google/protobuf" - + "/duration.proto\032\037google/protobuf/timesta" - + "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" - + " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" - + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" - + "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" - + "butes\030\006 \003(\0132C.google.cloud.datastream.v1" - + ".OracleProfile.ConnectionAttributesEntry" - + "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" - + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" - + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" - + "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." - + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" - + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" - + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" - + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" - + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" - + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" - + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" - + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" - + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" - + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" - + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" - + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" - + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" - + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" - + "bels\030\004 \003(\01329.google.cloud.datastream.v1." - + "PrivateConnection.LabelsEntry\022\031\n\014display" - + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" - + ".cloud.datastream.v1.PrivateConnection.S" - + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." - + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" - + "config\030d \001(\0132,.google.cloud.datastream.v" - + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" - + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" - + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" - + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" - + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" - + "s.com/PrivateConnection\022Oprojects/{proje" - + "ct}/locations/{location}/privateConnecti" - + "ons/{private_connection}\"f\n\023PrivateConne" - + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" - + "\372A-\n+datastream.googleapis.com/PrivateCo" - + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" - + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" - + "\0132-.google.cloud.datastream.v1.Route.Lab" - + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" - + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" - + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" - + "m.googleapis.com/Route\022^projects/{projec" - + "t}/locations/{location}/privateConnectio" - + "ns/{private_connection}/routes/{route}\"\312" - + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" - + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" - + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" - + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" - + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" - + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" - + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" - + "nnectionProfile.LabelsEntry\022\031\n\014display_n" - + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" - + ".google.cloud.datastream.v1.OracleProfil" - + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." - + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" - + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" - + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" - + "+.google.cloud.datastream.v1.BigQueryPro" - + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" - + "gle.cloud.datastream.v1.PostgresqlProfil" - + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" - + " \001(\01327.google.cloud.datastream.v1.Static" - + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" - + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" - + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" - + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" - + "loud.datastream.v1.PrivateConnectivityH\001" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" - + "/ConnectionProfile\022Oprojects/{project}/l" - + "ocations/{location}/connectionProfiles/{" - + "connection_profile}B\t\n\007profileB\016\n\014connec" - + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" - + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" - + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" - + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" - + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" - + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" - + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" - + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" - + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" - + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" - + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" - + "tastream.v1.OracleSchema\"\300\003\n\022OracleSourc" - + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" - + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" - + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" - + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" - + "c_tasks\030\003 \001(\005\022]\n\022drop_large_objects\030d \001(" - + "\0132?.google.cloud.datastream.v1.OracleSou" - + "rceConfig.DropLargeObjectsH\000\022a\n\024stream_l" - + "arge_objects\030f \001(\0132A.google.cloud.datast" - + "ream.v1.OracleSourceConfig.StreamLargeOb" - + "jectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLar" - + "geObjectsB\030\n\026large_objects_handling\"\250\001\n\020" - + "PostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata" - + "_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision" - + "\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001" - + "(\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position" - + "\030\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t" - + "\022H\n\022postgresql_columns\030\002 \003(\0132,.google.cl" - + "oud.datastream.v1.PostgresqlColumn\"j\n\020Po" - + "stgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgr" - + "esql_tables\030\002 \003(\0132+.google.cloud.datastr" - + "eam.v1.PostgresqlTable\"[\n\017PostgresqlRdbm" - + "s\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.c" - + "loud.datastream.v1.PostgresqlSchema\"\335\001\n\026" - + "PostgresqlSourceConfig\022D\n\017include_object" - + "s\030\001 \001(\0132+.google.cloud.datastream.v1.Pos" - + "tgresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+." - + "google.cloud.datastream.v1.PostgresqlRdb" - + "ms\022\035\n\020replication_slot\030\003 \001(\tB\003\340A\002\022\030\n\013pub" - + "lication\030\004 \001(\tB\003\340A\002\"\224\001\n\013MysqlColumn\022\016\n\006c" - + "olumn\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" - + "\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_key" - + "\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_posi" - + "tion\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t\022" - + ">\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.da" - + "tastream.v1.MysqlColumn\"_\n\rMysqlDatabase" - + "\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(\013" - + "2&.google.cloud.datastream.v1.MysqlTable" - + "\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\0132" - + ").google.cloud.datastream.v1.MysqlDataba" - + "se\"\267\001\n\021MysqlSourceConfig\022?\n\017include_obje" - + "cts\030\001 \001(\0132&.google.cloud.datastream.v1.M" - + "ysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.goo" - + "gle.cloud.datastream.v1.MysqlRdbms\022 \n\030ma" - + "x_concurrent_cdc_tasks\030\003 \001(\005\"\364\002\n\014SourceC" - + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" - + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" - + "ectionProfile\022N\n\024oracle_source_config\030d " - + "\001(\0132..google.cloud.datastream.v1.OracleS" - + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" - + "(\0132-.google.cloud.datastream.v1.MysqlSou" - + "rceConfigH\000\022V\n\030postgresql_source_config\030" - + "f \001(\01322.google.cloud.datastream.v1.Postg" - + "resqlSourceConfigH\000B\026\n\024source_stream_con" - + "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" - + "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" - + "oud.datastream.v1.JsonFileFormat.SchemaF" - + "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." - + "cloud.datastream.v1.JsonFileFormat.JsonC" - + "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" - + "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" - + "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" - + "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" - + "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" - + "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" - + "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" - + "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" - + "vro_file_format\030d \001(\0132*.google.cloud.dat" - + "astream.v1.AvroFileFormatH\000\022F\n\020json_file" - + "_format\030e \001(\0132*.google.cloud.datastream." - + "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" - + "igQueryDestinationConfig\022k\n\025single_targe" - + "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" - + "am.v1.BigQueryDestinationConfig.SingleTa" - + "rgetDatasetH\000\022s\n\031source_hierarchy_datase" - + "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" - + "igQueryDestinationConfig.SourceHierarchy" - + "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" - + "ogle.protobuf.Duration\032)\n\023SingleTargetDa" - + "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" - + "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" - + "].google.cloud.datastream.v1.BigQueryDes" - + "tinationConfig.SourceHierarchyDatasets.D" - + "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" - + "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " - + "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" - + "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" - + "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" - + "tream.googleapis.com/ConnectionProfile\022R" - + "\n\026gcs_destination_config\030d \001(\01320.google." - + "cloud.datastream.v1.GcsDestinationConfig" - + "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" - + "5.google.cloud.datastream.v1.BigQueryDes" - + "tinationConfigH\000B\033\n\031destination_stream_c" - + "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" - + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" - + "..google.cloud.datastream.v1.Stream.Labe" - + "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" - + "urce_config\030\006 \001(\0132(.google.cloud.datastr" - + "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" - + "config\030\007 \001(\0132-.google.cloud.datastream.v" - + "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" - + "(.google.cloud.datastream.v1.Stream.Stat" - + "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" - + "atastream.v1.Stream.BackfillAllStrategyH" - + "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." - + "datastream.v1.Stream.BackfillNoneStrateg" - + "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" - + "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" - + "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" - + "illAllStrategy\022J\n\027oracle_excluded_object" - + "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" - + "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" - + "(\0132&.google.cloud.datastream.v1.MysqlRdb" - + "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" - + "\0132+.google.cloud.datastream.v1.Postgresq" - + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" - + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" - + "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" - + "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" - + "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" - + "pis.com/Stream\0228projects/{project}/locat" - + "ions/{location}/streams/{stream}B\023\n\021back" - + "fill_strategyB\"\n _customer_managed_encry" - + "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" - + "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" - + "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" - + "backfill_job\030\007 \001(\0132\'.google.cloud.datast" - + "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" - + "(\01322.google.cloud.datastream.v1.SourceOb" - + "jectIdentifier:v\352As\n&datastream.googleap" - + "is.com/StreamObject\022Iprojects/{project}/" - + "locations/{location}/streams/{stream}/ob" - + "jects/{object}\"\271\004\n\026SourceObjectIdentifie" - + "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" - + "oud.datastream.v1.SourceObjectIdentifier" - + ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" - + "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" - + ".SourceObjectIdentifier.MysqlObjectIdent" - + "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" - + ".google.cloud.datastream.v1.SourceObject" - + "Identifier.PostgresqlObjectIdentifierH\000\032" - + "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" - + "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" - + "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" - + "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" - + "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" - + "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" - + "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" - + "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" - + "\0162/.google.cloud.datastream.v1.BackfillJ" - + "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" - + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" - + "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" - + "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" - + "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" - + "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" - + "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" - + "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." - + "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" - + "atastream.v1.Error.DetailsEntry\032.\n\014Detai" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" - + "2&.google.cloud.datastream.v1.Validation" - + "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" - + "state\030\002 \001(\0162,.google.cloud.datastream.v1" - + ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" - + "gle.cloud.datastream.v1.ValidationMessag" - + "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" - + "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" - + "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" - + "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" - + "atastream.v1.ValidationMessage.Level\022M\n\010" - + "metadata\030\003 \003(\0132;.google.cloud.datastream" - + ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" - + "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" - + "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" - + "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\250\002\n\036c" - + "om.google.cloud.datastream.v1B\030Datastrea" - + "mResourcesProtoP\001Z>cloud.google.com/go/d" - + "atastream/apiv1/datastreampb;datastreamp" - + "b\252\002\032Google.Cloud.Datastream.V1\312\002\032Google\\" - + "Cloud\\Datastream\\V1\352\002\035Google::Cloud::Dat" - + "astream::V1\352AO\n\037compute.googleapis.com/N" - + "etworks\022,projects/{project}/global/netwo" - + "rks/{network}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor, - new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", - }); - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor = - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor, - new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "SslConfig", - }); - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, - new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "Database", - }); - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, - new java.lang.String[] { - "Bucket", "RootPath", - }); - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, - new java.lang.String[] { - "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", - }); - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, - new java.lang.String[] { - "Vpc", "Subnet", - }); - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "State", - "Error", - "VpcPeeringConfig", - }); - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, - new java.lang.String[] { - "PrivateConnection", - }); - internal_static_google_cloud_datastream_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Route_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "DestinationAddress", - "DestinationPort", - }); - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Route_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, - new java.lang.String[] { - "ClientKey", - "ClientKeySet", - "ClientCertificate", - "ClientCertificateSet", - "CaCertificate", - "CaCertificateSet", - }); - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "OracleProfile", - "GcsProfile", - "MysqlProfile", - "BigqueryProfile", - "PostgresqlProfile", - "StaticServiceIpConnectivity", - "ForwardSshConnectivity", - "PrivateConnectivity", - "Profile", - "Connectivity", - }); - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, - new java.lang.String[] { - "Column", - "DataType", - "Length", - "Precision", - "Scale", - "Encoding", - "PrimaryKey", - "Nullable", - "OrdinalPosition", - }); - internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleTable_descriptor, - new java.lang.String[] { - "Table", "OracleColumns", - }); - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, - new java.lang.String[] { - "Schema", "OracleTables", - }); - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, - new java.lang.String[] { - "OracleSchemas", - }); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, - new java.lang.String[] { - "IncludeObjects", - "ExcludeObjects", - "MaxConcurrentCdcTasks", - "DropLargeObjects", - "StreamLargeObjects", - "LargeObjectsHandling", - }); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, - new java.lang.String[] { - "Column", - "DataType", - "Length", - "Precision", - "Scale", - "PrimaryKey", - "Nullable", - "OrdinalPosition", - }); - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, - new java.lang.String[] { - "Table", "PostgresqlColumns", - }); - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, - new java.lang.String[] { - "Schema", "PostgresqlTables", - }); - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, - new java.lang.String[] { - "PostgresqlSchemas", - }); - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, - new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", "ReplicationSlot", "Publication", - }); - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, - new java.lang.String[] { - "Column", - "DataType", - "Length", - "Collation", - "PrimaryKey", - "Nullable", - "OrdinalPosition", - }); - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, - new java.lang.String[] { - "Table", "MysqlColumns", - }); - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, - new java.lang.String[] { - "Database", "MysqlTables", - }); - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, - new java.lang.String[] { - "MysqlDatabases", - }); - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, - new java.lang.String[] { - "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", - }); - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, - new java.lang.String[] { - "SourceConnectionProfile", - "OracleSourceConfig", - "MysqlSourceConfig", - "PostgresqlSourceConfig", - "SourceStreamConfig", - }); - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, - new java.lang.String[] { - "SchemaFileFormat", "Compression", - }); - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, - new java.lang.String[] { - "Path", - "FileRotationMb", - "FileRotationInterval", - "AvroFileFormat", - "JsonFileFormat", - "FileFormat", - }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, - new java.lang.String[] { - "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", - }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, - new java.lang.String[] { - "DatasetId", - }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, - new java.lang.String[] { - "DatasetTemplate", - }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, - new java.lang.String[] { - "Location", "DatasetIdPrefix", "KmsKeyName", - }); - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, - new java.lang.String[] { - "DestinationConnectionProfile", - "GcsDestinationConfig", - "BigqueryDestinationConfig", - "DestinationStreamConfig", - }); - internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "SourceConfig", - "DestinationConfig", - "State", - "BackfillAll", - "BackfillNone", - "Errors", - "CustomerManagedEncryptionKey", - "BackfillStrategy", - "CustomerManagedEncryptionKey", - }); - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, - new java.lang.String[] { - "OracleExcludedObjects", - "MysqlExcludedObjects", - "PostgresqlExcludedObjects", - "ExcludedObjects", - }); - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StreamObject_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "DisplayName", - "Errors", - "BackfillJob", - "SourceObject", - }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, - new java.lang.String[] { - "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", - }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor, - new java.lang.String[] { - "Schema", "Table", - }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, - new java.lang.String[] { - "Schema", "Table", - }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor - .getNestedTypes() - .get(2); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, - new java.lang.String[] { - "Database", "Table", - }); - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, - new java.lang.String[] { - "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", - }); - internal_static_google_cloud_datastream_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Error_descriptor, - new java.lang.String[] { - "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", - }); - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Error_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, - new java.lang.String[] { - "Validations", - }); - internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Validation_descriptor, - new java.lang.String[] { - "Description", "State", "Message", "Code", - }); - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, - new java.lang.String[] { - "Message", "Level", "Metadata", "Code", - }); - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor = - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java deleted file mode 100644 index 09c66d82c081..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface FetchStaticIpsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name for the location for which static IPs should be returned.
-   * Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name for the location for which static IPs should be returned.
-   * Must be in the format `projects/*/locations/*`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Maximum number of Ips to return, will likely not be specified.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A page token, received from a previous `ListStaticIps` call.
-   * will likely not be specified.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A page token, received from a previous `ListStaticIps` call.
-   * will likely not be specified.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java deleted file mode 100644 index 56b92a1f4eae..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetConnectionProfileRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetConnectionProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index 713b409f0b2b..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetPrivateConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetPrivateConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java deleted file mode 100644 index f63f5593a143..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java deleted file mode 100644 index 63588e715a1e..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetStreamObjectRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream object resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the stream object resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java deleted file mode 100644 index 0c06df45d76d..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java deleted file mode 100644 index 1727d277d665..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface LookupStreamObjectRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.LookupStreamObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The parent stream that owns the collection of objects.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent stream that owns the collection of objects.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the sourceObjectIdentifier field is set. - */ - boolean hasSourceObjectIdentifier(); - /** - * - * - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The sourceObjectIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); - /** - * - * - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder - getSourceObjectIdentifierOrBuilder(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index b94918ad065c..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface PrivateConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. A reference to a private connection resource.
-   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
-   * 
- * - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The privateConnection. - */ - java.lang.String getPrivateConnection(); - /** - * - * - *
-   * Required. A reference to a private connection resource.
-   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
-   * 
- * - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for privateConnection. - */ - com.google.protobuf.ByteString getPrivateConnectionBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java deleted file mode 100644 index 886a6d21e10b..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface SourceObjectIdentifierOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Oracle data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * - * @return Whether the oracleIdentifier field is set. - */ - boolean hasOracleIdentifier(); - /** - * - * - *
-   * Oracle data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * - * @return The oracleIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getOracleIdentifier(); - /** - * - * - *
-   * Oracle data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder - getOracleIdentifierOrBuilder(); - - /** - * - * - *
-   * Mysql data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * - * @return Whether the mysqlIdentifier field is set. - */ - boolean hasMysqlIdentifier(); - /** - * - * - *
-   * Mysql data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * - * @return The mysqlIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier(); - /** - * - * - *
-   * Mysql data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder - getMysqlIdentifierOrBuilder(); - - /** - * - * - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * - * @return Whether the postgresqlIdentifier field is set. - */ - boolean hasPostgresqlIdentifier(); - /** - * - * - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * - * @return The postgresqlIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getPostgresqlIdentifier(); - /** - * - * - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder - getPostgresqlIdentifierOrBuilder(); - - public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase - getSourceIdentifierCase(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java deleted file mode 100644 index b4adbe22e5f7..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface StartBackfillJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream object resource to start a backfill job for.
-   * 
- * - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The object. - */ - java.lang.String getObject(); - /** - * - * - *
-   * Required. The name of the stream object resource to start a backfill job for.
-   * 
- * - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for object. - */ - com.google.protobuf.ByteString getObjectBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index 5ba444a6b4a3..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface StaticServiceIpConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StaticServiceIpConnectivity) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java deleted file mode 100644 index 2852177482fd..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface StopBackfillJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream object resource to stop the backfill job for.
-   * 
- * - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The object. - */ - java.lang.String getObject(); - /** - * - * - *
-   * Required. The name of the stream object resource to stop the backfill job for.
-   * 
- * - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for object. - */ - com.google.protobuf.ByteString getObjectBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java deleted file mode 100644 index 5950a8156734..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface AvroFileFormatOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java deleted file mode 100644 index 5b95ebd7ea24..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java +++ /dev/null @@ -1,832 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamResourcesProto { - private CloudDatastreamResourcesProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/datastream/v1alpha1/datas" - + "tream_resources.proto\022 google.cloud.data" - + "stream.v1alpha1\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\036goo" - + "gle/protobuf/duration.proto\032\037google/prot" - + "obuf/timestamp.proto\"\250\002\n\rOracleProfile\022\025" - + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" - + "sername\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A" - + "\002\022\035\n\020database_service\030\005 \001(\tB\003\340A\002\022h\n\025conn" - + "ection_attributes\030\006 \003(\0132I.google.cloud.d" - + "atastream.v1alpha1.OracleProfile.Connect" - + "ionAttributesEntry\032;\n\031ConnectionAttribut" - + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "\252\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" - + "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" - + "password\030\004 \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001" - + "(\01320.google.cloud.datastream.v1alpha1.My" - + "sqlSslConfig\"9\n\nGcsProfile\022\030\n\013bucket_nam" - + "e\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoCon" - + "nectivitySettings\"\035\n\033StaticServiceIpConn" - + "ectivity\"\250\001\n\034ForwardSshTunnelConnectivit" - + "y\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001" - + "(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB" - + "\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025au" - + "thentication_method\">\n\020VpcPeeringConfig\022" - + "\025\n\010vpc_name\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003" - + "\340A\002\"\324\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022O\n\006labe" - + "ls\030\004 \003(\0132?.google.cloud.datastream.v1alp" - + "ha1.PrivateConnection.LabelsEntry\022\031\n\014dis" - + "play_name\030\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.go" - + "ogle.cloud.datastream.v1alpha1.PrivateCo" - + "nnection.StateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.goo" - + "gle.cloud.datastream.v1alpha1.ErrorB\003\340A\003" - + "\022N\n\022vpc_peering_config\030d \001(\01322.google.cl" - + "oud.datastream.v1alpha1.VpcPeeringConfig" - + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" - + "\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201" - + "\001\352A~\n+datastream.googleapis.com/PrivateC" - + "onnection\022Oprojects/{project}/locations/" - + "{location}/privateConnections/{private_c" - + "onnection}\";\n\023PrivateConnectivity\022$\n\027pri" - + "vate_connection_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Rout" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" - + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud." - + "datastream.v1alpha1.Route.LabelsEntry\022\031\n" - + "\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_" - + "address\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007" - + " \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapi" - + "s.com/Route\022^projects/{project}/location" - + "s/{location}/privateConnections/{private" - + "_connection}/routes/{route}\"\312\001\n\016MysqlSsl" - + "Config\022\027\n\nclient_key\030\013 \001(\tB\003\340A\004\022\033\n\016clien" - + "t_key_set\030\014 \001(\010B\003\340A\003\022\037\n\022client_certifica" - + "te\030\r \001(\tB\003\340A\004\022#\n\026client_certificate_set\030" - + "\016 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022" - + "\037\n\022ca_certificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021Con" - + "nectionProfile\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" - + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?." - + "google.cloud.datastream.v1alpha1.Connect" - + "ionProfile.LabelsEntry\022\031\n\014display_name\030\005" - + " \001(\tB\003\340A\002\022I\n\016oracle_profile\030d \001(\0132/.goog" - + "le.cloud.datastream.v1alpha1.OracleProfi" - + "leH\000\022C\n\013gcs_profile\030e \001(\0132,.google.cloud" - + ".datastream.v1alpha1.GcsProfileH\000\022G\n\rmys" - + "ql_profile\030f \001(\0132..google.cloud.datastre" - + "am.v1alpha1.MysqlProfileH\000\022T\n\017no_connect" - + "ivity\030\310\001 \001(\01328.google.cloud.datastream.v" - + "1alpha1.NoConnectivitySettingsH\001\022h\n\036stat" - + "ic_service_ip_connectivity\030\311\001 \001(\0132=.goog" - + "le.cloud.datastream.v1alpha1.StaticServi" - + "ceIpConnectivityH\001\022c\n\030forward_ssh_connec" - + "tivity\030\312\001 \001(\0132>.google.cloud.datastream." - + "v1alpha1.ForwardSshTunnelConnectivityH\001\022" - + "V\n\024private_connectivity\030\313\001 \001(\01325.google." - + "cloud.datastream.v1alpha1.PrivateConnect" - + "ivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream.googlea" - + "pis.com/ConnectionProfile\022Oprojects/{pro" - + "ject}/locations/{location}/connectionPro" - + "files/{connection_profile}B\t\n\007profileB\016\n" - + "\014connectivity\"\273\001\n\014OracleColumn\022\023\n\013column" - + "_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" - + "\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005" - + "\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022" - + "\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030\t " - + "\001(\005\"i\n\013OracleTable\022\022\n\ntable_name\030\001 \001(\t\022F" - + "\n\016oracle_columns\030\002 \003(\0132..google.cloud.da" - + "tastream.v1alpha1.OracleColumn\"i\n\014Oracle" - + "Schema\022\023\n\013schema_name\030\001 \001(\t\022D\n\roracle_ta" - + "bles\030\002 \003(\0132-.google.cloud.datastream.v1a" - + "lpha1.OracleTable\"U\n\013OracleRdbms\022F\n\016orac" - + "le_schemas\030\001 \003(\0132..google.cloud.datastre" - + "am.v1alpha1.OracleSchema\"\231\001\n\022OracleSourc" - + "eConfig\022@\n\tallowlist\030\001 \001(\0132-.google.clou" - + "d.datastream.v1alpha1.OracleRdbms\022A\n\nrej" - + "ectlist\030\002 \001(\0132-.google.cloud.datastream." - + "v1alpha1.OracleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013" - + "column_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" - + "length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013prima" - + "ry_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordina" - + "l_position\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_" - + "name\030\001 \001(\t\022D\n\rmysql_columns\030\002 \003(\0132-.goog" - + "le.cloud.datastream.v1alpha1.MysqlColumn" - + "\"j\n\rMysqlDatabase\022\025\n\rdatabase_name\030\001 \001(\t" - + "\022B\n\014mysql_tables\030\002 \003(\0132,.google.cloud.da" - + "tastream.v1alpha1.MysqlTable\"V\n\nMysqlRdb" - + "ms\022H\n\017mysql_databases\030\001 \003(\0132/.google.clo" - + "ud.datastream.v1alpha1.MysqlDatabase\"\226\001\n" - + "\021MysqlSourceConfig\022?\n\tallowlist\030\001 \001(\0132,." - + "google.cloud.datastream.v1alpha1.MysqlRd" - + "bms\022@\n\nrejectlist\030\002 \001(\0132,.google.cloud.d" - + "atastream.v1alpha1.MysqlRdbms\"\375\001\n\014Source" - + "Config\022+\n\036source_connection_profile_name" - + "\030\001 \001(\tB\003\340A\002\022T\n\024oracle_source_config\030d \001(" - + "\01324.google.cloud.datastream.v1alpha1.Ora" - + "cleSourceConfigH\000\022R\n\023mysql_source_config" - + "\030e \001(\01323.google.cloud.datastream.v1alpha" - + "1.MysqlSourceConfigH\000B\026\n\024source_stream_c" - + "onfig\"\020\n\016AvroFileFormat\"\212\002\n\016JsonFileForm" - + "at\022N\n\022schema_file_format\030\001 \001(\01622.google." - + "cloud.datastream.v1alpha1.SchemaFileForm" - + "at\022U\n\013compression\030\002 \001(\0162@.google.cloud.d" - + "atastream.v1alpha1.JsonFileFormat.JsonCo" - + "mpression\"Q\n\017JsonCompression\022 \n\034JSON_COM" - + "PRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION" - + "\020\001\022\010\n\004GZIP\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n" - + "\004path\030\001 \001(\t\022L\n\017gcs_file_format\030\002 \001(\0162/.g" - + "oogle.cloud.datastream.v1alpha1.GcsFileF" - + "ormatB\002\030\001\022\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026f" - + "ile_rotation_interval\030\004 \001(\0132\031.google.pro" - + "tobuf.Duration\022L\n\020avro_file_format\030d \001(\013" - + "20.google.cloud.datastream.v1alpha1.Avro" - + "FileFormatH\000\022L\n\020json_file_format\030e \001(\01320" - + ".google.cloud.datastream.v1alpha1.JsonFi" - + "leFormatH\000B\r\n\013file_format\"\274\001\n\021Destinatio" - + "nConfig\0220\n#destination_connection_profil" - + "e_name\030\001 \001(\tB\003\340A\002\022X\n\026gcs_destination_con" - + "fig\030d \001(\01326.google.cloud.datastream.v1al" - + "pha1.GcsDestinationConfigH\000B\033\n\031destinati" - + "on_stream_config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\006la" - + "bels\030\004 \003(\01324.google.cloud.datastream.v1a" - + "lpha1.Stream.LabelsEntry\022\031\n\014display_name" - + "\030\005 \001(\tB\003\340A\002\022J\n\rsource_config\030\006 \001(\0132..goo" - + "gle.cloud.datastream.v1alpha1.SourceConf" - + "igB\003\340A\002\022T\n\022destination_config\030\007 \001(\01323.go" - + "ogle.cloud.datastream.v1alpha1.Destinati" - + "onConfigB\003\340A\002\022=\n\005state\030\010 \001(\0162..google.cl" - + "oud.datastream.v1alpha1.Stream.State\022T\n\014" - + "backfill_all\030e \001(\0132<.google.cloud.datast" - + "ream.v1alpha1.Stream.BackfillAllStrategy" - + "H\000\022V\n\rbackfill_none\030f \001(\0132=.google.cloud" - + ".datastream.v1alpha1.Stream.BackfillNone" - + "StrategyH\000\022<\n\006errors\030\t \003(\0132\'.google.clou" - + "d.datastream.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023Bac" - + "kfillAllStrategy\022P\n\027oracle_excluded_obje" - + "cts\030\001 \001(\0132-.google.cloud.datastream.v1al" - + "pha1.OracleRdbmsH\000\022N\n\026mysql_excluded_obj" - + "ects\030\002 \001(\0132,.google.cloud.datastream.v1a" - + "lpha1.MysqlRdbmsH\000B\022\n\020excluded_objects\032\026" - + "\n\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022" - + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007R" - + "UNNING\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n" - + "\006FAILED\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STA" - + "RTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.g" - + "oogleapis.com/Stream\0228projects/{project}" - + "/locations/{location}/streams/{stream}B\023" - + "\n\021backfill_strategy\"\343\001\n\005Error\022\016\n\006reason\030" - + "\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001" - + "(\t\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf" - + ".Timestamp\022E\n\007details\030\005 \003(\01324.google.clo" - + "ud.datastream.v1alpha1.Error.DetailsEntr" - + "y\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"U\n\020ValidationResult\022A\n\013validat" - + "ions\030\001 \003(\0132,.google.cloud.datastream.v1a" - + "lpha1.Validation\"\206\002\n\nValidation\022\023\n\013descr" - + "iption\030\001 \001(\t\022C\n\006status\030\002 \001(\01623.google.cl" - + "oud.datastream.v1alpha1.Validation.Statu" - + "s\022D\n\007message\030\003 \003(\01323.google.cloud.datast" - + "ream.v1alpha1.ValidationMessage\022\014\n\004code\030" - + "\004 \001(\t\"J\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" - + "\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020" - + "\003\"\272\002\n\021ValidationMessage\022\017\n\007message\030\001 \001(\t" - + "\022H\n\005level\030\002 \001(\01629.google.cloud.datastrea" - + "m.v1alpha1.ValidationMessage.Level\022S\n\010me" - + "tadata\030\003 \003(\0132A.google.cloud.datastream.v" - + "1alpha1.ValidationMessage.MetadataEntry\022" - + "\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL" - + "_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>" - + "\n\rGcsFileFormat\022\037\n\033GCS_FILE_FORMAT_UNSPE" - + "CIFIED\020\000\022\010\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileForm" - + "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" - + "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" - + "B\371\001\n$com.google.cloud.datastream.v1alpha" - + "1B\035CloudDatastreamResourcesProtoP\001ZDclou" - + "d.google.com/go/datastream/apiv1alpha1/d" - + "atastreampb;datastreampb\252\002 Google.Cloud." - + "Datastream.V1Alpha1\312\002 Google\\Cloud\\Datas" - + "tream\\V1alpha1\352\002#Google::Cloud::Datastre" - + "am::V1alpha1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor, - new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor, - new java.lang.String[] { - "Hostname", "Port", "Username", "Password", "SslConfig", - }); - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor, - new java.lang.String[] { - "BucketName", "RootPath", - }); - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor, - new java.lang.String[] { - "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", - }); - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor, - new java.lang.String[] { - "VpcName", "Subnet", - }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "State", - "Error", - "VpcPeeringConfig", - }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor, - new java.lang.String[] { - "PrivateConnectionName", - }); - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "DestinationAddress", - "DestinationPort", - }); - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor, - new java.lang.String[] { - "ClientKey", - "ClientKeySet", - "ClientCertificate", - "ClientCertificateSet", - "CaCertificate", - "CaCertificateSet", - }); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "OracleProfile", - "GcsProfile", - "MysqlProfile", - "NoConnectivity", - "StaticServiceIpConnectivity", - "ForwardSshConnectivity", - "PrivateConnectivity", - "Profile", - "Connectivity", - }); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor, - new java.lang.String[] { - "ColumnName", - "DataType", - "Length", - "Precision", - "Scale", - "Encoding", - "PrimaryKey", - "Nullable", - "OrdinalPosition", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor, - new java.lang.String[] { - "TableName", "OracleColumns", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor, - new java.lang.String[] { - "SchemaName", "OracleTables", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor, - new java.lang.String[] { - "OracleSchemas", - }); - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor, - new java.lang.String[] { - "Allowlist", "Rejectlist", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor, - new java.lang.String[] { - "ColumnName", - "DataType", - "Length", - "Collation", - "PrimaryKey", - "Nullable", - "OrdinalPosition", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor, - new java.lang.String[] { - "TableName", "MysqlColumns", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor, - new java.lang.String[] { - "DatabaseName", "MysqlTables", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor, - new java.lang.String[] { - "MysqlDatabases", - }); - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor, - new java.lang.String[] { - "Allowlist", "Rejectlist", - }); - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor, - new java.lang.String[] { - "SourceConnectionProfileName", - "OracleSourceConfig", - "MysqlSourceConfig", - "SourceStreamConfig", - }); - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor, - new java.lang.String[] { - "SchemaFileFormat", "Compression", - }); - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor, - new java.lang.String[] { - "Path", - "GcsFileFormat", - "FileRotationMb", - "FileRotationInterval", - "AvroFileFormat", - "JsonFileFormat", - "FileFormat", - }); - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor, - new java.lang.String[] { - "DestinationConnectionProfileName", "GcsDestinationConfig", "DestinationStreamConfig", - }); - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor, - new java.lang.String[] { - "Name", - "CreateTime", - "UpdateTime", - "Labels", - "DisplayName", - "SourceConfig", - "DestinationConfig", - "State", - "BackfillAll", - "BackfillNone", - "Errors", - "BackfillStrategy", - }); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor, - new java.lang.String[] { - "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", - }); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor, - new java.lang.String[] { - "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", - }); - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor, - new java.lang.String[] { - "Validations", - }); - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor, - new java.lang.String[] { - "Description", "Status", "Message", "Code", - }); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor, - new java.lang.String[] { - "Message", "Level", "Metadata", "Code", - }); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java deleted file mode 100644 index 9956fe0f4e70..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamServiceProto { - private CloudDatastreamServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datastream/v1alpha1/datas" - + "tream.proto\022 google.cloud.datastream.v1a" - + "lpha1\032\034google/api/annotations.proto\032\027goo" - + "gle/api/client.proto\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto" - + "\032;google/cloud/datastream/v1alpha1/datas" - + "tream_resources.proto\032#google/longrunnin" - + "g/operations.proto\032 google/protobuf/fiel" - + "d_mask.proto\032\037google/protobuf/timestamp." - + "proto\"\275\003\n DiscoverConnectionProfileReque" - + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" - + "oogleapis.com/ConnectionProfile\022R\n\022conne" - + "ction_profile\030\310\001 \001(\01323.google.cloud.data" - + "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" - + "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" - + "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" - + "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" - + "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" - + "rdbms\030e \001(\0132,.google.cloud.datastream.v1" - + "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" - + "\n\013data_object\"\276\001\n!DiscoverConnectionProf" - + "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" - + "le.cloud.datastream.v1alpha1.OracleRdbms" - + "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" - + "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" - + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" - + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" - + "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" - + "\"\n datastream.googleapis.com/Stream\"N\n\023F" - + "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" - + "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" - + "ListConnectionProfilesRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" - + "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" - + "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" - + "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" - + "ogle.cloud.datastream.v1alpha1.Connectio" - + "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" - + "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" - + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." - + "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" - + "ateConnectionProfileRequest\022C\n\006parent\030\001 " - + "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" - + "onnectionProfile\022\"\n\025connection_profile_i" - + "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" - + "23.google.cloud.datastream.v1alpha1.Conn" - + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" - + "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" - + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" - + "23.google.cloud.datastream.v1alpha1.Conn" - + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" - + "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" - + "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" - + " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" - + "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." - + "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " - + "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " - + "\003(\0132(.google.cloud.datastream.v1alpha1.S" - + "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" - + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" - + "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" - + "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" - + "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" - + "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" - + "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" - + " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" - + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" - + "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" - + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" - + "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" - + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" - + ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" - + "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" - + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" - + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" - + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" - + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" - + "_result\030\010 \001(\01322.google.cloud.datastream." - + "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" - + "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" - + "vateConnection\022\"\n\025private_connection_id\030" - + "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" - + ".google.cloud.datastream.v1alpha1.Privat" - + "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" - + "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" - + "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" - + "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" - + "ionsResponse\022P\n\023private_connections\030\001 \003(" - + "\01323.google.cloud.datastream.v1alpha1.Pri" - + "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" - + "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" - + "atastream.googleapis.com/PrivateConnecti" - + "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" - + "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" - + "pis.com/PrivateConnection\"\272\001\n\022CreateRout" - + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" - + "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " - + "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" - + "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" - + "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" - + "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" - + "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" - + " \003(\0132\'.google.cloud.datastream.v1alpha1." - + "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" - + "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" - + "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" - + "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" - + "stream.googleapis.com/Route2\212\'\n\nDatastre" - + "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" - + "loud.datastream.v1alpha1.ListConnectionP" - + "rofilesRequest\032@.google.cloud.datastream" - + ".v1alpha1.ListConnectionProfilesResponse" - + "\"M\202\323\344\223\002>\022\022*\022" - + "\022* - * Required. The name of the connection profile resource to get. - * - * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index 65bfd55549a3..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetPrivateConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java deleted file mode 100644 index 6d0de9d48f68..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java deleted file mode 100644 index af6e5e3a43aa..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java deleted file mode 100644 index cceee8acdc72..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface NoConnectivitySettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index b5cbb65e116f..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface PrivateConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The privateConnectionName. - */ - java.lang.String getPrivateConnectionName(); - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for privateConnectionName. - */ - com.google.protobuf.ByteString getPrivateConnectionNameBytes(); -} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index c157c67ab9bc..000000000000 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface StaticServiceIpConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index 67a0435fee97..35f9758a4422 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -2581,6 +2581,7 @@ public final OperationFuture createPrivate * .setPrivateConnectionId("privateConnectionId-1926654532") * .setPrivateConnection(PrivateConnection.newBuilder().build()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * PrivateConnection response = datastreamClient.createPrivateConnectionAsync(request).get(); * } @@ -2613,6 +2614,7 @@ public final OperationFuture createPrivate * .setPrivateConnectionId("privateConnectionId-1926654532") * .setPrivateConnection(PrivateConnection.newBuilder().build()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * OperationFuture future = * datastreamClient.createPrivateConnectionOperationCallable().futureCall(request); @@ -2646,6 +2648,7 @@ public final OperationFuture createPrivate * .setPrivateConnectionId("privateConnectionId-1926654532") * .setPrivateConnection(PrivateConnection.newBuilder().build()) * .setRequestId("requestId693933066") + * .setForce(true) * .build(); * ApiFuture future = * datastreamClient.createPrivateConnectionCallable().futureCall(request); diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index c6626dd35a11..7cac03cd49df 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -35,6 +35,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.datastream.v1.stub.DatastreamStubSettings; diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java index 35aae8422ccd..0bb962fa9302 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java +++ b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java @@ -82,6 +82,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java index 5d9cd3e72c6b..f0325fd39ca4 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java +++ b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java @@ -37,6 +37,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -801,6 +802,7 @@ public class HttpJsonDatastreamStub extends DatastreamStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "force", request.getForce()); serializer.putQueryParam( fields, "privateConnectionId", request.getPrivateConnectionId()); serializer.putQueryParam(fields, "requestId", request.getRequestId()); diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java b/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java rename to owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java new file mode 100644 index 000000000000..74f3f914733b --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -0,0 +1,2419 @@ +package com.google.cloud.datastream.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Datastream service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datastream/v1/datastream.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DatastreamGrpc { + + private DatastreamGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datastream.v1.Datastream"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { + DatastreamGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + DatastreamGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { + DatastreamGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { + DatastreamGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { + DatastreamGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", + requestType = com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod() { + io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { + DatastreamGrpc.getDiscoverConnectionProfileMethod = getDiscoverConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) + .build(); + } + } + } + return getDiscoverConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getListStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreams", + requestType = com.google.cloud.datastream.v1.ListStreamsRequest.class, + responseType = com.google.cloud.datastream.v1.ListStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListStreamsMethod() { + io.grpc.MethodDescriptor getListStreamsMethod; + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + DatastreamGrpc.getListStreamsMethod = getListStreamsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) + .build(); + } + } + } + return getListStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStream", + requestType = com.google.cloud.datastream.v1.GetStreamRequest.class, + responseType = com.google.cloud.datastream.v1.Stream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStreamMethod() { + io.grpc.MethodDescriptor getGetStreamMethod; + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + DatastreamGrpc.getGetStreamMethod = getGetStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.Stream.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) + .build(); + } + } + } + return getGetStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStream", + requestType = com.google.cloud.datastream.v1.CreateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateStreamMethod() { + io.grpc.MethodDescriptor getCreateStreamMethod; + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + DatastreamGrpc.getCreateStreamMethod = getCreateStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) + .build(); + } + } + } + return getCreateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateStream", + requestType = com.google.cloud.datastream.v1.UpdateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateStreamMethod() { + io.grpc.MethodDescriptor getUpdateStreamMethod; + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + DatastreamGrpc.getUpdateStreamMethod = getUpdateStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) + .build(); + } + } + } + return getUpdateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStream", + requestType = com.google.cloud.datastream.v1.DeleteStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteStreamMethod() { + io.grpc.MethodDescriptor getDeleteStreamMethod; + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + DatastreamGrpc.getDeleteStreamMethod = getDeleteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) + .build(); + } + } + } + return getDeleteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStreamObjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStreamObject", + requestType = com.google.cloud.datastream.v1.GetStreamObjectRequest.class, + responseType = com.google.cloud.datastream.v1.StreamObject.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStreamObjectMethod() { + io.grpc.MethodDescriptor getGetStreamObjectMethod; + if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { + DatastreamGrpc.getGetStreamObjectMethod = getGetStreamObjectMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamObject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStreamObject")) + .build(); + } + } + } + return getGetStreamObjectMethod; + } + + private static volatile io.grpc.MethodDescriptor getLookupStreamObjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupStreamObject", + requestType = com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, + responseType = com.google.cloud.datastream.v1.StreamObject.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLookupStreamObjectMethod() { + io.grpc.MethodDescriptor getLookupStreamObjectMethod; + if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { + DatastreamGrpc.getLookupStreamObjectMethod = getLookupStreamObjectMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupStreamObject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("LookupStreamObject")) + .build(); + } + } + } + return getLookupStreamObjectMethod; + } + + private static volatile io.grpc.MethodDescriptor getListStreamObjectsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreamObjects", + requestType = com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, + responseType = com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListStreamObjectsMethod() { + io.grpc.MethodDescriptor getListStreamObjectsMethod; + if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { + DatastreamGrpc.getListStreamObjectsMethod = getListStreamObjectsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreamObjects")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreamObjects")) + .build(); + } + } + } + return getListStreamObjectsMethod; + } + + private static volatile io.grpc.MethodDescriptor getStartBackfillJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartBackfillJob", + requestType = com.google.cloud.datastream.v1.StartBackfillJobRequest.class, + responseType = com.google.cloud.datastream.v1.StartBackfillJobResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStartBackfillJobMethod() { + io.grpc.MethodDescriptor getStartBackfillJobMethod; + if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { + DatastreamGrpc.getStartBackfillJobMethod = getStartBackfillJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartBackfillJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("StartBackfillJob")) + .build(); + } + } + } + return getStartBackfillJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getStopBackfillJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopBackfillJob", + requestType = com.google.cloud.datastream.v1.StopBackfillJobRequest.class, + responseType = com.google.cloud.datastream.v1.StopBackfillJobResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getStopBackfillJobMethod() { + io.grpc.MethodDescriptor getStopBackfillJobMethod; + if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { + DatastreamGrpc.getStopBackfillJobMethod = getStopBackfillJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopBackfillJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("StopBackfillJob")) + .build(); + } + } + } + return getStopBackfillJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchStaticIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", + requestType = com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, + responseType = com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchStaticIpsMethod() { + io.grpc.MethodDescriptor getFetchStaticIpsMethod; + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + DatastreamGrpc.getFetchStaticIpsMethod = getFetchStaticIpsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) + .build(); + } + } + } + return getFetchStaticIpsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", + requestType = com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePrivateConnectionMethod() { + io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { + DatastreamGrpc.getCreatePrivateConnectionMethod = getCreatePrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) + .build(); + } + } + } + return getCreatePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", + requestType = com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, + responseType = com.google.cloud.datastream.v1.PrivateConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPrivateConnectionMethod() { + io.grpc.MethodDescriptor getGetPrivateConnectionMethod; + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + DatastreamGrpc.getGetPrivateConnectionMethod = getGetPrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) + .build(); + } + } + } + return getGetPrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPrivateConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", + requestType = com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, + responseType = com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPrivateConnectionsMethod() { + io.grpc.MethodDescriptor getListPrivateConnectionsMethod; + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { + DatastreamGrpc.getListPrivateConnectionsMethod = getListPrivateConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) + .build(); + } + } + } + return getListPrivateConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", + requestType = com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePrivateConnectionMethod() { + io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { + DatastreamGrpc.getDeletePrivateConnectionMethod = getDeletePrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) + .build(); + } + } + } + return getDeletePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoute", + requestType = com.google.cloud.datastream.v1.CreateRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRouteMethod() { + io.grpc.MethodDescriptor getCreateRouteMethod; + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + DatastreamGrpc.getCreateRouteMethod = getCreateRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) + .build(); + } + } + } + return getCreateRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoute", + requestType = com.google.cloud.datastream.v1.GetRouteRequest.class, + responseType = com.google.cloud.datastream.v1.Route.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRouteMethod() { + io.grpc.MethodDescriptor getGetRouteMethod; + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + DatastreamGrpc.getGetRouteMethod = getGetRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.Route.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) + .build(); + } + } + } + return getGetRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRoutes", + requestType = com.google.cloud.datastream.v1.ListRoutesRequest.class, + responseType = com.google.cloud.datastream.v1.ListRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRoutesMethod() { + io.grpc.MethodDescriptor getListRoutesMethod; + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + DatastreamGrpc.getListRoutesMethod = getListRoutesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) + .build(); + } + } + } + return getListRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", + requestType = com.google.cloud.datastream.v1.DeleteRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRouteMethod() { + io.grpc.MethodDescriptor getDeleteRouteMethod; + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + DatastreamGrpc.getDeleteRouteMethod = getDeleteRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) + .build(); + } + } + } + return getDeleteRouteMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DatastreamStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + }; + return DatastreamStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DatastreamBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + }; + return DatastreamBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DatastreamFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + }; + return DatastreamFutureStub.newStub(factory, channel); + } + + /** + *
+   * Datastream service
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + default void listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + default void getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + default void createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + default void updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + default void deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + default void discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiscoverConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + default void listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamsMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + default void getStream(com.google.cloud.datastream.v1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + default void createStream(com.google.cloud.datastream.v1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + default void updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + default void deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + default void getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamObjectMethod(), responseObserver); + } + + /** + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + default void lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupStreamObjectMethod(), responseObserver); + } + + /** + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + default void listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamObjectsMethod(), responseObserver); + } + + /** + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + default void startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartBackfillJobMethod(), responseObserver); + } + + /** + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + default void stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopBackfillJobMethod(), responseObserver); + } + + /** + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + default void fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchStaticIpsMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + default void createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + default void getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + default void listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPrivateConnectionsMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + default void deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + default void createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRouteMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + default void getRoute(com.google.cloud.datastream.v1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); + } + + /** + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + default void listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + default void deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static abstract class DatastreamImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DatastreamGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamStub + extends io.grpc.stub.AbstractAsyncStub { + private DatastreamStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public void listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public void getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public void createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public void updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public void deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public void discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public void listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public void getStream(com.google.cloud.datastream.v1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public void createStream(com.google.cloud.datastream.v1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public void updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public void deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public void getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public void lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public void listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public void startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public void stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public void fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public void createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public void getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public void listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public void deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public void createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public void getRoute(com.google.cloud.datastream.v1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public void listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public void deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DatastreamBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListStreamsResponse listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.cloud.datastream.v1.Stream getStream(com.google.cloud.datastream.v1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.longrunning.Operation createStream(com.google.cloud.datastream.v1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.longrunning.Operation updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.longrunning.Operation deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StreamObject getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamObjectMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public com.google.cloud.datastream.v1.StreamObject lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupStreamObjectMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamObjectsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartBackfillJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopBackfillJobMethod(), getCallOptions(), request); + } + + /** + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.cloud.datastream.v1.Route getRoute(com.google.cloud.datastream.v1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoutesMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.longrunning.Operation deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRouteMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DatastreamFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( + com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture discoverConnectionProfile( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listStreams( + com.google.cloud.datastream.v1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getStream( + com.google.cloud.datastream.v1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createStream( + com.google.cloud.datastream.v1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateStream( + com.google.cloud.datastream.v1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteStream( + com.google.cloud.datastream.v1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getStreamObject( + com.google.cloud.datastream.v1.GetStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture lookupStreamObject( + com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listStreamObjects( + com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture startBackfillJob( + com.google.cloud.datastream.v1.StartBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture stopBackfillJob( + com.google.cloud.datastream.v1.StopBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request); + } + + /** + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchStaticIps( + com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPrivateConnection( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPrivateConnection( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPrivateConnections( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePrivateConnection( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRoute( + com.google.cloud.datastream.v1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRoute( + com.google.cloud.datastream.v1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRoutes( + com.google.cloud.datastream.v1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRoute( + com.google.cloud.datastream.v1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONNECTION_PROFILES = 0; + private static final int METHODID_GET_CONNECTION_PROFILE = 1; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; + private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; + private static final int METHODID_LIST_STREAMS = 6; + private static final int METHODID_GET_STREAM = 7; + private static final int METHODID_CREATE_STREAM = 8; + private static final int METHODID_UPDATE_STREAM = 9; + private static final int METHODID_DELETE_STREAM = 10; + private static final int METHODID_GET_STREAM_OBJECT = 11; + private static final int METHODID_LOOKUP_STREAM_OBJECT = 12; + private static final int METHODID_LIST_STREAM_OBJECTS = 13; + private static final int METHODID_START_BACKFILL_JOB = 14; + private static final int METHODID_STOP_BACKFILL_JOB = 15; + private static final int METHODID_FETCH_STATIC_IPS = 16; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; + private static final int METHODID_GET_PRIVATE_CONNECTION = 18; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; + private static final int METHODID_CREATE_ROUTE = 21; + private static final int METHODID_GET_ROUTE = 22; + private static final int METHODID_LIST_ROUTES = 23; + private static final int METHODID_DELETE_ROUTE = 24; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles((com.google.cloud.datastream.v1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile((com.google.cloud.datastream.v1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile((com.google.cloud.datastream.v1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISCOVER_CONNECTION_PROFILE: + serviceImpl.discoverConnectionProfile((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_STREAMS: + serviceImpl.listStreams((com.google.cloud.datastream.v1.ListStreamsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STREAM: + serviceImpl.getStream((com.google.cloud.datastream.v1.GetStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_STREAM: + serviceImpl.createStream((com.google.cloud.datastream.v1.CreateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_STREAM: + serviceImpl.updateStream((com.google.cloud.datastream.v1.UpdateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_STREAM: + serviceImpl.deleteStream((com.google.cloud.datastream.v1.DeleteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STREAM_OBJECT: + serviceImpl.getStreamObject((com.google.cloud.datastream.v1.GetStreamObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LOOKUP_STREAM_OBJECT: + serviceImpl.lookupStreamObject((com.google.cloud.datastream.v1.LookupStreamObjectRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_STREAM_OBJECTS: + serviceImpl.listStreamObjects((com.google.cloud.datastream.v1.ListStreamObjectsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_START_BACKFILL_JOB: + serviceImpl.startBackfillJob((com.google.cloud.datastream.v1.StartBackfillJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_STOP_BACKFILL_JOB: + serviceImpl.stopBackfillJob((com.google.cloud.datastream.v1.StopBackfillJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_STATIC_IPS: + serviceImpl.fetchStaticIps((com.google.cloud.datastream.v1.FetchStaticIpsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection((com.google.cloud.datastream.v1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ROUTE: + serviceImpl.createRoute((com.google.cloud.datastream.v1.CreateRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROUTE: + serviceImpl.getRoute((com.google.cloud.datastream.v1.GetRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROUTES: + serviceImpl.listRoutes((com.google.cloud.datastream.v1.ListRoutesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ROUTE: + serviceImpl.deleteRoute((com.google.cloud.datastream.v1.DeleteRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse>( + service, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1.ConnectionProfile>( + service, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_CONNECTION_PROFILE))) + .addMethod( + getDiscoverConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>( + service, METHODID_DISCOVER_CONNECTION_PROFILE))) + .addMethod( + getListStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListStreamsRequest, + com.google.cloud.datastream.v1.ListStreamsResponse>( + service, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamRequest, + com.google.cloud.datastream.v1.Stream>( + service, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_STREAM))) + .addMethod( + getGetStreamObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject>( + service, METHODID_GET_STREAM_OBJECT))) + .addMethod( + getLookupStreamObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.LookupStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject>( + service, METHODID_LOOKUP_STREAM_OBJECT))) + .addMethod( + getListStreamObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListStreamObjectsRequest, + com.google.cloud.datastream.v1.ListStreamObjectsResponse>( + service, METHODID_LIST_STREAM_OBJECTS))) + .addMethod( + getStartBackfillJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.StartBackfillJobRequest, + com.google.cloud.datastream.v1.StartBackfillJobResponse>( + service, METHODID_START_BACKFILL_JOB))) + .addMethod( + getStopBackfillJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.StopBackfillJobRequest, + com.google.cloud.datastream.v1.StopBackfillJobResponse>( + service, METHODID_STOP_BACKFILL_JOB))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1.FetchStaticIpsResponse>( + service, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetRouteRequest, + com.google.cloud.datastream.v1.Route>( + service, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse>( + service, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_ROUTE))) + .build(); + } + + private static abstract class DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DatastreamBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Datastream"); + } + } + + private static final class DatastreamFileDescriptorSupplier + extends DatastreamBaseDescriptorSupplier { + DatastreamFileDescriptorSupplier() {} + } + + private static final class DatastreamMethodDescriptorSupplier + extends DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DatastreamMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DatastreamGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .addMethod(getDiscoverConnectionProfileMethod()) + .addMethod(getListStreamsMethod()) + .addMethod(getGetStreamMethod()) + .addMethod(getCreateStreamMethod()) + .addMethod(getUpdateStreamMethod()) + .addMethod(getDeleteStreamMethod()) + .addMethod(getGetStreamObjectMethod()) + .addMethod(getLookupStreamObjectMethod()) + .addMethod(getListStreamObjectsMethod()) + .addMethod(getStartBackfillJobMethod()) + .addMethod(getStopBackfillJobMethod()) + .addMethod(getFetchStaticIpsMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getCreateRouteMethod()) + .addMethod(getGetRouteMethod()) + .addMethod(getListRoutesMethod()) + .addMethod(getDeleteRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java index 838de8c7d110..e1ec879a59a7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java @@ -1,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * AVRO file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.AvroFileFormat} */ -public final class AvroFileFormat extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroFileFormat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.AvroFileFormat) AvroFileFormatOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroFileFormat.newBuilder() to construct. private AvroFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AvroFileFormat() {} + private AvroFileFormat() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.AvroFileFormat.class, - com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1.AvroFileFormat.class, com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +78,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.AvroFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1.AvroFileFormat other = - (com.google.cloud.datastream.v1.AvroFileFormat) obj; + com.google.cloud.datastream.v1.AvroFileFormat other = (com.google.cloud.datastream.v1.AvroFileFormat) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -120,136 +101,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.AvroFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AVRO file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.AvroFileFormat} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.AvroFileFormat) com.google.cloud.datastream.v1.AvroFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.AvroFileFormat.class, - com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1.AvroFileFormat.class, com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1.AvroFileFormat.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -257,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override @@ -278,8 +253,7 @@ public com.google.cloud.datastream.v1.AvroFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormat buildPartial() { - com.google.cloud.datastream.v1.AvroFileFormat result = - new com.google.cloud.datastream.v1.AvroFileFormat(this); + com.google.cloud.datastream.v1.AvroFileFormat result = new com.google.cloud.datastream.v1.AvroFileFormat(this); onBuilt(); return result; } @@ -288,39 +262,38 @@ public com.google.cloud.datastream.v1.AvroFileFormat buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.AvroFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat) other); + return mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat)other); } else { super.mergeFrom(other); return this; @@ -355,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -371,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -383,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.AvroFileFormat) private static final com.google.cloud.datastream.v1.AvroFileFormat DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.AvroFileFormat(); } @@ -397,27 +369,27 @@ public static com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -432,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java new file mode 100644 index 000000000000..8dd2d0db1d55 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface AvroFileFormatOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java index 305582b4b551..56f204e9de98 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Represents a backfill job on a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.BackfillJob} */ -public final class BackfillJob extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BackfillJob extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BackfillJob) BackfillJobOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BackfillJob.newBuilder() to construct. private BackfillJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BackfillJob() { state_ = 0; trigger_ = 0; @@ -45,43 +27,39 @@ private BackfillJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BackfillJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BackfillJob.class, - com.google.cloud.datastream.v1.BackfillJob.Builder.class); + com.google.cloud.datastream.v1.BackfillJob.class, com.google.cloud.datastream.v1.BackfillJob.Builder.class); } /** - * - * *
    * State of the stream object's backfill job.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.BackfillJob.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -90,8 +68,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Backfill job was never started for the stream object (stream has backfill
      * strategy defined as manual or object was explicitly excluded from
@@ -102,8 +78,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     NOT_STARTED(1),
     /**
-     *
-     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -112,8 +86,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PENDING(2), /** - * - * *
      * Backfill job is running.
      * 
@@ -122,8 +94,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(3), /** - * - * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -132,8 +102,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STOPPED(4), /** - * - * *
      * Backfill job failed (due to an error).
      * 
@@ -142,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(5), /** - * - * *
      * Backfill completed successfully.
      * 
@@ -152,8 +118,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ COMPLETED(6), /** - * - * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -166,8 +130,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Default value.
      * 
@@ -176,8 +138,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Backfill job was never started for the stream object (stream has backfill
      * strategy defined as manual or object was explicitly excluded from
@@ -188,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int NOT_STARTED_VALUE = 1;
     /**
-     *
-     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -198,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PENDING_VALUE = 2; /** - * - * *
      * Backfill job is running.
      * 
@@ -208,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 3; /** - * - * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -218,8 +172,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPED_VALUE = 4; /** - * - * *
      * Backfill job failed (due to an error).
      * 
@@ -228,8 +180,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 5; /** - * - * *
      * Backfill completed successfully.
      * 
@@ -238,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int COMPLETED_VALUE = 6; /** - * - * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -249,6 +197,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int UNSUPPORTED_VALUE = 7;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -273,59 +222,54 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return NOT_STARTED;
-        case 2:
-          return PENDING;
-        case 3:
-          return ACTIVE;
-        case 4:
-          return STOPPED;
-        case 5:
-          return FAILED;
-        case 6:
-          return COMPLETED;
-        case 7:
-          return UNSUPPORTED;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return NOT_STARTED;
+        case 2: return PENDING;
+        case 3: return ACTIVE;
+        case 4: return STOPPED;
+        case 5: return FAILED;
+        case 6: return COMPLETED;
+        case 7: return UNSUPPORTED;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.datastream.v1.BackfillJob.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -343,18 +287,15 @@ private State(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Triggering reason for a backfill job.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.BackfillJob.Trigger} */ - public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { + public enum Trigger + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Default value.
      * 
@@ -363,8 +304,6 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { */ TRIGGER_UNSPECIFIED(0), /** - * - * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -374,8 +313,6 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum {
      */
     AUTOMATIC(1),
     /**
-     *
-     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -387,8 +324,6 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Default value.
      * 
@@ -397,8 +332,6 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TRIGGER_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -408,8 +341,6 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int AUTOMATIC_VALUE = 1;
     /**
-     *
-     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -418,6 +349,7 @@ public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MANUAL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -442,49 +374,49 @@ public static Trigger valueOf(int value) { */ public static Trigger forNumber(int value) { switch (value) { - case 0: - return TRIGGER_UNSPECIFIED; - case 1: - return AUTOMATIC; - case 2: - return MANUAL; - default: - return null; + case 0: return TRIGGER_UNSPECIFIED; + case 1: return AUTOMATIC; + case 2: return MANUAL; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Trigger> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Trigger findValueByNumber(int number) { + return Trigger.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Trigger findValueByNumber(int number) { - return Trigger.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.BackfillJob.getDescriptor().getEnumTypes().get(1); } private static final Trigger[] VALUES = values(); - public static Trigger valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Trigger valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -504,88 +436,63 @@ private Trigger(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** - * - * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1.BackfillJob.State getState() { - com.google.cloud.datastream.v1.BackfillJob.State result = - com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); + @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.State getState() { + com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED : result; } public static final int TRIGGER_FIELD_NUMBER = 2; private int trigger_ = 0; /** - * - * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The enum numeric value on the wire for trigger. */ - @java.lang.Override - public int getTriggerValue() { + @java.lang.Override public int getTriggerValue() { return trigger_; } /** - * - * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The trigger. */ - @java.lang.Override - public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { - com.google.cloud.datastream.v1.BackfillJob.Trigger result = - com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); - return result == null - ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { + com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); + return result == null ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED : result; } public static final int LAST_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastStartTime_; /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastStartTime field is set. */ @java.lang.Override @@ -593,55 +500,37 @@ public boolean hasLastStartTime() { return lastStartTime_ != null; } /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastStartTime() { - return lastStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStartTime_; + return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; } /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { - return lastStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStartTime_; + return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; } public static final int LAST_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastEndTime_; /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastEndTime field is set. */ @java.lang.Override @@ -649,16 +538,11 @@ public boolean hasLastEndTime() { return lastEndTime_ != null; } /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastEndTime. */ @java.lang.Override @@ -666,15 +550,11 @@ public com.google.protobuf.Timestamp getLastEndTime() { return lastEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; } /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { @@ -682,88 +562,67 @@ public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { } public static final int ERRORS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -775,12 +634,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (state_ != com.google.cloud.datastream.v1.BackfillJob.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } - if (trigger_ - != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + if (trigger_ != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { output.writeEnum(2, trigger_); } if (lastStartTime_ != null) { @@ -802,20 +661,24 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.datastream.v1.BackfillJob.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); } - if (trigger_ - != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, trigger_); + if (trigger_ != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, trigger_); } if (lastStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastStartTime()); } if (lastEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastEndTime()); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -825,25 +688,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.BackfillJob)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BackfillJob other = - (com.google.cloud.datastream.v1.BackfillJob) obj; + com.google.cloud.datastream.v1.BackfillJob other = (com.google.cloud.datastream.v1.BackfillJob) obj; if (state_ != other.state_) return false; if (trigger_ != other.trigger_) return false; if (hasLastStartTime() != other.hasLastStartTime()) return false; if (hasLastStartTime()) { - if (!getLastStartTime().equals(other.getLastStartTime())) return false; + if (!getLastStartTime() + .equals(other.getLastStartTime())) return false; } if (hasLastEndTime() != other.hasLastEndTime()) return false; if (hasLastEndTime()) { - if (!getLastEndTime().equals(other.getLastEndTime())) return false; + if (!getLastEndTime() + .equals(other.getLastEndTime())) return false; } - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -876,136 +741,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.BackfillJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents a backfill job on a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BackfillJob} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BackfillJob) com.google.cloud.datastream.v1.BackfillJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BackfillJob.class, - com.google.cloud.datastream.v1.BackfillJob.Builder.class); + com.google.cloud.datastream.v1.BackfillJob.class, com.google.cloud.datastream.v1.BackfillJob.Builder.class); } // Construct using com.google.cloud.datastream.v1.BackfillJob.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1033,9 +892,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override @@ -1054,12 +913,9 @@ public com.google.cloud.datastream.v1.BackfillJob build() { @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob buildPartial() { - com.google.cloud.datastream.v1.BackfillJob result = - new com.google.cloud.datastream.v1.BackfillJob(this); + com.google.cloud.datastream.v1.BackfillJob result = new com.google.cloud.datastream.v1.BackfillJob(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -1085,12 +941,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.BackfillJob result) { result.trigger_ = trigger_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.lastStartTime_ = - lastStartTimeBuilder_ == null ? lastStartTime_ : lastStartTimeBuilder_.build(); + result.lastStartTime_ = lastStartTimeBuilder_ == null + ? lastStartTime_ + : lastStartTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastEndTime_ = - lastEndTimeBuilder_ == null ? lastEndTime_ : lastEndTimeBuilder_.build(); + result.lastEndTime_ = lastEndTimeBuilder_ == null + ? lastEndTime_ + : lastEndTimeBuilder_.build(); } } @@ -1098,39 +956,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.BackfillJob result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BackfillJob) { - return mergeFrom((com.google.cloud.datastream.v1.BackfillJob) other); + return mergeFrom((com.google.cloud.datastream.v1.BackfillJob)other); } else { super.mergeFrom(other); return this; @@ -1169,10 +1026,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.BackfillJob other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000010); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1204,50 +1060,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - trigger_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage(getLastStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getLastEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + trigger_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getLastStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getLastEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1257,34 +1112,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int state_ = 0; /** - * - * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1295,33 +1142,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.State getState() { - com.google.cloud.datastream.v1.BackfillJob.State result = - com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED : result; } /** - * - * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1335,14 +1173,11 @@ public Builder setState(com.google.cloud.datastream.v1.BackfillJob.State value) return this; } /** - * - * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1354,29 +1189,22 @@ public Builder clearState() { private int trigger_ = 0; /** - * - * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The enum numeric value on the wire for trigger. */ - @java.lang.Override - public int getTriggerValue() { + @java.lang.Override public int getTriggerValue() { return trigger_; } /** - * - * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @param value The enum numeric value on the wire for trigger to set. * @return This builder for chaining. */ @@ -1387,33 +1215,24 @@ public Builder setTriggerValue(int value) { return this; } /** - * - * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The trigger. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { - com.google.cloud.datastream.v1.BackfillJob.Trigger result = - com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); - return result == null - ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); + return result == null ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED : result; } /** - * - * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @param value The trigger to set. * @return This builder for chaining. */ @@ -1427,14 +1246,11 @@ public Builder setTrigger(com.google.cloud.datastream.v1.BackfillJob.Trigger val return this; } /** - * - * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return This builder for chaining. */ public Builder clearTrigger() { @@ -1446,58 +1262,39 @@ public Builder clearTrigger() { private com.google.protobuf.Timestamp lastStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastStartTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastStartTimeBuilder_; /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastStartTime field is set. */ public boolean hasLastStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastStartTime. */ public com.google.protobuf.Timestamp getLastStartTime() { if (lastStartTimeBuilder_ == null) { - return lastStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStartTime_; + return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; } else { return lastStartTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastStartTime(com.google.protobuf.Timestamp value) { if (lastStartTimeBuilder_ == null) { @@ -1513,17 +1310,14 @@ public Builder setLastStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastStartTimeBuilder_ == null) { lastStartTime_ = builderForValue.build(); } else { @@ -1534,21 +1328,17 @@ public Builder setLastStartTime(com.google.protobuf.Timestamp.Builder builderFor return this; } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastStartTime(com.google.protobuf.Timestamp value) { if (lastStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && lastStartTime_ != null - && lastStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + lastStartTime_ != null && + lastStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastStartTimeBuilder().mergeFrom(value); } else { lastStartTime_ = value; @@ -1561,15 +1351,11 @@ public Builder mergeLastStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastStartTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1582,15 +1368,11 @@ public Builder clearLastStartTime() { return this; } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastStartTimeBuilder() { bitField0_ |= 0x00000004; @@ -1598,48 +1380,36 @@ public com.google.protobuf.Timestamp.Builder getLastStartTimeBuilder() { return getLastStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { if (lastStartTimeBuilder_ != null) { return lastStartTimeBuilder_.getMessageOrBuilder(); } else { - return lastStartTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastStartTime_; + return lastStartTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; } } /** - * - * *
      * Output only. Backfill job's start time.
      * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastStartTimeFieldBuilder() { if (lastStartTimeBuilder_ == null) { - lastStartTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastStartTime(), getParentForChildren(), isClean()); + lastStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastStartTime(), + getParentForChildren(), + isClean()); lastStartTime_ = null; } return lastStartTimeBuilder_; @@ -1647,58 +1417,39 @@ public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastEndTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastEndTimeBuilder_; /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastEndTime field is set. */ public boolean hasLastEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastEndTime. */ public com.google.protobuf.Timestamp getLastEndTime() { if (lastEndTimeBuilder_ == null) { - return lastEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastEndTime_; + return lastEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; } else { return lastEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setLastEndTime(com.google.protobuf.Timestamp value) { if (lastEndTimeBuilder_ == null) { @@ -1714,17 +1465,14 @@ public Builder setLastEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setLastEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastEndTimeBuilder_ == null) { lastEndTime_ = builderForValue.build(); } else { @@ -1735,21 +1483,17 @@ public Builder setLastEndTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeLastEndTime(com.google.protobuf.Timestamp value) { if (lastEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && lastEndTime_ != null - && lastEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + lastEndTime_ != null && + lastEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastEndTimeBuilder().mergeFrom(value); } else { lastEndTime_ = value; @@ -1762,15 +1506,11 @@ public Builder mergeLastEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearLastEndTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1783,15 +1523,11 @@ public Builder clearLastEndTime() { return this; } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getLastEndTimeBuilder() { bitField0_ |= 0x00000008; @@ -1799,79 +1535,59 @@ public com.google.protobuf.Timestamp.Builder getLastEndTimeBuilder() { return getLastEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { if (lastEndTimeBuilder_ != null) { return lastEndTimeBuilder_.getMessageOrBuilder(); } else { - return lastEndTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastEndTime_; + return lastEndTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; } } /** - * - * *
      * Output only. Backfill job's end time.
      * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastEndTimeFieldBuilder() { if (lastEndTimeBuilder_ == null) { - lastEndTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastEndTime(), getParentForChildren(), isClean()); + lastEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastEndTime(), + getParentForChildren(), + isClean()); lastEndTime_ = null; } return lastEndTimeBuilder_; } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> - errorsBuilder_; + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -1881,15 +1597,11 @@ public java.util.List getErrorsList() { } } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -1899,15 +1611,11 @@ public int getErrorsCount() { } } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -1917,17 +1625,14 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1941,15 +1646,11 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1963,15 +1664,11 @@ public Builder setErrors( return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -1987,17 +1684,14 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2011,17 +1705,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -2032,15 +1723,11 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderFor return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -2054,21 +1741,18 @@ public Builder addErrors( return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -2076,15 +1760,11 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -2097,15 +1777,11 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -2118,50 +1794,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -2169,69 +1834,56 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde } } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2241,12 +1893,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BackfillJob) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BackfillJob) private static final com.google.cloud.datastream.v1.BackfillJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BackfillJob(); } @@ -2255,27 +1907,27 @@ public static com.google.cloud.datastream.v1.BackfillJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2290,4 +1942,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BackfillJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java similarity index 55% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java index 58eab00c274d..b5dc43d524bc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java @@ -1,218 +1,145 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface BackfillJobOrBuilder - extends +public interface BackfillJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BackfillJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; - * * @return The state. */ com.google.cloud.datastream.v1.BackfillJob.State getState(); /** - * - * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The enum numeric value on the wire for trigger. */ int getTriggerValue(); /** - * - * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; - * * @return The trigger. */ com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger(); /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastStartTime field is set. */ boolean hasLastStartTime(); /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastStartTime. */ com.google.protobuf.Timestamp getLastStartTime(); /** - * - * *
    * Output only. Backfill job's start time.
    * 
* - * - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder(); /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the lastEndTime field is set. */ boolean hasLastEndTime(); /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The lastEndTime. */ com.google.protobuf.Timestamp getLastEndTime(); /** - * - * *
    * Output only. Backfill job's end time.
    * 
* - * - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder(); /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1.Error getErrors(int index); /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getErrorsCount(); /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsOrBuilderList(); + java.util.List + getErrorsOrBuilderList(); /** - * - * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java index 27fb2c5eb40e..f5b9b495d89c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java @@ -1,137 +1,130 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -/** Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */ -public final class BigQueryDestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +/** + *
+ * BigQuery destination configuration
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} + */ +public final class BigQueryDestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) BigQueryDestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryDestinationConfig.newBuilder() to construct. private BigQueryDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BigQueryDestinationConfig() {} + private BigQueryDestinationConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); } - public interface SingleTargetDatasetOrBuilder - extends + public interface SingleTargetDatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) com.google.protobuf.MessageOrBuilder { /** - * string dataset_id = 1; + *
+     * The dataset ID of the target dataset.
+     * 
* + * string dataset_id = 1; * @return The datasetId. */ java.lang.String getDatasetId(); /** - * string dataset_id = 1; + *
+     * The dataset ID of the target dataset.
+     * 
* + * string dataset_id = 1; * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getDatasetIdBytes(); + com.google.protobuf.ByteString + getDatasetIdBytes(); } /** - * - * *
    * A single target dataset to which all data will be streamed.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} */ - public static final class SingleTargetDataset extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SingleTargetDataset extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) SingleTargetDatasetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SingleTargetDataset.newBuilder() to construct. private SingleTargetDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SingleTargetDataset() { datasetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SingleTargetDataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder - .class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder.class); } public static final int DATASET_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** - * string dataset_id = 1; + *
+     * The dataset ID of the target dataset.
+     * 
* + * string dataset_id = 1; * @return The datasetId. */ @java.lang.Override @@ -140,23 +133,29 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** - * string dataset_id = 1; + *
+     * The dataset ID of the target dataset.
+     * 
* + * string dataset_id = 1; * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -165,7 +164,6 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -201,17 +200,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; - if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getDatasetId() + .equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,101 +227,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -334,44 +318,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A single target dataset to which all data will be streamed.
      * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder - .class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -381,22 +360,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = - buildPartial(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -404,19 +380,14 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetData } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result) { + private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.datasetId_ = datasetId_; @@ -427,55 +398,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { - return mergeFrom( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) other); + if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { - if (other - == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance()) return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; bitField0_ |= 0x00000001; @@ -507,19 +469,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -529,19 +489,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object datasetId_ = ""; /** - * string dataset_id = 1; + *
+       * The dataset ID of the target dataset.
+       * 
* + * string dataset_id = 1; * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -550,15 +513,20 @@ public java.lang.String getDatasetId() { } } /** - * string dataset_id = 1; + *
+       * The dataset ID of the target dataset.
+       * 
* + * string dataset_id = 1; * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getDatasetIdBytes() { + public com.google.protobuf.ByteString + getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetId_ = b; return b; } else { @@ -566,23 +534,28 @@ public com.google.protobuf.ByteString getDatasetIdBytes() { } } /** - * string dataset_id = 1; + *
+       * The dataset ID of the target dataset.
+       * 
* + * string dataset_id = 1; * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string dataset_id = 1; + *
+       * The dataset ID of the target dataset.
+       * 
* + * string dataset_id = 1; * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -592,22 +565,23 @@ public Builder clearDatasetId() { return this; } /** - * string dataset_id = 1; + *
+       * The dataset ID of the target dataset.
+       * 
* + * string dataset_id = 1; * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -620,46 +594,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SingleTargetDataset - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SingleTargetDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleTargetDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,102 +640,93 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface SourceHierarchyDatasetsOrBuilder - extends + public interface SourceHierarchyDatasetsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) com.google.protobuf.MessageOrBuilder { /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return Whether the datasetTemplate field is set. */ boolean hasDatasetTemplate(); /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return The datasetTemplate. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate - getDatasetTemplate(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate(); /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder - getDatasetTemplateOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder(); } /** - * - * *
    * Destination datasets are created so that hierarchy of the destination data
    * objects matches the source hierarchy.
    * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} */ - public static final class SourceHierarchyDatasets extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class SourceHierarchyDatasets extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) SourceHierarchyDatasetsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceHierarchyDatasets.newBuilder() to construct. private SourceHierarchyDatasets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SourceHierarchyDatasets() {} + private SourceHierarchyDatasets() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceHierarchyDatasets(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder.class); } - public interface DatasetTemplateOrBuilder - extends + public interface DatasetTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) com.google.protobuf.MessageOrBuilder { /** - * - * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -774,13 +734,10 @@ public interface DatasetTemplateOrBuilder
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The location. */ java.lang.String getLocation(); /** - * - * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -788,14 +745,12 @@ public interface DatasetTemplateOrBuilder
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for location. */ - com.google.protobuf.ByteString getLocationBytes(); + com.google.protobuf.ByteString + getLocationBytes(); /** - * - * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -803,13 +758,10 @@ public interface DatasetTemplateOrBuilder
        * 
* * string dataset_id_prefix = 2; - * * @return The datasetIdPrefix. */ java.lang.String getDatasetIdPrefix(); /** - * - * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -817,14 +769,12 @@ public interface DatasetTemplateOrBuilder
        * 
* * string dataset_id_prefix = 2; - * * @return The bytes for datasetIdPrefix. */ - com.google.protobuf.ByteString getDatasetIdPrefixBytes(); + com.google.protobuf.ByteString + getDatasetIdPrefixBytes(); /** - * - * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -836,13 +786,10 @@ public interface DatasetTemplateOrBuilder
        * 
* * string kms_key_name = 3; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -854,31 +801,27 @@ public interface DatasetTemplateOrBuilder
        * 
* * string kms_key_name = 3; - * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString getKmsKeyNameBytes(); + com.google.protobuf.ByteString + getKmsKeyNameBytes(); } /** - * - * *
      * Dataset template used for dynamic dataset creation.
      * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} */ - public static final class DatasetTemplate extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DatasetTemplate extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) DatasetTemplateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DatasetTemplate.newBuilder() to construct. private DatasetTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DatasetTemplate() { location_ = ""; datasetIdPrefix_ = ""; @@ -887,39 +830,33 @@ private DatasetTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DatasetTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** - * - * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -927,7 +864,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The location. */ @java.lang.Override @@ -936,15 +872,14 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** - * - * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -952,15 +887,16 @@ public java.lang.String getLocation() {
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -969,12 +905,9 @@ public com.google.protobuf.ByteString getLocationBytes() { } public static final int DATASET_ID_PREFIX_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object datasetIdPrefix_ = ""; /** - * - * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -982,7 +915,6 @@ public com.google.protobuf.ByteString getLocationBytes() {
        * 
* * string dataset_id_prefix = 2; - * * @return The datasetIdPrefix. */ @java.lang.Override @@ -991,15 +923,14 @@ public java.lang.String getDatasetIdPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetIdPrefix_ = s; return s; } } /** - * - * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -1007,15 +938,16 @@ public java.lang.String getDatasetIdPrefix() {
        * 
* * string dataset_id_prefix = 2; - * * @return The bytes for datasetIdPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + public com.google.protobuf.ByteString + getDatasetIdPrefixBytes() { java.lang.Object ref = datasetIdPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetIdPrefix_ = b; return b; } else { @@ -1024,12 +956,9 @@ public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** - * - * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -1041,7 +970,6 @@ public com.google.protobuf.ByteString getDatasetIdPrefixBytes() {
        * 
* * string kms_key_name = 3; - * * @return The kmsKeyName. */ @java.lang.Override @@ -1050,15 +978,14 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** - * - * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -1070,15 +997,16 @@ public java.lang.String getKmsKeyName() {
        * 
* * string kms_key_name = 3; - * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1087,7 +1015,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1099,7 +1026,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1135,24 +1063,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate)) { + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - other = - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate) - obj; - - if (!getLocation().equals(other.getLocation())) return false; - if (!getDatasetIdPrefix().equals(other.getDatasetIdPrefix())) return false; - if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) obj; + + if (!getLocation() + .equals(other.getLocation())) return false; + if (!getDatasetIdPrefix() + .equals(other.getDatasetIdPrefix())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1175,117 +1098,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1295,46 +1189,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
        * Dataset template used for dynamic dataset creation.
        * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1346,26 +1233,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - result = buildPartial(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1373,25 +1253,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - result = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasets.DatasetTemplate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - result) { + private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = location_; @@ -1408,60 +1277,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate) { - return mergeFrom( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate) - other); + if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - other) { - if (other - == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other) { + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000001; @@ -1503,31 +1358,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - datasetIdPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + datasetIdPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1537,13 +1388,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object location_ = ""; /** - * - * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1551,13 +1399,13 @@ public Builder mergeFrom(
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1566,8 +1414,6 @@ public java.lang.String getLocation() { } } /** - * - * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1575,14 +1421,15 @@ public java.lang.String getLocation() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for location. */ - public com.google.protobuf.ByteString getLocationBytes() { + public com.google.protobuf.ByteString + getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); location_ = b; return b; } else { @@ -1590,8 +1437,6 @@ public com.google.protobuf.ByteString getLocationBytes() { } } /** - * - * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1599,22 +1444,18 @@ public com.google.protobuf.ByteString getLocationBytes() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1622,7 +1463,6 @@ public Builder setLocation(java.lang.String value) {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLocation() { @@ -1632,8 +1472,6 @@ public Builder clearLocation() { return this; } /** - * - * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1641,14 +1479,12 @@ public Builder clearLocation() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; @@ -1658,8 +1494,6 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { private java.lang.Object datasetIdPrefix_ = ""; /** - * - * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1667,13 +1501,13 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) {
          * 
* * string dataset_id_prefix = 2; - * * @return The datasetIdPrefix. */ public java.lang.String getDatasetIdPrefix() { java.lang.Object ref = datasetIdPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetIdPrefix_ = s; return s; @@ -1682,8 +1516,6 @@ public java.lang.String getDatasetIdPrefix() { } } /** - * - * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1691,14 +1523,15 @@ public java.lang.String getDatasetIdPrefix() {
          * 
* * string dataset_id_prefix = 2; - * * @return The bytes for datasetIdPrefix. */ - public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { + public com.google.protobuf.ByteString + getDatasetIdPrefixBytes() { java.lang.Object ref = datasetIdPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); datasetIdPrefix_ = b; return b; } else { @@ -1706,8 +1539,6 @@ public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { } } /** - * - * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1715,22 +1546,18 @@ public com.google.protobuf.ByteString getDatasetIdPrefixBytes() {
          * 
* * string dataset_id_prefix = 2; - * * @param value The datasetIdPrefix to set. * @return This builder for chaining. */ - public Builder setDatasetIdPrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdPrefix( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } datasetIdPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1738,7 +1565,6 @@ public Builder setDatasetIdPrefix(java.lang.String value) {
          * 
* * string dataset_id_prefix = 2; - * * @return This builder for chaining. */ public Builder clearDatasetIdPrefix() { @@ -1748,8 +1574,6 @@ public Builder clearDatasetIdPrefix() { return this; } /** - * - * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1757,14 +1581,12 @@ public Builder clearDatasetIdPrefix() {
          * 
* * string dataset_id_prefix = 2; - * * @param value The bytes for datasetIdPrefix to set. * @return This builder for chaining. */ - public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatasetIdPrefixBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); datasetIdPrefix_ = value; bitField0_ |= 0x00000002; @@ -1774,8 +1596,6 @@ public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1787,13 +1607,13 @@ public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) {
          * 
* * string kms_key_name = 3; - * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -1802,8 +1622,6 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1815,14 +1633,15 @@ public java.lang.String getKmsKeyName() {
          * 
* * string kms_key_name = 3; - * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString getKmsKeyNameBytes() { + public com.google.protobuf.ByteString + getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1830,8 +1649,6 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1843,22 +1660,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
          * 
* * string kms_key_name = 3; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } kmsKeyName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1870,7 +1683,6 @@ public Builder setKmsKeyName(java.lang.String value) {
          * 
* * string kms_key_name = 3; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1880,8 +1692,6 @@ public Builder clearKmsKeyName() { return this; } /** - * - * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1893,21 +1703,18 @@ public Builder clearKmsKeyName() {
          * 
* * string kms_key_name = 3; - * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1920,48 +1727,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasets.DatasetTemplate - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1973,22 +1773,20 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int DATASET_TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - datasetTemplate_; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate datasetTemplate_; /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return Whether the datasetTemplate field is set. */ @java.lang.Override @@ -1996,38 +1794,30 @@ public boolean hasDatasetTemplate() { return datasetTemplate_ != null; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return The datasetTemplate. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - getDatasetTemplate() { - return datasetTemplate_ == null - ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance() - : datasetTemplate_; + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate() { + return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+     * The dataset template to use for dynamic dataset creation.
+     * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder - getDatasetTemplateOrBuilder() { - return datasetTemplate_ == null - ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance() - : datasetTemplate_; + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder() { + return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2039,7 +1829,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (datasetTemplate_ != null) { output.writeMessage(2, getDatasetTemplate()); } @@ -2053,7 +1844,8 @@ public int getSerializedSize() { size = 0; if (datasetTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetTemplate()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDatasetTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2063,19 +1855,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { + if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; if (hasDatasetTemplate() != other.hasDatasetTemplate()) return false; if (hasDatasetTemplate()) { - if (!getDatasetTemplate().equals(other.getDatasetTemplate())) return false; + if (!getDatasetTemplate() + .equals(other.getDatasetTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2097,102 +1887,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2202,46 +1978,40 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Destination datasets are created so that hierarchy of the destination data
      * objects matches the source hierarchy.
      * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2255,23 +2025,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = - buildPartial(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2279,24 +2045,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result) { + private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.datasetTemplate_ = - datasetTemplateBuilder_ == null ? datasetTemplate_ : datasetTemplateBuilder_.build(); + result.datasetTemplate_ = datasetTemplateBuilder_ == null + ? datasetTemplate_ + : datasetTemplateBuilder_.build(); } } @@ -2304,56 +2065,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { - return mergeFrom( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - other); + if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { - if (other - == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance()) return this; if (other.hasDatasetTemplate()) { mergeDatasetTemplate(other.getDatasetTemplate()); } @@ -2383,20 +2134,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: - { - input.readMessage( - getDatasetTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: { + input.readMessage( + getDatasetTemplateFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2406,58 +2156,45 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - datasetTemplate_; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate datasetTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder> - datasetTemplateBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder> datasetTemplateBuilder_; /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return Whether the datasetTemplate field is set. */ public boolean hasDatasetTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
* + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; * @return The datasetTemplate. */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - getDatasetTemplate() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate() { if (datasetTemplateBuilder_ == null) { - return datasetTemplate_ == null - ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance() - : datasetTemplate_; + return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; } else { return datasetTemplateBuilder_.getMessage(); } } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ - public Builder setDatasetTemplate( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - value) { + public Builder setDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate value) { if (datasetTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2471,14 +2208,14 @@ public Builder setDatasetTemplate( return this; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ public Builder setDatasetTemplate( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder - builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder builderForValue) { if (datasetTemplateBuilder_ == null) { datasetTemplate_ = builderForValue.build(); } else { @@ -2489,20 +2226,17 @@ public Builder setDatasetTemplate( return this; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ - public Builder mergeDatasetTemplate( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate - value) { + public Builder mergeDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate value) { if (datasetTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && datasetTemplate_ != null - && datasetTemplate_ - != com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + datasetTemplate_ != null && + datasetTemplate_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) { getDatasetTemplateBuilder().mergeFrom(value); } else { datasetTemplate_ = value; @@ -2515,9 +2249,11 @@ public Builder mergeDatasetTemplate( return this; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ public Builder clearDatasetTemplate() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2530,62 +2266,52 @@ public Builder clearDatasetTemplate() { return this; } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder - getDatasetTemplateBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder getDatasetTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDatasetTemplateFieldBuilder().getBuilder(); } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder - getDatasetTemplateOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder() { if (datasetTemplateBuilder_ != null) { return datasetTemplateBuilder_.getMessageOrBuilder(); } else { - return datasetTemplate_ == null - ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.getDefaultInstance() - : datasetTemplate_; + return datasetTemplate_ == null ? + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; } } /** - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; - * + *
+       * The dataset template to use for dynamic dataset creation.
+       * 
+ * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder> getDatasetTemplateFieldBuilder() { if (datasetTemplateBuilder_ == null) { - datasetTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplate.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .DatasetTemplateOrBuilder>( - getDatasetTemplate(), getParentForChildren(), isClean()); + datasetTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder>( + getDatasetTemplate(), + getParentForChildren(), + isClean()); datasetTemplate_ = null; } return datasetTemplateBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2598,46 +2324,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasets - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceHierarchyDatasets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceHierarchyDatasets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2649,24 +2370,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int datasetConfigCase_ = 0; private java.lang.Object datasetConfig_; - public enum DatasetConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SINGLE_TARGET_DATASET(201), SOURCE_HIERARCHY_DATASETS(202), DATASETCONFIG_NOT_SET(0); private final int value; - private DatasetConfigCase(int value) { this.value = value; } @@ -2682,38 +2400,30 @@ public static DatasetConfigCase valueOf(int value) { public static DatasetConfigCase forNumber(int value) { switch (value) { - case 201: - return SINGLE_TARGET_DATASET; - case 202: - return SOURCE_HIERARCHY_DATASETS; - case 0: - return DATASETCONFIG_NOT_SET; - default: - return null; + case 201: return SINGLE_TARGET_DATASET; + case 202: return SOURCE_HIERARCHY_DATASETS; + case 0: return DATASETCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DatasetConfigCase getDatasetConfigCase() { - return DatasetConfigCase.forNumber(datasetConfigCase_); + public DatasetConfigCase + getDatasetConfigCase() { + return DatasetConfigCase.forNumber( + datasetConfigCase_); } public static final int SINGLE_TARGET_DATASET_FIELD_NUMBER = 201; /** - * - * *
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return Whether the singleTargetDataset field is set. */ @java.lang.Override @@ -2721,62 +2431,42 @@ public boolean hasSingleTargetDataset() { return datasetConfigCase_ == 201; } /** - * - * *
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return The singleTargetDataset. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getSingleTargetDataset() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset() { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } /** - * - * *
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder - getSingleTargetDatasetOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder() { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } public static final int SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER = 202; /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return Whether the sourceHierarchyDatasets field is set. */ @java.lang.Override @@ -2784,55 +2474,38 @@ public boolean hasSourceHierarchyDatasets() { return datasetConfigCase_ == 202; } /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return The sourceHierarchyDatasets. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getSourceHierarchyDatasets() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets() { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder - getSourceHierarchyDatasetsOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder() { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } public static final int DATA_FRESHNESS_FIELD_NUMBER = 300; private com.google.protobuf.Duration dataFreshness_; /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2841,7 +2514,6 @@ public boolean hasSourceHierarchyDatasets() {
    * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return Whether the dataFreshness field is set. */ @java.lang.Override @@ -2849,8 +2521,6 @@ public boolean hasDataFreshness() { return dataFreshness_ != null; } /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2859,18 +2529,13 @@ public boolean hasDataFreshness() {
    * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return The dataFreshness. */ @java.lang.Override public com.google.protobuf.Duration getDataFreshness() { - return dataFreshness_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dataFreshness_; + return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_; } /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2882,13 +2547,10 @@ public com.google.protobuf.Duration getDataFreshness() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
-    return dataFreshness_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : dataFreshness_;
+    return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_;
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2900,18 +2562,13 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (datasetConfigCase_ == 201) {
-      output.writeMessage(
-          201,
-          (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
-              datasetConfig_);
+      output.writeMessage(201, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_);
     }
     if (datasetConfigCase_ == 202) {
-      output.writeMessage(
-          202,
-          (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)
-              datasetConfig_);
+      output.writeMessage(202, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_);
     }
     if (dataFreshness_ != null) {
       output.writeMessage(300, getDataFreshness());
@@ -2926,21 +2583,16 @@ public int getSerializedSize() {
 
     size = 0;
     if (datasetConfigCase_ == 201) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              201,
-              (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
-                  datasetConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(201, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_);
     }
     if (datasetConfigCase_ == 202) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              202,
-              (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)
-                  datasetConfig_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(202, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_);
     }
     if (dataFreshness_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(300, getDataFreshness());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(300, getDataFreshness());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2950,25 +2602,27 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.BigQueryDestinationConfig other =
-        (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj;
+    com.google.cloud.datastream.v1.BigQueryDestinationConfig other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj;
 
     if (hasDataFreshness() != other.hasDataFreshness()) return false;
     if (hasDataFreshness()) {
-      if (!getDataFreshness().equals(other.getDataFreshness())) return false;
+      if (!getDataFreshness()
+          .equals(other.getDataFreshness())) return false;
     }
     if (!getDatasetConfigCase().equals(other.getDatasetConfigCase())) return false;
     switch (datasetConfigCase_) {
       case 201:
-        if (!getSingleTargetDataset().equals(other.getSingleTargetDataset())) return false;
+        if (!getSingleTargetDataset()
+            .equals(other.getSingleTargetDataset())) return false;
         break;
       case 202:
-        if (!getSourceHierarchyDatasets().equals(other.getSourceHierarchyDatasets())) return false;
+        if (!getSourceHierarchyDatasets()
+            .equals(other.getSourceHierarchyDatasets())) return false;
         break;
       case 0:
       default:
@@ -3006,128 +2660,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.datastream.v1.BigQueryDestinationConfig prototype) {
+  public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
-  /** Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  /**
+   * 
+   * BigQuery destination configuration
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3149,9 +2804,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override @@ -3170,11 +2825,8 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig result = - new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -3183,19 +2835,21 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.dataFreshness_ = - dataFreshnessBuilder_ == null ? dataFreshness_ : dataFreshnessBuilder_.build(); + result.dataFreshness_ = dataFreshnessBuilder_ == null + ? dataFreshness_ + : dataFreshnessBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { result.datasetConfigCase_ = datasetConfigCase_; result.datasetConfig_ = this.datasetConfig_; - if (datasetConfigCase_ == 201 && singleTargetDatasetBuilder_ != null) { + if (datasetConfigCase_ == 201 && + singleTargetDatasetBuilder_ != null) { result.datasetConfig_ = singleTargetDatasetBuilder_.build(); } - if (datasetConfigCase_ == 202 && sourceHierarchyDatasetsBuilder_ != null) { + if (datasetConfigCase_ == 202 && + sourceHierarchyDatasetsBuilder_ != null) { result.datasetConfig_ = sourceHierarchyDatasetsBuilder_.build(); } } @@ -3204,39 +2858,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig)other); } else { super.mergeFrom(other); return this; @@ -3244,26 +2897,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig other) { - if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) return this; if (other.hasDataFreshness()) { mergeDataFreshness(other.getDataFreshness()); } switch (other.getDatasetConfigCase()) { - case SINGLE_TARGET_DATASET: - { - mergeSingleTargetDataset(other.getSingleTargetDataset()); - break; - } - case SOURCE_HIERARCHY_DATASETS: - { - mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); - break; - } - case DATASETCONFIG_NOT_SET: - { - break; - } + case SINGLE_TARGET_DATASET: { + mergeSingleTargetDataset(other.getSingleTargetDataset()); + break; + } + case SOURCE_HIERARCHY_DATASETS: { + mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); + break; + } + case DATASETCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3291,33 +2940,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 1610: - { - input.readMessage( - getSingleTargetDatasetFieldBuilder().getBuilder(), extensionRegistry); - datasetConfigCase_ = 201; - break; - } // case 1610 - case 1618: - { - input.readMessage( - getSourceHierarchyDatasetsFieldBuilder().getBuilder(), extensionRegistry); - datasetConfigCase_ = 202; - break; - } // case 1618 - case 2402: - { - input.readMessage(getDataFreshnessFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 2402 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 1610: { + input.readMessage( + getSingleTargetDatasetFieldBuilder().getBuilder(), + extensionRegistry); + datasetConfigCase_ = 201; + break; + } // case 1610 + case 1618: { + input.readMessage( + getSourceHierarchyDatasetsFieldBuilder().getBuilder(), + extensionRegistry); + datasetConfigCase_ = 202; + break; + } // case 1618 + case 2402: { + input.readMessage( + getDataFreshnessFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 2402 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3327,12 +2976,12 @@ public Builder mergeFrom( } // finally return this; } - private int datasetConfigCase_ = 0; private java.lang.Object datasetConfig_; - - public DatasetConfigCase getDatasetConfigCase() { - return DatasetConfigCase.forNumber(datasetConfigCase_); + public DatasetConfigCase + getDatasetConfigCase() { + return DatasetConfigCase.forNumber( + datasetConfigCase_); } public Builder clearDatasetConfig() { @@ -3345,21 +2994,13 @@ public Builder clearDatasetConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> - singleTargetDatasetBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> singleTargetDatasetBuilder_; /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return Whether the singleTargetDataset field is set. */ @java.lang.Override @@ -3367,49 +3008,35 @@ public boolean hasSingleTargetDataset() { return datasetConfigCase_ == 201; } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return The singleTargetDataset. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getSingleTargetDataset() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset() { if (singleTargetDatasetBuilder_ == null) { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } else { if (datasetConfigCase_ == 201) { return singleTargetDatasetBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ - public Builder setSingleTargetDataset( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + public Builder setSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { if (singleTargetDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3423,19 +3050,14 @@ public Builder setSingleTargetDataset( return this; } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ public Builder setSingleTargetDataset( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder - builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder builderForValue) { if (singleTargetDatasetBuilder_ == null) { datasetConfig_ = builderForValue.build(); onChanged(); @@ -3446,30 +3068,18 @@ public Builder setSingleTargetDataset( return this; } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ - public Builder mergeSingleTargetDataset( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + public Builder mergeSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { if (singleTargetDatasetBuilder_ == null) { - if (datasetConfigCase_ == 201 - && datasetConfig_ - != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance()) { - datasetConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .newBuilder( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_) - .mergeFrom(value) - .buildPartial(); + if (datasetConfigCase_ == 201 && + datasetConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance()) { + datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_) + .mergeFrom(value).buildPartial(); } else { datasetConfig_ = value; } @@ -3485,15 +3095,11 @@ public Builder mergeSingleTargetDataset( return this; } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ public Builder clearSingleTargetDataset() { if (singleTargetDatasetBuilder_ == null) { @@ -3512,76 +3118,50 @@ public Builder clearSingleTargetDataset() { return this; } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder - getSingleTargetDatasetBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder getSingleTargetDatasetBuilder() { return getSingleTargetDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder - getSingleTargetDatasetOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder() { if ((datasetConfigCase_ == 201) && (singleTargetDatasetBuilder_ != null)) { return singleTargetDatasetBuilder_.getMessageOrBuilder(); } else { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } } /** - * - * *
      * Single destination dataset.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> getSingleTargetDatasetFieldBuilder() { if (singleTargetDatasetBuilder_ == null) { if (!(datasetConfigCase_ == 201)) { - datasetConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .getDefaultInstance(); + datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); } - singleTargetDatasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - .Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SingleTargetDatasetOrBuilder>( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - datasetConfig_, + singleTargetDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_, getParentForChildren(), isClean()); datasetConfig_ = null; @@ -3592,23 +3172,13 @@ public Builder clearSingleTargetDataset() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasetsOrBuilder> - sourceHierarchyDatasetsBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder> sourceHierarchyDatasetsBuilder_; /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return Whether the sourceHierarchyDatasets field is set. */ @java.lang.Override @@ -3616,49 +3186,35 @@ public boolean hasSourceHierarchyDatasets() { return datasetConfigCase_ == 202; } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return The sourceHierarchyDatasets. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getSourceHierarchyDatasets() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets() { if (sourceHierarchyDatasetsBuilder_ == null) { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } else { if (datasetConfigCase_ == 202) { return sourceHierarchyDatasetsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ - public Builder setSourceHierarchyDatasets( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + public Builder setSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { if (sourceHierarchyDatasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3672,19 +3228,14 @@ public Builder setSourceHierarchyDatasets( return this; } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ public Builder setSourceHierarchyDatasets( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder - builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder builderForValue) { if (sourceHierarchyDatasetsBuilder_ == null) { datasetConfig_ = builderForValue.build(); onChanged(); @@ -3695,31 +3246,18 @@ public Builder setSourceHierarchyDatasets( return this; } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ - public Builder mergeSourceHierarchyDatasets( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + public Builder mergeSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { if (sourceHierarchyDatasetsBuilder_ == null) { - if (datasetConfigCase_ == 202 - && datasetConfig_ - != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance()) { - datasetConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .newBuilder( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasets) - datasetConfig_) - .mergeFrom(value) - .buildPartial(); + if (datasetConfigCase_ == 202 && + datasetConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance()) { + datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_) + .mergeFrom(value).buildPartial(); } else { datasetConfig_ = value; } @@ -3735,15 +3273,11 @@ public Builder mergeSourceHierarchyDatasets( return this; } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ public Builder clearSourceHierarchyDatasets() { if (sourceHierarchyDatasetsBuilder_ == null) { @@ -3762,78 +3296,50 @@ public Builder clearSourceHierarchyDatasets() { return this; } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder - getSourceHierarchyDatasetsBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder getSourceHierarchyDatasetsBuilder() { return getSourceHierarchyDatasetsFieldBuilder().getBuilder(); } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder - getSourceHierarchyDatasetsOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder() { if ((datasetConfigCase_ == 202) && (sourceHierarchyDatasetsBuilder_ != null)) { return sourceHierarchyDatasetsBuilder_.getMessageOrBuilder(); } else { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } } /** - * - * *
      * Source hierarchy datasets.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasetsOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder> getSourceHierarchyDatasetsFieldBuilder() { if (sourceHierarchyDatasetsBuilder_ == null) { if (!(datasetConfigCase_ == 202)) { - datasetConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .getDefaultInstance(); + datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); } - sourceHierarchyDatasetsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - .Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfig - .SourceHierarchyDatasetsOrBuilder>( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - datasetConfig_, + sourceHierarchyDatasetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_, getParentForChildren(), isClean()); datasetConfig_ = null; @@ -3845,13 +3351,8 @@ public Builder clearSourceHierarchyDatasets() { private com.google.protobuf.Duration dataFreshness_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dataFreshnessBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dataFreshnessBuilder_; /** - * - * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3860,15 +3361,12 @@ public Builder clearSourceHierarchyDatasets() {
      * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return Whether the dataFreshness field is set. */ public boolean hasDataFreshness() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3877,21 +3375,16 @@ public boolean hasDataFreshness() {
      * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return The dataFreshness. */ public com.google.protobuf.Duration getDataFreshness() { if (dataFreshnessBuilder_ == null) { - return dataFreshness_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dataFreshness_; + return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_; } else { return dataFreshnessBuilder_.getMessage(); } } /** - * - * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3915,8 +3408,6 @@ public Builder setDataFreshness(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3926,7 +3417,8 @@ public Builder setDataFreshness(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration data_freshness = 300;
      */
-    public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDataFreshness(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (dataFreshnessBuilder_ == null) {
         dataFreshness_ = builderForValue.build();
       } else {
@@ -3937,8 +3429,6 @@ public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3950,9 +3440,9 @@ public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForV
      */
     public Builder mergeDataFreshness(com.google.protobuf.Duration value) {
       if (dataFreshnessBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0)
-            && dataFreshness_ != null
-            && dataFreshness_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0) &&
+          dataFreshness_ != null &&
+          dataFreshness_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDataFreshnessBuilder().mergeFrom(value);
         } else {
           dataFreshness_ = value;
@@ -3965,8 +3455,6 @@ public Builder mergeDataFreshness(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3987,8 +3475,6 @@ public Builder clearDataFreshness() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -4004,8 +3490,6 @@ public com.google.protobuf.Duration.Builder getDataFreshnessBuilder() {
       return getDataFreshnessFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -4019,14 +3503,11 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
       if (dataFreshnessBuilder_ != null) {
         return dataFreshnessBuilder_.getMessageOrBuilder();
       } else {
-        return dataFreshness_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : dataFreshness_;
+        return dataFreshness_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_;
       }
     }
     /**
-     *
-     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -4037,24 +3518,21 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
      * .google.protobuf.Duration data_freshness = 300;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getDataFreshnessFieldBuilder() {
       if (dataFreshnessBuilder_ == null) {
-        dataFreshnessBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getDataFreshness(), getParentForChildren(), isClean());
+        dataFreshnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getDataFreshness(),
+                getParentForChildren(),
+                isClean());
         dataFreshness_ = null;
       }
       return dataFreshnessBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -4064,12 +3542,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig)
   private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig();
   }
@@ -4078,27 +3556,27 @@ public static com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public BigQueryDestinationConfig parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public BigQueryDestinationConfig parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -4113,4 +3591,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
similarity index 59%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
index a9045b1c764d..946511513752 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
@@ -1,117 +1,67 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface BigQueryDestinationConfigOrBuilder
-    extends
+public interface BigQueryDestinationConfigOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return Whether the singleTargetDataset field is set. */ boolean hasSingleTargetDataset(); /** - * - * *
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; * @return The singleTargetDataset. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset - getSingleTargetDataset(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset(); /** - * - * *
    * Single destination dataset.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder - getSingleTargetDatasetOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder(); /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return Whether the sourceHierarchyDatasets field is set. */ boolean hasSourceHierarchyDatasets(); /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; * @return The sourceHierarchyDatasets. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets - getSourceHierarchyDatasets(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets(); /** - * - * *
    * Source hierarchy datasets.
    * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder - getSourceHierarchyDatasetsOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder(); /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -120,13 +70,10 @@ public interface BigQueryDestinationConfigOrBuilder
    * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return Whether the dataFreshness field is set. */ boolean hasDataFreshness(); /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -135,13 +82,10 @@ public interface BigQueryDestinationConfigOrBuilder
    * 
* * .google.protobuf.Duration data_freshness = 300; - * * @return The dataFreshness. */ com.google.protobuf.Duration getDataFreshness(); /** - * - * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -153,6 +97,5 @@ public interface BigQueryDestinationConfigOrBuilder
    */
   com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder();
 
-  public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase
-      getDatasetConfigCase();
+  public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase getDatasetConfigCase();
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
similarity index 64%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
index aa69e86ae576..eb9f050486c2 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
@@ -1,72 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
- *
- *
  * 
  * BigQuery warehouse profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} */ -public final class BigQueryProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BigQueryProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryProfile) BigQueryProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BigQueryProfile.newBuilder() to construct. private BigQueryProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BigQueryProfile() {} + private BigQueryProfile() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BigQueryProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryProfile.class, - com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + com.google.cloud.datastream.v1.BigQueryProfile.class, com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +78,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryProfile other = - (com.google.cloud.datastream.v1.BigQueryProfile) obj; + com.google.cloud.datastream.v1.BigQueryProfile other = (com.google.cloud.datastream.v1.BigQueryProfile) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -120,136 +101,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * BigQuery warehouse profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryProfile) com.google.cloud.datastream.v1.BigQueryProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryProfile.class, - com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + com.google.cloud.datastream.v1.BigQueryProfile.class, com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.BigQueryProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -257,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override @@ -278,8 +253,7 @@ public com.google.cloud.datastream.v1.BigQueryProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { - com.google.cloud.datastream.v1.BigQueryProfile result = - new com.google.cloud.datastream.v1.BigQueryProfile(this); + com.google.cloud.datastream.v1.BigQueryProfile result = new com.google.cloud.datastream.v1.BigQueryProfile(this); onBuilt(); return result; } @@ -288,39 +262,38 @@ public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BigQueryProfile) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) other); + return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile)other); } else { super.mergeFrom(other); return this; @@ -355,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -371,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -383,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryProfile) private static final com.google.cloud.datastream.v1.BigQueryProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryProfile(); } @@ -397,27 +369,27 @@ public static com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -432,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java new file mode 100644 index 000000000000..011e5d1f3581 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface BigQueryProfileOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index d4fe64365553..08befbc21442 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * A set of reusable connection configurations to be used as a source or
  * destination for a stream.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile}
  */
-public final class ConnectionProfile extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConnectionProfile extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ConnectionProfile)
     ConnectionProfileOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ConnectionProfile.newBuilder() to construct.
   private ConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ConnectionProfile() {
     name_ = "";
     displayName_ = "";
@@ -45,47 +27,45 @@ private ConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.ConnectionProfile.class,
-            com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
+            com.google.cloud.datastream.v1.ConnectionProfile.class, com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
   }
 
   private int profileCase_ = 0;
   private java.lang.Object profile_;
-
   public enum ProfileCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ORACLE_PROFILE(100),
     GCS_PROFILE(101),
@@ -94,7 +74,6 @@ public enum ProfileCase
     POSTGRESQL_PROFILE(104),
     PROFILE_NOT_SET(0);
     private final int value;
-
     private ProfileCase(int value) {
       this.value = value;
     }
@@ -110,45 +89,36 @@ public static ProfileCase valueOf(int value) {
 
     public static ProfileCase forNumber(int value) {
       switch (value) {
-        case 100:
-          return ORACLE_PROFILE;
-        case 101:
-          return GCS_PROFILE;
-        case 102:
-          return MYSQL_PROFILE;
-        case 103:
-          return BIGQUERY_PROFILE;
-        case 104:
-          return POSTGRESQL_PROFILE;
-        case 0:
-          return PROFILE_NOT_SET;
-        default:
-          return null;
+        case 100: return ORACLE_PROFILE;
+        case 101: return GCS_PROFILE;
+        case 102: return MYSQL_PROFILE;
+        case 103: return BIGQUERY_PROFILE;
+        case 104: return POSTGRESQL_PROFILE;
+        case 0: return PROFILE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ProfileCase getProfileCase() {
-    return ProfileCase.forNumber(profileCase_);
+  public ProfileCase
+  getProfileCase() {
+    return ProfileCase.forNumber(
+        profileCase_);
   }
 
   private int connectivityCase_ = 0;
   private java.lang.Object connectivity_;
-
   public enum ConnectivityCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STATIC_SERVICE_IP_CONNECTIVITY(200),
     FORWARD_SSH_CONNECTIVITY(201),
     PRIVATE_CONNECTIVITY(202),
     CONNECTIVITY_NOT_SET(0);
     private final int value;
-
     private ConnectivityCase(int value) {
       this.value = value;
     }
@@ -164,41 +134,33 @@ public static ConnectivityCase valueOf(int value) {
 
     public static ConnectivityCase forNumber(int value) {
       switch (value) {
-        case 200:
-          return STATIC_SERVICE_IP_CONNECTIVITY;
-        case 201:
-          return FORWARD_SSH_CONNECTIVITY;
-        case 202:
-          return PRIVATE_CONNECTIVITY;
-        case 0:
-          return CONNECTIVITY_NOT_SET;
-        default:
-          return null;
+        case 200: return STATIC_SERVICE_IP_CONNECTIVITY;
+        case 201: return FORWARD_SSH_CONNECTIVITY;
+        case 202: return PRIVATE_CONNECTIVITY;
+        case 0: return CONNECTIVITY_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ConnectivityCase getConnectivityCase() {
-    return ConnectivityCase.forNumber(connectivityCase_);
+  public ConnectivityCase
+  getConnectivityCase() {
+    return ConnectivityCase.forNumber(
+        connectivityCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -207,29 +169,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -240,15 +202,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -256,15 +214,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -272,14 +226,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -289,15 +240,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -305,15 +252,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -321,14 +264,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -336,34 +276,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -371,21 +309,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -397,8 +334,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -406,19 +341,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -426,11 +359,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -438,18 +371,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -458,29 +387,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -490,14 +419,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int ORACLE_PROFILE_FIELD_NUMBER = 100; /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -505,26 +431,21 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1.OracleProfile) profile_; } return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -534,21 +455,18 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { @java.lang.Override public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1.OracleProfile) profile_; } return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } public static final int GCS_PROFILE_FIELD_NUMBER = 101; /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -556,26 +474,21 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1.GcsProfile) profile_; } return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -585,21 +498,18 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { @java.lang.Override public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1.GcsProfile) profile_; } return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } public static final int MYSQL_PROFILE_FIELD_NUMBER = 102; /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -607,26 +517,21 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -636,21 +541,18 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } public static final int BIGQUERY_PROFILE_FIELD_NUMBER = 103; /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return Whether the bigqueryProfile field is set. */ @java.lang.Override @@ -658,26 +560,21 @@ public boolean hasBigqueryProfile() { return profileCase_ == 103; } /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return The bigqueryProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { if (profileCase_ == 103) { - return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; } return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
@@ -687,21 +584,18 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { if (profileCase_ == 103) { - return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; } return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } public static final int POSTGRESQL_PROFILE_FIELD_NUMBER = 104; /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return Whether the postgresqlProfile field is set. */ @java.lang.Override @@ -709,26 +603,21 @@ public boolean hasPostgresqlProfile() { return profileCase_ == 104; } /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return The postgresqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { if (profileCase_ == 104) { - return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; } return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
@@ -738,23 +627,18 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { if (profileCase_ == 104) { - return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; } return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -762,57 +646,42 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 200; } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 201; /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -820,53 +689,42 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 201; } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return The forwardSshConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 202; /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -874,26 +732,21 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return The privateConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } /** - * - * *
    * Private connectivity.
    * 
@@ -901,16 +754,14 @@ public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -922,7 +773,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -932,8 +784,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -953,12 +809,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } if (connectivityCase_ == 200) { - output.writeMessage( - 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); + output.writeMessage(200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 201) { - output.writeMessage( - 201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); + output.writeMessage(201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 202) { output.writeMessage(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); @@ -976,63 +830,57 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.OracleProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleProfile) profile_); } if (profileCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.GcsProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.GcsProfile) profile_); } if (profileCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } if (profileCase_ == 103) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); } if (profileCase_ == 104) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } if (connectivityCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 201) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 202) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1042,41 +890,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ConnectionProfile other = - (com.google.cloud.datastream.v1.ConnectionProfile) obj; + com.google.cloud.datastream.v1.ConnectionProfile other = (com.google.cloud.datastream.v1.ConnectionProfile) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getProfileCase().equals(other.getProfileCase())) return false; switch (profileCase_) { case 100: - if (!getOracleProfile().equals(other.getOracleProfile())) return false; + if (!getOracleProfile() + .equals(other.getOracleProfile())) return false; break; case 101: - if (!getGcsProfile().equals(other.getGcsProfile())) return false; + if (!getGcsProfile() + .equals(other.getGcsProfile())) return false; break; case 102: - if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; + if (!getMysqlProfile() + .equals(other.getMysqlProfile())) return false; break; case 103: - if (!getBigqueryProfile().equals(other.getBigqueryProfile())) return false; + if (!getBigqueryProfile() + .equals(other.getBigqueryProfile())) return false; break; case 104: - if (!getPostgresqlProfile().equals(other.getPostgresqlProfile())) return false; + if (!getPostgresqlProfile() + .equals(other.getPostgresqlProfile())) return false; break; case 0: default: @@ -1084,14 +941,16 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 200: - if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) - return false; + if (!getStaticServiceIpConnectivity() + .equals(other.getStaticServiceIpConnectivity())) return false; break; case 201: - if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; + if (!getForwardSshConnectivity() + .equals(other.getForwardSshConnectivity())) return false; break; case 202: - if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; + if (!getPrivateConnectivity() + .equals(other.getPrivateConnectivity())) return false; break; case 0: default: @@ -1168,104 +1027,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ConnectionProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A set of reusable connection configurations to be used as a source or
    * destination for a stream.
@@ -1273,52 +1125,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ConnectionProfile)
       com.google.cloud.datastream.v1.ConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.ConnectionProfile.class,
-              com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
+              com.google.cloud.datastream.v1.ConnectionProfile.class, com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.ConnectionProfile.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1368,9 +1223,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -1389,11 +1244,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.ConnectionProfile buildPartial() {
-      com.google.cloud.datastream.v1.ConnectionProfile result =
-          new com.google.cloud.datastream.v1.ConnectionProfile(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1.ConnectionProfile result = new com.google.cloud.datastream.v1.ConnectionProfile(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1405,10 +1257,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.ConnectionProfile resu
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1422,30 +1278,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ConnectionProfile resu
     private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile result) {
       result.profileCase_ = profileCase_;
       result.profile_ = this.profile_;
-      if (profileCase_ == 100 && oracleProfileBuilder_ != null) {
+      if (profileCase_ == 100 &&
+          oracleProfileBuilder_ != null) {
         result.profile_ = oracleProfileBuilder_.build();
       }
-      if (profileCase_ == 101 && gcsProfileBuilder_ != null) {
+      if (profileCase_ == 101 &&
+          gcsProfileBuilder_ != null) {
         result.profile_ = gcsProfileBuilder_.build();
       }
-      if (profileCase_ == 102 && mysqlProfileBuilder_ != null) {
+      if (profileCase_ == 102 &&
+          mysqlProfileBuilder_ != null) {
         result.profile_ = mysqlProfileBuilder_.build();
       }
-      if (profileCase_ == 103 && bigqueryProfileBuilder_ != null) {
+      if (profileCase_ == 103 &&
+          bigqueryProfileBuilder_ != null) {
         result.profile_ = bigqueryProfileBuilder_.build();
       }
-      if (profileCase_ == 104 && postgresqlProfileBuilder_ != null) {
+      if (profileCase_ == 104 &&
+          postgresqlProfileBuilder_ != null) {
         result.profile_ = postgresqlProfileBuilder_.build();
       }
       result.connectivityCase_ = connectivityCase_;
       result.connectivity_ = this.connectivity_;
-      if (connectivityCase_ == 200 && staticServiceIpConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 200 &&
+          staticServiceIpConnectivityBuilder_ != null) {
         result.connectivity_ = staticServiceIpConnectivityBuilder_.build();
       }
-      if (connectivityCase_ == 201 && forwardSshConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 201 &&
+          forwardSshConnectivityBuilder_ != null) {
         result.connectivity_ = forwardSshConnectivityBuilder_.build();
       }
-      if (connectivityCase_ == 202 && privateConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 202 &&
+          privateConnectivityBuilder_ != null) {
         result.connectivity_ = privateConnectivityBuilder_.build();
       }
     }
@@ -1454,39 +1318,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.ConnectionProfile) {
-        return mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile) other);
+        return mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1494,8 +1357,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) {
-      if (other == com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1507,7 +1369,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other)
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1515,56 +1378,46 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other)
         onChanged();
       }
       switch (other.getProfileCase()) {
-        case ORACLE_PROFILE:
-          {
-            mergeOracleProfile(other.getOracleProfile());
-            break;
-          }
-        case GCS_PROFILE:
-          {
-            mergeGcsProfile(other.getGcsProfile());
-            break;
-          }
-        case MYSQL_PROFILE:
-          {
-            mergeMysqlProfile(other.getMysqlProfile());
-            break;
-          }
-        case BIGQUERY_PROFILE:
-          {
-            mergeBigqueryProfile(other.getBigqueryProfile());
-            break;
-          }
-        case POSTGRESQL_PROFILE:
-          {
-            mergePostgresqlProfile(other.getPostgresqlProfile());
-            break;
-          }
-        case PROFILE_NOT_SET:
-          {
-            break;
-          }
+        case ORACLE_PROFILE: {
+          mergeOracleProfile(other.getOracleProfile());
+          break;
+        }
+        case GCS_PROFILE: {
+          mergeGcsProfile(other.getGcsProfile());
+          break;
+        }
+        case MYSQL_PROFILE: {
+          mergeMysqlProfile(other.getMysqlProfile());
+          break;
+        }
+        case BIGQUERY_PROFILE: {
+          mergeBigqueryProfile(other.getBigqueryProfile());
+          break;
+        }
+        case POSTGRESQL_PROFILE: {
+          mergePostgresqlProfile(other.getPostgresqlProfile());
+          break;
+        }
+        case PROFILE_NOT_SET: {
+          break;
+        }
       }
       switch (other.getConnectivityCase()) {
-        case STATIC_SERVICE_IP_CONNECTIVITY:
-          {
-            mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity());
-            break;
-          }
-        case FORWARD_SSH_CONNECTIVITY:
-          {
-            mergeForwardSshConnectivity(other.getForwardSshConnectivity());
-            break;
-          }
-        case PRIVATE_CONNECTIVITY:
-          {
-            mergePrivateConnectivity(other.getPrivateConnectivity());
-            break;
-          }
-        case CONNECTIVITY_NOT_SET:
-          {
-            break;
-          }
+        case STATIC_SERVICE_IP_CONNECTIVITY: {
+          mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity());
+          break;
+        }
+        case FORWARD_SSH_CONNECTIVITY: {
+          mergeForwardSshConnectivity(other.getForwardSshConnectivity());
+          break;
+        }
+        case PRIVATE_CONNECTIVITY: {
+          mergePrivateConnectivity(other.getPrivateConnectivity());
+          break;
+        }
+        case CONNECTIVITY_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1592,101 +1445,101 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 802:
-              {
-                input.readMessage(getOracleProfileFieldBuilder().getBuilder(), extensionRegistry);
-                profileCase_ = 100;
-                break;
-              } // case 802
-            case 810:
-              {
-                input.readMessage(getGcsProfileFieldBuilder().getBuilder(), extensionRegistry);
-                profileCase_ = 101;
-                break;
-              } // case 810
-            case 818:
-              {
-                input.readMessage(getMysqlProfileFieldBuilder().getBuilder(), extensionRegistry);
-                profileCase_ = 102;
-                break;
-              } // case 818
-            case 826:
-              {
-                input.readMessage(getBigqueryProfileFieldBuilder().getBuilder(), extensionRegistry);
-                profileCase_ = 103;
-                break;
-              } // case 826
-            case 834:
-              {
-                input.readMessage(
-                    getPostgresqlProfileFieldBuilder().getBuilder(), extensionRegistry);
-                profileCase_ = 104;
-                break;
-              } // case 834
-            case 1602:
-              {
-                input.readMessage(
-                    getStaticServiceIpConnectivityFieldBuilder().getBuilder(), extensionRegistry);
-                connectivityCase_ = 200;
-                break;
-              } // case 1602
-            case 1610:
-              {
-                input.readMessage(
-                    getForwardSshConnectivityFieldBuilder().getBuilder(), extensionRegistry);
-                connectivityCase_ = 201;
-                break;
-              } // case 1610
-            case 1618:
-              {
-                input.readMessage(
-                    getPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry);
-                connectivityCase_ = 202;
-                break;
-              } // case 1618
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 802: {
+              input.readMessage(
+                  getOracleProfileFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              profileCase_ = 100;
+              break;
+            } // case 802
+            case 810: {
+              input.readMessage(
+                  getGcsProfileFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              profileCase_ = 101;
+              break;
+            } // case 810
+            case 818: {
+              input.readMessage(
+                  getMysqlProfileFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              profileCase_ = 102;
+              break;
+            } // case 818
+            case 826: {
+              input.readMessage(
+                  getBigqueryProfileFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              profileCase_ = 103;
+              break;
+            } // case 826
+            case 834: {
+              input.readMessage(
+                  getPostgresqlProfileFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              profileCase_ = 104;
+              break;
+            } // case 834
+            case 1602: {
+              input.readMessage(
+                  getStaticServiceIpConnectivityFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              connectivityCase_ = 200;
+              break;
+            } // case 1602
+            case 1610: {
+              input.readMessage(
+                  getForwardSshConnectivityFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              connectivityCase_ = 201;
+              break;
+            } // case 1610
+            case 1618: {
+              input.readMessage(
+                  getPrivateConnectivityFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              connectivityCase_ = 202;
+              break;
+            } // case 1618
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1696,12 +1549,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int profileCase_ = 0;
     private java.lang.Object profile_;
-
-    public ProfileCase getProfileCase() {
-      return ProfileCase.forNumber(profileCase_);
+    public ProfileCase
+        getProfileCase() {
+      return ProfileCase.forNumber(
+          profileCase_);
     }
 
     public Builder clearProfile() {
@@ -1713,9 +1566,10 @@ public Builder clearProfile() {
 
     private int connectivityCase_ = 0;
     private java.lang.Object connectivity_;
-
-    public ConnectivityCase getConnectivityCase() {
-      return ConnectivityCase.forNumber(connectivityCase_);
+    public ConnectivityCase
+        getConnectivityCase() {
+      return ConnectivityCase.forNumber(
+          connectivityCase_);
     }
 
     public Builder clearConnectivity() {
@@ -1729,20 +1583,18 @@ public Builder clearConnectivity() {
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1751,21 +1603,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1773,35 +1624,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1811,21 +1655,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1835,58 +1675,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1902,17 +1723,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1923,21 +1741,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1950,15 +1764,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1971,15 +1781,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1987,48 +1793,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2036,58 +1830,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2103,17 +1878,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2124,21 +1896,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2151,15 +1919,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2172,15 +1936,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -2188,66 +1948,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2256,13 +2006,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -2270,21 +2017,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -2296,8 +2042,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -2305,19 +2049,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -2325,95 +2067,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2422,21 +2160,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2444,35 +2181,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2482,21 +2212,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2505,19 +2231,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, - com.google.cloud.datastream.v1.OracleProfile.Builder, - com.google.cloud.datastream.v1.OracleProfileOrBuilder> - oracleProfileBuilder_; + com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder> oracleProfileBuilder_; /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -2525,14 +2245,11 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override @@ -2550,8 +2267,6 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2572,8 +2287,6 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile val return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2592,8 +2305,6 @@ public Builder setOracleProfile( return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2602,13 +2313,10 @@ public Builder setOracleProfile( */ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile value) { if (oracleProfileBuilder_ == null) { - if (profileCase_ == 100 - && profile_ != com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1.OracleProfile.newBuilder( - (com.google.cloud.datastream.v1.OracleProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 100 && + profile_ != com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1.OracleProfile.newBuilder((com.google.cloud.datastream.v1.OracleProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2624,8 +2332,6 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile v return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2649,8 +2355,6 @@ public Builder clearOracleProfile() { return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2661,8 +2365,6 @@ public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuil return getOracleProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2681,8 +2383,6 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2690,19 +2390,14 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, - com.google.cloud.datastream.v1.OracleProfile.Builder, - com.google.cloud.datastream.v1.OracleProfileOrBuilder> + com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder> getOracleProfileFieldBuilder() { if (oracleProfileBuilder_ == null) { if (!(profileCase_ == 100)) { profile_ = com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } - oracleProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, - com.google.cloud.datastream.v1.OracleProfile.Builder, - com.google.cloud.datastream.v1.OracleProfileOrBuilder>( + oracleProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder>( (com.google.cloud.datastream.v1.OracleProfile) profile_, getParentForChildren(), isClean()); @@ -2714,19 +2409,13 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, - com.google.cloud.datastream.v1.GcsProfile.Builder, - com.google.cloud.datastream.v1.GcsProfileOrBuilder> - gcsProfileBuilder_; + com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder> gcsProfileBuilder_; /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -2734,14 +2423,11 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override @@ -2759,8 +2445,6 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2781,8 +2465,6 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2801,8 +2483,6 @@ public Builder setGcsProfile( return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2811,13 +2491,10 @@ public Builder setGcsProfile( */ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { if (gcsProfileBuilder_ == null) { - if (profileCase_ == 101 - && profile_ != com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1.GcsProfile.newBuilder( - (com.google.cloud.datastream.v1.GcsProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 101 && + profile_ != com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1.GcsProfile.newBuilder((com.google.cloud.datastream.v1.GcsProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2833,8 +2510,6 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2858,8 +2533,6 @@ public Builder clearGcsProfile() { return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2870,8 +2543,6 @@ public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() return getGcsProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2890,8 +2561,6 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2899,19 +2568,14 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, - com.google.cloud.datastream.v1.GcsProfile.Builder, - com.google.cloud.datastream.v1.GcsProfileOrBuilder> + com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder> getGcsProfileFieldBuilder() { if (gcsProfileBuilder_ == null) { if (!(profileCase_ == 101)) { profile_ = com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } - gcsProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, - com.google.cloud.datastream.v1.GcsProfile.Builder, - com.google.cloud.datastream.v1.GcsProfileOrBuilder>( + gcsProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder>( (com.google.cloud.datastream.v1.GcsProfile) profile_, getParentForChildren(), isClean()); @@ -2923,19 +2587,13 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, - com.google.cloud.datastream.v1.MysqlProfile.Builder, - com.google.cloud.datastream.v1.MysqlProfileOrBuilder> - mysqlProfileBuilder_; + com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder> mysqlProfileBuilder_; /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -2943,14 +2601,11 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override @@ -2968,8 +2623,6 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2990,8 +2643,6 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3010,8 +2661,6 @@ public Builder setMysqlProfile( return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3020,13 +2669,10 @@ public Builder setMysqlProfile( */ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value) { if (mysqlProfileBuilder_ == null) { - if (profileCase_ == 102 - && profile_ != com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1.MysqlProfile.newBuilder( - (com.google.cloud.datastream.v1.MysqlProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 102 && + profile_ != com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1.MysqlProfile.newBuilder((com.google.cloud.datastream.v1.MysqlProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -3042,8 +2688,6 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile val return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3067,8 +2711,6 @@ public Builder clearMysqlProfile() { return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3079,8 +2721,6 @@ public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilde return getMysqlProfileFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3099,8 +2739,6 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3108,19 +2746,14 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, - com.google.cloud.datastream.v1.MysqlProfile.Builder, - com.google.cloud.datastream.v1.MysqlProfileOrBuilder> + com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder> getMysqlProfileFieldBuilder() { if (mysqlProfileBuilder_ == null) { if (!(profileCase_ == 102)) { profile_ = com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } - mysqlProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, - com.google.cloud.datastream.v1.MysqlProfile.Builder, - com.google.cloud.datastream.v1.MysqlProfileOrBuilder>( + mysqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder>( (com.google.cloud.datastream.v1.MysqlProfile) profile_, getParentForChildren(), isClean()); @@ -3132,19 +2765,13 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, - com.google.cloud.datastream.v1.BigQueryProfile.Builder, - com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> - bigqueryProfileBuilder_; + com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> bigqueryProfileBuilder_; /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return Whether the bigqueryProfile field is set. */ @java.lang.Override @@ -3152,14 +2779,11 @@ public boolean hasBigqueryProfile() { return profileCase_ == 103; } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return The bigqueryProfile. */ @java.lang.Override @@ -3177,8 +2801,6 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { } } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3199,8 +2821,6 @@ public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile return this; } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3219,8 +2839,6 @@ public Builder setBigqueryProfile( return this; } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3229,13 +2847,10 @@ public Builder setBigqueryProfile( */ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { if (bigqueryProfileBuilder_ == null) { - if (profileCase_ == 103 - && profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1.BigQueryProfile.newBuilder( - (com.google.cloud.datastream.v1.BigQueryProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 103 && + profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1.BigQueryProfile.newBuilder((com.google.cloud.datastream.v1.BigQueryProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -3251,8 +2866,6 @@ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfi return this; } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3276,8 +2889,6 @@ public Builder clearBigqueryProfile() { return this; } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3288,8 +2899,6 @@ public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfile return getBigqueryProfileFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3308,8 +2917,6 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil } } /** - * - * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3317,19 +2924,14 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, - com.google.cloud.datastream.v1.BigQueryProfile.Builder, - com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> getBigqueryProfileFieldBuilder() { if (bigqueryProfileBuilder_ == null) { if (!(profileCase_ == 103)) { profile_ = com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } - bigqueryProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, - com.google.cloud.datastream.v1.BigQueryProfile.Builder, - com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( + bigqueryProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( (com.google.cloud.datastream.v1.BigQueryProfile) profile_, getParentForChildren(), isClean()); @@ -3341,19 +2943,13 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, - com.google.cloud.datastream.v1.PostgresqlProfile.Builder, - com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> - postgresqlProfileBuilder_; + com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> postgresqlProfileBuilder_; /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return Whether the postgresqlProfile field is set. */ @java.lang.Override @@ -3361,14 +2957,11 @@ public boolean hasPostgresqlProfile() { return profileCase_ == 104; } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return The postgresqlProfile. */ @java.lang.Override @@ -3386,8 +2979,6 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { } } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3408,8 +2999,6 @@ public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlPro return this; } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3428,8 +3017,6 @@ public Builder setPostgresqlProfile( return this; } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3438,13 +3025,10 @@ public Builder setPostgresqlProfile( */ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { if (postgresqlProfileBuilder_ == null) { - if (profileCase_ == 104 - && profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder( - (com.google.cloud.datastream.v1.PostgresqlProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 104 && + profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder((com.google.cloud.datastream.v1.PostgresqlProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -3460,8 +3044,6 @@ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlP return this; } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3485,8 +3067,6 @@ public Builder clearPostgresqlProfile() { return this; } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3497,8 +3077,6 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro return getPostgresqlProfileFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3506,8 +3084,7 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder - getPostgresqlProfileOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { if ((profileCase_ == 104) && (postgresqlProfileBuilder_ != null)) { return postgresqlProfileBuilder_.getMessageOrBuilder(); } else { @@ -3518,8 +3095,6 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro } } /** - * - * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3527,19 +3102,14 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, - com.google.cloud.datastream.v1.PostgresqlProfile.Builder, - com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> getPostgresqlProfileFieldBuilder() { if (postgresqlProfileBuilder_ == null) { if (!(profileCase_ == 104)) { profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } - postgresqlProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, - com.google.cloud.datastream.v1.PostgresqlProfile.Builder, - com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( + postgresqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlProfile) profile_, getParentForChildren(), isClean()); @@ -3551,21 +3121,13 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> - staticServiceIpConnectivityBuilder_; + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> staticServiceIpConnectivityBuilder_; /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -3573,21 +3135,15 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 200; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { if (connectivityCase_ == 200) { return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; @@ -3601,18 +3157,13 @@ public boolean hasStaticServiceIpConnectivity() { } } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ - public Builder setStaticServiceIpConnectivity( - com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { + public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3626,15 +3177,11 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ public Builder setStaticServiceIpConnectivity( com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder builderForValue) { @@ -3648,28 +3195,18 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ - public Builder mergeStaticServiceIpConnectivity( - com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { + public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 200 - && connectivity_ - != com.google.cloud.datastream.v1.StaticServiceIpConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder( - (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 200 && + connectivity_ != com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3685,15 +3222,11 @@ public Builder mergeStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ public Builder clearStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { @@ -3712,34 +3245,24 @@ public Builder clearStaticServiceIpConnectivity() { return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder - getStaticServiceIpConnectivityBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder getStaticServiceIpConnectivityBuilder() { return getStaticServiceIpConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { if ((connectivityCase_ == 200) && (staticServiceIpConnectivityBuilder_ != null)) { return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3750,31 +3273,21 @@ public Builder clearStaticServiceIpConnectivity() { } } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> getStaticServiceIpConnectivityFieldBuilder() { if (staticServiceIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 200)) { - connectivity_ = - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); + connectivity_ = com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } - staticServiceIpConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder>( + staticServiceIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder>( (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3786,21 +3299,13 @@ public Builder clearStaticServiceIpConnectivity() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> - forwardSshConnectivityBuilder_; + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> forwardSshConnectivityBuilder_; /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -3808,16 +3313,11 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 201; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return The forwardSshConnectivity. */ @java.lang.Override @@ -3835,18 +3335,13 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSsh } } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ - public Builder setForwardSshConnectivity( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { + public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3860,15 +3355,11 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ public Builder setForwardSshConnectivity( com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder builderForValue) { @@ -3882,28 +3373,18 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ - public Builder mergeForwardSshConnectivity( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { + public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 201 - && connectivity_ - != com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder( - (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 201 && + connectivity_ != com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3919,15 +3400,11 @@ public Builder mergeForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ public Builder clearForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { @@ -3946,34 +3423,24 @@ public Builder clearForwardSshConnectivity() { return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder - getForwardSshConnectivityBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder getForwardSshConnectivityBuilder() { return getForwardSshConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { if ((connectivityCase_ == 201) && (forwardSshConnectivityBuilder_ != null)) { return forwardSshConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3984,31 +3451,21 @@ public Builder clearForwardSshConnectivity() { } } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> getForwardSshConnectivityFieldBuilder() { if (forwardSshConnectivityBuilder_ == null) { if (!(connectivityCase_ == 201)) { - connectivity_ = - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + connectivity_ = com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } - forwardSshConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder>( + forwardSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder>( (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -4020,19 +3477,13 @@ public Builder clearForwardSshConnectivity() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, - com.google.cloud.datastream.v1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> - privateConnectivityBuilder_; + com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> privateConnectivityBuilder_; /** - * - * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -4040,14 +3491,11 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** - * - * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return The privateConnectivity. */ @java.lang.Override @@ -4065,16 +3513,13 @@ public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity } } /** - * - * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public Builder setPrivateConnectivity( - com.google.cloud.datastream.v1.PrivateConnectivity value) { + public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4088,8 +3533,6 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
@@ -4108,25 +3551,18 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public Builder mergePrivateConnectivity( - com.google.cloud.datastream.v1.PrivateConnectivity value) { + public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { - if (connectivityCase_ == 202 - && connectivity_ - != com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder( - (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 202 && + connectivity_ != com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder((com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -4142,8 +3578,6 @@ public Builder mergePrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
@@ -4167,21 +3601,16 @@ public Builder clearPrivateConnectivity() { return this; } /** - * - * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public com.google.cloud.datastream.v1.PrivateConnectivity.Builder - getPrivateConnectivityBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { return getPrivateConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Private connectivity.
      * 
@@ -4189,8 +3618,7 @@ public Builder clearPrivateConnectivity() { * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if ((connectivityCase_ == 202) && (privateConnectivityBuilder_ != null)) { return privateConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -4201,8 +3629,6 @@ public Builder clearPrivateConnectivity() { } } /** - * - * *
      * Private connectivity.
      * 
@@ -4210,19 +3636,14 @@ public Builder clearPrivateConnectivity() { * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, - com.google.cloud.datastream.v1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> + com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> getPrivateConnectivityFieldBuilder() { if (privateConnectivityBuilder_ == null) { if (!(connectivityCase_ == 202)) { connectivity_ = com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } - privateConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, - com.google.cloud.datastream.v1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder>( + privateConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder>( (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -4232,9 +3653,9 @@ public Builder clearPrivateConnectivity() { onChanged(); return privateConnectivityBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4244,12 +3665,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ConnectionProfile) private static final com.google.cloud.datastream.v1.ConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ConnectionProfile(); } @@ -4258,27 +3679,27 @@ public static com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4293,4 +3714,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java similarity index 78% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 0825a207d866..73714b860b29 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ConnectionProfileOrBuilder - extends +public interface ConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface ConnectionProfileOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,73 +121,59 @@ public interface ConnectionProfileOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ com.google.cloud.datastream.v1.OracleProfile getOracleProfile(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -243,32 +183,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ com.google.cloud.datastream.v1.GcsProfile getGcsProfile(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -278,32 +210,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -313,32 +237,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return Whether the bigqueryProfile field is set. */ boolean hasBigqueryProfile(); /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; - * * @return The bigqueryProfile. */ com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile(); /** - * - * *
    * BigQuery Connection Profile configuration.
    * 
@@ -348,32 +264,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder(); /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return Whether the postgresqlProfile field is set. */ boolean hasPostgresqlProfile(); /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; - * * @return The postgresqlProfile. */ com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile(); /** - * - * *
    * PostgreSQL Connection Profile configuration.
    * 
@@ -383,113 +291,78 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return Whether the staticServiceIpConnectivity field is set. */ boolean hasStaticServiceIpConnectivity(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; * @return The staticServiceIpConnectivity. */ com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; - * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; */ - com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder(); + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return Whether the forwardSshConnectivity field is set. */ boolean hasForwardSshConnectivity(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; * @return The forwardSshConnectivity. */ com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; - * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; */ - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder(); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder(); /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return Whether the privateConnectivity field is set. */ boolean hasPrivateConnectivity(); /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; - * * @return The privateConnectivity. */ com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity(); /** - * - * *
    * Private connectivity.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java index 685bb723803a..0699d34ee703 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for creating a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -46,45 +27,38 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object connectionProfileId_ = ""; /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ @java.lang.Override @@ -146,29 +114,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -179,16 +147,11 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -196,49 +159,33 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -254,7 +201,6 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -263,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -306,15 +252,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** - * - * *
-   * Optional. Only validate the connection profile, but don't create any resources.
-   * The default is false.
+   * Optional. Only validate the connection profile, but don't create any
+   * resources. The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -325,14 +268,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** - * - * *
    * Optional. Create the connection profile without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -341,7 +281,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,7 +292,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -388,16 +328,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -407,23 +350,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateConnectionProfileRequest other = - (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.CreateConnectionProfileRequest other = (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionProfileId() + .equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -446,145 +394,140 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.CreateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateConnectionProfileRequest) com.google.cloud.datastream.v1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -603,14 +546,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.CreateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance(); } @@ -625,17 +567,13 @@ public com.google.cloud.datastream.v1.CreateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = - new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.CreateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -644,10 +582,9 @@ private void buildPartial0( result.connectionProfileId_ = connectionProfileId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.connectionProfile_ = - connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -664,39 +601,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.CreateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -704,9 +640,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -757,50 +691,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - connectionProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + connectionProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -810,27 +738,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -839,23 +762,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -863,39 +783,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -905,23 +814,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -931,20 +834,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionProfileId_ = ""; /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -953,21 +854,20 @@ public java.lang.String getConnectionProfileId() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -975,35 +875,28 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } connectionProfileId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { @@ -1013,21 +906,17 @@ public Builder clearConnectionProfileId() { return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionProfileId_ = value; bitField0_ |= 0x00000002; @@ -1037,58 +926,39 @@ public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -1104,15 +974,11 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { @@ -1126,22 +992,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && connectionProfile_ != null - && connectionProfile_ - != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + connectionProfile_ != null && + connectionProfile_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -1154,15 +1015,11 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1175,15 +1032,11 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000004; @@ -1191,49 +1044,36 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1241,8 +1081,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1258,13 +1096,13 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1273,8 +1111,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1290,14 +1126,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1305,8 +1142,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1322,22 +1157,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1353,7 +1184,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1363,8 +1193,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1380,14 +1208,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1395,17 +1221,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
-     * Optional. Only validate the connection profile, but don't create any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1413,35 +1236,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
-     * Optional. Only validate the connection profile, but don't create any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
-     * Optional. Only validate the connection profile, but don't create any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't create any
+     * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1451,16 +1268,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1468,33 +1282,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1503,9 +1311,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1515,13 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.CreateConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.CreateConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(); } @@ -1530,27 +1337,27 @@ public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1565,4 +1372,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java index eb703b7f5963..daf3ed546d9b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateConnectionProfileRequestOrBuilder - extends +public interface CreateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString getConnectionProfileIdBytes(); + com.google.protobuf.ByteString + getConnectionProfileIdBytes(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,34 +109,28 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
-   * Optional. Only validate the connection profile, but don't create any resources.
-   * The default is false.
+   * Optional. Only validate the connection profile, but don't create any
+   * resources. The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Create the connection profile without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java index 0ac7654fdacf..cc5c1059ccf0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for creating a private connection.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreatePrivateConnectionRequest} */ -public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreatePrivateConnectionRequest) CreatePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePrivateConnectionRequest.newBuilder() to construct. - private CreatePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePrivateConnectionRequest() { parent_ = ""; privateConnectionId_ = ""; @@ -46,45 +27,38 @@ private CreatePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionId_ = ""; /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ @java.lang.Override @@ -146,29 +114,29 @@ public java.lang.String getPrivateConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; } } /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -179,16 +147,11 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.PrivateConnection privateConnection_; /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ @java.lang.Override @@ -196,49 +159,33 @@ public boolean hasPrivateConnection() { return privateConnection_ != null; } /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection() { - return privateConnection_ == null - ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; } /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { - return privateConnection_ == null - ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -254,7 +201,6 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -263,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -287,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,8 +249,22 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int FORCE_FIELD_NUMBER = 6; + private boolean force_ = false; + /** + *
+   * Optional. If set to true, will skip validations.
+   * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,7 +276,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -329,6 +290,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); } + if (force_ != false) { + output.writeBool(6, force_); + } getUnknownFields().writeTo(output); } @@ -345,11 +309,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); } if (privateConnection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrivateConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -358,21 +327,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreatePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other = - (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other = (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPrivateConnectionId() + .equals(other.getPrivateConnectionId())) return false; if (hasPrivateConnection() != other.hasPrivateConnection()) return false; if (hasPrivateConnection()) { - if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection() + .equals(other.getPrivateConnection())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -394,142 +368,138 @@ public int hashCode() { } hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for creating a private connection.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreatePrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreatePrivateConnectionRequest) com.google.cloud.datastream.v1.CreatePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -542,18 +512,18 @@ public Builder clear() { privateConnectionBuilder_ = null; } requestId_ = ""; + force_ = false; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance(); } @@ -568,17 +538,13 @@ public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = - new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -587,53 +553,54 @@ private void buildPartial0( result.privateConnectionId_ = privateConnectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.privateConnection_ = - privateConnectionBuilder_ == null - ? privateConnection_ - : privateConnectionBuilder_.build(); + result.privateConnection_ = privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.force_ = force_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -641,9 +608,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other) { - if (other - == com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -662,6 +627,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.CreatePrivateConnectionR bitField0_ |= 0x00000008; onChanged(); } + if (other.getForce() != false) { + setForce(other.getForce()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -688,38 +656,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - privateConnectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -729,27 +698,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -758,23 +722,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -782,39 +743,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -824,23 +774,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -850,20 +794,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object privateConnectionId_ = ""; /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ public java.lang.String getPrivateConnectionId() { java.lang.Object ref = privateConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; @@ -872,21 +814,20 @@ public java.lang.String getPrivateConnectionId() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -894,35 +835,28 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } privateConnectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPrivateConnectionId() { @@ -932,21 +866,17 @@ public Builder clearPrivateConnectionId() { return this; } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateConnectionId_ = value; bitField0_ |= 0x00000002; @@ -956,58 +886,39 @@ public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1.PrivateConnection privateConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> - privateConnectionBuilder_; + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> privateConnectionBuilder_; /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ public boolean hasPrivateConnection() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection() { if (privateConnectionBuilder_ == null) { - return privateConnection_ == null - ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; } else { return privateConnectionBuilder_.getMessage(); } } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrivateConnection(com.google.cloud.datastream.v1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { @@ -1023,15 +934,11 @@ public Builder setPrivateConnection(com.google.cloud.datastream.v1.PrivateConnec return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrivateConnection( com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { @@ -1045,22 +952,17 @@ public Builder setPrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePrivateConnection(com.google.cloud.datastream.v1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && privateConnection_ != null - && privateConnection_ - != com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + privateConnection_ != null && + privateConnection_ != com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) { getPrivateConnectionBuilder().mergeFrom(value); } else { privateConnection_ = value; @@ -1073,15 +975,11 @@ public Builder mergePrivateConnection(com.google.cloud.datastream.v1.PrivateConn return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPrivateConnection() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1094,15 +992,11 @@ public Builder clearPrivateConnection() { return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnectionBuilder() { bitField0_ |= 0x00000004; @@ -1110,49 +1004,36 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder - getPrivateConnectionOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { if (privateConnectionBuilder_ != null) { return privateConnectionBuilder_.getMessageOrBuilder(); } else { - return privateConnection_ == null - ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? + com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; } } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> getPrivateConnectionFieldBuilder() { if (privateConnectionBuilder_ == null) { - privateConnectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( - getPrivateConnection(), getParentForChildren(), isClean()); + privateConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( + getPrivateConnection(), + getParentForChildren(), + isClean()); privateConnection_ = null; } return privateConnectionBuilder_; @@ -1160,8 +1041,6 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1177,13 +1056,13 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1192,8 +1071,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,14 +1086,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1224,8 +1102,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1241,22 +1117,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1272,7 +1144,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1282,8 +1153,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1299,14 +1168,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1314,8 +1181,52 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } + private boolean force_ ; + /** + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public boolean getForce() { + return force_; + } + /** + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Optional. If set to true, will skip validations.
+     * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000010); + force_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1325,13 +1236,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreatePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreatePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1.CreatePrivateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.CreatePrivateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(); } @@ -1340,27 +1250,27 @@ public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,4 +1285,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java index 92dbf640bb30..4b52874869dd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreatePrivateConnectionRequestOrBuilder - extends +public interface CreatePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreatePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ java.lang.String getPrivateConnectionId(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - com.google.protobuf.ByteString getPrivateConnectionIdBytes(); + com.google.protobuf.ByteString + getPrivateConnectionIdBytes(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ boolean hasPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,18 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+   * Optional. If set to true, will skip validations.
+   * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + boolean getForce(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java index 8c94fe3afec8..74fcdb321e51 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Route creation request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateRouteRequest} */ -public final class CreateRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateRouteRequest) CreateRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRouteRequest.newBuilder() to construct. private CreateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRouteRequest() { parent_ = ""; routeId_ = ""; @@ -45,45 +27,38 @@ private CreateRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateRouteRequest.class, - com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1.CreateRouteRequest.class, com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int ROUTE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object routeId_ = ""; /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getRouteId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; } } /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ @java.lang.Override - public com.google.protobuf.ByteString getRouteIdBytes() { + public com.google.protobuf.ByteString + getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routeId_ = b; return b; } else { @@ -178,15 +147,11 @@ public com.google.protobuf.ByteString getRouteIdBytes() { public static final int ROUTE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.Route route_; /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ @java.lang.Override @@ -194,15 +159,11 @@ public boolean hasRoute() { return route_ != null; } /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ @java.lang.Override @@ -210,14 +171,11 @@ public com.google.cloud.datastream.v1.Route getRoute() { return route_ == null ? com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; } /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { @@ -225,12 +183,9 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -246,7 +201,6 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -255,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -279,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -296,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -337,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); } if (route_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRoute()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -350,21 +305,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateRouteRequest other = - (com.google.cloud.datastream.v1.CreateRouteRequest) obj; + com.google.cloud.datastream.v1.CreateRouteRequest other = (com.google.cloud.datastream.v1.CreateRouteRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRouteId().equals(other.getRouteId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRouteId() + .equals(other.getRouteId())) return false; if (hasRoute() != other.hasRoute()) return false; if (hasRoute()) { - if (!getRoute().equals(other.getRoute())) return false; + if (!getRoute() + .equals(other.getRoute())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -392,135 +350,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.CreateRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Route creation request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateRouteRequest) com.google.cloud.datastream.v1.CreateRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateRouteRequest.class, - com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1.CreateRouteRequest.class, com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -537,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override @@ -558,11 +510,8 @@ public com.google.cloud.datastream.v1.CreateRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateRouteRequest buildPartial() { - com.google.cloud.datastream.v1.CreateRouteRequest result = - new com.google.cloud.datastream.v1.CreateRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.CreateRouteRequest result = new com.google.cloud.datastream.v1.CreateRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -576,7 +525,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateRouteRequest res result.routeId_ = routeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.route_ = routeBuilder_ == null ? route_ : routeBuilder_.build(); + result.route_ = routeBuilder_ == null + ? route_ + : routeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -587,39 +538,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateRouteRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.CreateRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -627,8 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateRouteRequest other) { - if (other == com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -673,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - routeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRouteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + routeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRouteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -713,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -742,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -766,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -808,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -834,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object routeId_ = ""; /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ public java.lang.String getRouteId() { java.lang.Object ref = routeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; @@ -856,21 +775,20 @@ public java.lang.String getRouteId() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - public com.google.protobuf.ByteString getRouteIdBytes() { + public com.google.protobuf.ByteString + getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routeId_ = b; return b; } else { @@ -878,35 +796,28 @@ public com.google.protobuf.ByteString getRouteIdBytes() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The routeId to set. * @return This builder for chaining. */ - public Builder setRouteId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRouteId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } routeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRouteId() { @@ -916,21 +827,17 @@ public Builder clearRouteId() { return this; } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for routeId to set. * @return This builder for chaining. */ - public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRouteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); routeId_ = value; bitField0_ |= 0x00000002; @@ -940,35 +847,24 @@ public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.Route route_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder> - routeBuilder_; + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> routeBuilder_; /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ public boolean hasRoute() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ public com.google.cloud.datastream.v1.Route getRoute() { @@ -979,14 +875,11 @@ public com.google.cloud.datastream.v1.Route getRoute() { } } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRoute(com.google.cloud.datastream.v1.Route value) { if (routeBuilder_ == null) { @@ -1002,16 +895,14 @@ public Builder setRoute(com.google.cloud.datastream.v1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRoute(com.google.cloud.datastream.v1.Route.Builder builderForValue) { + public Builder setRoute( + com.google.cloud.datastream.v1.Route.Builder builderForValue) { if (routeBuilder_ == null) { route_ = builderForValue.build(); } else { @@ -1022,20 +913,17 @@ public Builder setRoute(com.google.cloud.datastream.v1.Route.Builder builderForV return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRoute(com.google.cloud.datastream.v1.Route value) { if (routeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && route_ != null - && route_ != com.google.cloud.datastream.v1.Route.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + route_ != null && + route_ != com.google.cloud.datastream.v1.Route.getDefaultInstance()) { getRouteBuilder().mergeFrom(value); } else { route_ = value; @@ -1048,14 +936,11 @@ public Builder mergeRoute(com.google.cloud.datastream.v1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRoute() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1068,14 +953,11 @@ public Builder clearRoute() { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.Route.Builder getRouteBuilder() { bitField0_ |= 0x00000004; @@ -1083,44 +965,36 @@ public com.google.cloud.datastream.v1.Route.Builder getRouteBuilder() { return getRouteFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { if (routeBuilder_ != null) { return routeBuilder_.getMessageOrBuilder(); } else { - return route_ == null ? com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; + return route_ == null ? + com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; } } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder> + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> getRouteFieldBuilder() { if (routeBuilder_ == null) { - routeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder>( - getRoute(), getParentForChildren(), isClean()); + routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder>( + getRoute(), + getParentForChildren(), + isClean()); route_ = null; } return routeBuilder_; @@ -1128,8 +1002,6 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1145,13 +1017,13 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1160,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1177,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1192,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1209,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1240,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1250,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1267,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1293,12 +1153,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateRouteRequest) private static final com.google.cloud.datastream.v1.CreateRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateRouteRequest(); } @@ -1307,27 +1167,27 @@ public static com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1342,4 +1202,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java index 53f171d0b450..ed1195c9ce04 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java @@ -1,123 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateRouteRequestOrBuilder - extends +public interface CreateRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ java.lang.String getRouteId(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - com.google.protobuf.ByteString getRouteIdBytes(); + com.google.protobuf.ByteString + getRouteIdBytes(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ boolean hasRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ com.google.cloud.datastream.v1.Route getRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -133,13 +90,10 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,8 +109,8 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java index cab781eda4ac..b2046158eb75 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for creating a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateStreamRequest} */ -public final class CreateStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateStreamRequest) CreateStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateStreamRequest.newBuilder() to construct. private CreateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateStreamRequest() { parent_ = ""; streamId_ = ""; @@ -45,45 +27,38 @@ private CreateStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateStreamRequest.class, - com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.CreateStreamRequest.class, com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int STREAM_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object streamId_ = ""; /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getStreamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; } } /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ @java.lang.Override - public com.google.protobuf.ByteString getStreamIdBytes() { + public com.google.protobuf.ByteString + getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streamId_ = b; return b; } else { @@ -178,15 +147,11 @@ public com.google.protobuf.ByteString getStreamIdBytes() { public static final int STREAM_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.Stream stream_; /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -194,15 +159,11 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ @java.lang.Override @@ -210,14 +171,11 @@ public com.google.cloud.datastream.v1.Stream getStream() { return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { @@ -225,12 +183,9 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -246,7 +201,6 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -255,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -279,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -298,15 +252,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** - * - * *
    * Optional. Only validate the stream, but don't create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -317,14 +268,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** - * - * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -333,7 +281,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -345,7 +292,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -380,16 +328,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -399,23 +350,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateStreamRequest other = - (com.google.cloud.datastream.v1.CreateStreamRequest) obj; + com.google.cloud.datastream.v1.CreateStreamRequest other = (com.google.cloud.datastream.v1.CreateStreamRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getStreamId().equals(other.getStreamId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getStreamId() + .equals(other.getStreamId())) return false; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -438,144 +394,140 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.CreateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for creating a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateStreamRequest) com.google.cloud.datastream.v1.CreateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateStreamRequest.class, - com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.CreateStreamRequest.class, com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -594,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override @@ -615,11 +567,8 @@ public com.google.cloud.datastream.v1.CreateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateStreamRequest buildPartial() { - com.google.cloud.datastream.v1.CreateStreamRequest result = - new com.google.cloud.datastream.v1.CreateStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.CreateStreamRequest result = new com.google.cloud.datastream.v1.CreateStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -633,7 +582,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateStreamRequest re result.streamId_ = streamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -650,39 +601,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateStreamRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.CreateStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -690,8 +640,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateStreamRequest other) { - if (other == com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -742,49 +691,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - streamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + streamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -794,27 +738,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -823,23 +762,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -847,39 +783,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -889,23 +814,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -915,20 +834,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object streamId_ = ""; /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ public java.lang.String getStreamId() { java.lang.Object ref = streamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; @@ -937,21 +854,20 @@ public java.lang.String getStreamId() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - public com.google.protobuf.ByteString getStreamIdBytes() { + public com.google.protobuf.ByteString + getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streamId_ = b; return b; } else { @@ -959,35 +875,28 @@ public com.google.protobuf.ByteString getStreamIdBytes() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The streamId to set. * @return This builder for chaining. */ - public Builder setStreamId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStreamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } streamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStreamId() { @@ -997,21 +906,17 @@ public Builder clearStreamId() { return this; } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for streamId to set. * @return This builder for chaining. */ - public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStreamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); streamId_ = value; bitField0_ |= 0x00000002; @@ -1021,58 +926,39 @@ public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ public com.google.cloud.datastream.v1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { @@ -1088,17 +974,14 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -1109,21 +992,17 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderFo return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && stream_ != null - && stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + stream_ != null && + stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1136,15 +1015,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1157,15 +1032,11 @@ public Builder clearStream() { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000004; @@ -1173,48 +1044,36 @@ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; @@ -1222,8 +1081,6 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1239,13 +1096,13 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1254,8 +1111,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1271,14 +1126,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1286,8 +1142,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1303,22 +1157,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1334,7 +1184,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1344,8 +1193,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1361,14 +1208,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1376,17 +1221,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1394,35 +1236,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1432,16 +1268,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1449,33 +1282,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1484,9 +1311,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1496,12 +1323,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateStreamRequest) private static final com.google.cloud.datastream.v1.CreateStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateStreamRequest(); } @@ -1510,27 +1337,27 @@ public static com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1545,4 +1372,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java index b657ef594980..b5acf40148fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java @@ -1,123 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateStreamRequestOrBuilder - extends +public interface CreateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ java.lang.String getStreamId(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - com.google.protobuf.ByteString getStreamIdBytes(); + com.google.protobuf.ByteString + getStreamIdBytes(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1.Stream getStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -133,13 +90,10 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,34 +109,28 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Only validate the stream, but don't create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java new file mode 100644 index 000000000000..c7374d733b3e --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -0,0 +1,742 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public final class DatastreamProto { + private DatastreamProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/datastream/v1/datastream." + + "proto\022\032google.cloud.datastream.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\0325google/clo" + + "ud/datastream/v1/datastream_resources.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"\375\003\n DiscoverConnectionP" + + "rofileRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+d" + + "atastream.googleapis.com/ConnectionProfi" + + "le\022L\n\022connection_profile\030\310\001 \001(\0132-.google" + + ".cloud.datastream.v1.ConnectionProfileH\000" + + "\022\"\n\027connection_profile_name\030\311\001 \001(\tH\000\022\030\n\016" + + "full_hierarchy\030\003 \001(\010H\001\022\031\n\017hierarchy_dept" + + "h\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001(\0132\'.google" + + ".cloud.datastream.v1.OracleRdbmsH\002\022=\n\013my" + + "sql_rdbms\030e \001(\0132&.google.cloud.datastrea" + + "m.v1.MysqlRdbmsH\002\022G\n\020postgresql_rdbms\030f " + + "\001(\0132+.google.cloud.datastream.v1.Postgre" + + "sqlRdbmsH\002B\010\n\006targetB\013\n\thierarchyB\r\n\013dat" + + "a_object\"\373\001\n!DiscoverConnectionProfileRe" + + "sponse\022?\n\014oracle_rdbms\030d \001(\0132\'.google.cl" + + "oud.datastream.v1.OracleRdbmsH\000\022=\n\013mysql" + + "_rdbms\030e \001(\0132&.google.cloud.datastream.v" + + "1.MysqlRdbmsH\000\022G\n\020postgresql_rdbms\030f \001(\013" + + "2+.google.cloud.datastream.v1.Postgresql" + + "RdbmsH\000B\r\n\013data_object\"w\n\025FetchStaticIps" + + "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026FetchStaticIp" + + "sResponse\022\022\n\nstatic_ips\030\001 \003(\t\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\255\001\n\035ListConnectionProfile" + + "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datast" + + "ream.googleapis.com/ConnectionProfile\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListC" + + "onnectionProfilesResponse\022J\n\023connection_" + + "profiles\030\001 \003(\0132-.google.cloud.datastream" + + ".v1.ConnectionProfile\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\033GetConnec" + + "tionProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + + "\n+datastream.googleapis.com/ConnectionPr" + + "ofile\"\242\002\n\036CreateConnectionProfileRequest" + + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.goo" + + "gleapis.com/ConnectionProfile\022\"\n\025connect" + + "ion_profile_id\030\002 \001(\tB\003\340A\002\022N\n\022connection_" + + "profile\030\003 \001(\0132-.google.cloud.datastream." + + "v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022" + + "\n\005force\030\006 \001(\010B\003\340A\001\"\357\001\n\036UpdateConnectionP" + + "rofileRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\001\022N\n\022connectio" + + "n_profile\030\002 \001(\0132-.google.cloud.datastrea" + + "m.v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_i" + + "d\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + + "\022\022\n\005force\030\005 \001(\010B\003\340A\001\"|\n\036DeleteConnection" + + "ProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+da" + + "tastream.googleapis.com/ConnectionProfil" + + "e\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStrea" + + "msRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datas" + + "tream.googleapis.com/Stream\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\023ListStreamsRespo" + + "nse\0223\n\007streams\030\001 \003(\0132\".google.cloud.data" + + "stream.v1.Stream\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"J\n\020GetStreamReque" + + "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream.goo" + + "gleapis.com/Stream\"\351\001\n\023CreateStreamReque" + + "st\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.g" + + "oogleapis.com/Stream\022\026\n\tstream_id\030\002 \001(\tB" + + "\003\340A\002\0227\n\006stream\030\003 \001(\0132\".google.cloud.data" + + "stream.v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + + "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005fo" + + "rce\030\006 \001(\010B\003\340A\001\"\315\001\n\023UpdateStreamRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\0227\n\006stream\030\002 \001(\0132\".google.cl" + + "oud.datastream.v1.StreamB\003\340A\002\022\027\n\nrequest" + + "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" + + "A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream." + + "googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001(" + + "\tB\003\340A\001\"V\n\026GetStreamObjectRequest\022<\n\004name" + + "\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.co" + + "m/StreamObject\"\260\001\n\031LookupStreamObjectReq" + + "uest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datastream" + + ".googleapis.com/Stream\022Y\n\030source_object_" + + "identifier\030\002 \001(\01322.google.cloud.datastre" + + "am.v1.SourceObjectIdentifierB\003\340A\002\"Y\n\027Sta" + + "rtBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340A" + + "\002\372A(\n&datastream.googleapis.com/StreamOb" + + "ject\"T\n\030StartBackfillJobResponse\0228\n\006obje" + + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + + "reamObject\"X\n\026StopBackfillJobRequest\022>\n\006" + + "object\030\001 \001(\tB.\340A\002\372A(\n&datastream.googlea" + + "pis.com/StreamObject\"S\n\027StopBackfillJobR" + + "esponse\0228\n\006object\030\001 \001(\0132(.google.cloud.d" + + "atastream.v1.StreamObject\"\201\001\n\030ListStream" + + "ObjectsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&" + + "datastream.googleapis.com/StreamObject\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n" + + "\031ListStreamObjectsResponse\022@\n\016stream_obj" + + "ects\030\001 \003(\0132(.google.cloud.datastream.v1." + + "StreamObject\022\027\n\017next_page_token\030\002 \001(\t\"\316\002" + + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\003\022L\n\021validation_result\030\010 " + + "\001(\0132,.google.cloud.datastream.v1.Validat" + + "ionResultB\003\340A\003\"\206\002\n\036CreatePrivateConnecti" + + "onRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datas" + + "tream.googleapis.com/PrivateConnection\022\"" + + "\n\025private_connection_id\030\002 \001(\tB\003\340A\002\022N\n\022pr" + + "ivate_connection\030\003 \001(\0132-.google.cloud.da" + + "tastream.v1.PrivateConnectionB\003\340A\002\022\027\n\nre" + + "quest_id\030\004 \001(\tB\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + + "\255\001\n\035ListPrivateConnectionsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" + + ".com/PrivateConnection\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" + + "\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConnectio" + + "nsResponse\022J\n\023private_connections\030\001 \003(\0132" + + "-.google.cloud.datastream.v1.PrivateConn" + + "ection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\220\001\n\036DeletePrivateConnection" + + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastrea" + + "m.googleapis.com/PrivateConnection\022\027\n\nre" + + "quest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"" + + "`\n\033GetPrivateConnectionRequest\022A\n\004name\030\001" + + " \001(\tB3\340A\002\372A-\n+datastream.googleapis.com/" + + "PrivateConnection\"\264\001\n\022CreateRouteRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.goo" + + "gleapis.com/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002" + + "\0225\n\005route\030\003 \001(\0132!.google.cloud.datastrea" + + "m.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 \001(\tB\'" + + "\340A\002\372A!\022\037datastream.googleapis.com/Route\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022List" + + "RoutesResponse\0221\n\006routes\030\001 \003(\0132!.google." + + "cloud.datastream.v1.Route\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022Delet" + + "eRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dat" + + "astream.googleapis.com/Route\022\027\n\nrequest_" + + "id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.co" + + "m/Route2\375*\n\nDatastream\022\330\001\n\026ListConnectio" + + "nProfiles\0229.google.cloud.datastream.v1.L" + + "istConnectionProfilesRequest\032:.google.cl" + + "oud.datastream.v1.ListConnectionProfiles" + + "Response\"G\202\323\344\223\0028\0226/v1/{parent=projects/*" + + "/locations/*}/connectionProfiles\332A\006paren" + + "t\022\305\001\n\024GetConnectionProfile\0227.google.clou" + + "d.datastream.v1.GetConnectionProfileRequ" + + "est\032-.google.cloud.datastream.v1.Connect" + + "ionProfile\"E\202\323\344\223\0028\0226/v1/{name=projects/*" + + "/locations/*/connectionProfiles/*}\332A\004nam" + + "e\022\244\002\n\027CreateConnectionProfile\022:.google.c" + + "loud.datastream.v1.CreateConnectionProfi" + + "leRequest\032\035.google.longrunning.Operation" + + "\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/locati" + + "ons/*}/connectionProfiles:\022connection_pr" + + "ofile\332A/parent,connection_profile,connec" + + "tion_profile_id\312A&\n\021ConnectionProfile\022\021O" + + "perationMetadata\022\246\002\n\027UpdateConnectionPro" + + "file\022:.google.cloud.datastream.v1.Update" + + "ConnectionProfileRequest\032\035.google.longru" + + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + + "n_profile.name=projects/*/locations/*/co" + + "nnectionProfiles/*}:\022connection_profile\332" + + "A\036connection_profile,update_mask\312A&\n\021Con" + + "nectionProfile\022\021OperationMetadata\022\350\001\n\027De" + + "leteConnectionProfile\022:.google.cloud.dat" + + "astream.v1.DeleteConnectionProfileReques" + + "t\032\035.google.longrunning.Operation\"r\202\323\344\223\0028" + + "*6/v1/{name=projects/*/locations/*/conne" + + "ctionProfiles/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\344\001\n\031Discove" + + "rConnectionProfile\022<.google.cloud.datast" + + "ream.v1.DiscoverConnectionProfileRequest" + + "\032=.google.cloud.datastream.v1.DiscoverCo" + + "nnectionProfileResponse\"J\202\323\344\223\002D\"?/v1/{pa" + + "rent=projects/*/locations/*}/connectionP" + + "rofiles:discover:\001*\022\254\001\n\013ListStreams\022..go" + + "ogle.cloud.datastream.v1.ListStreamsRequ" + + "est\032/.google.cloud.datastream.v1.ListStr" + + "eamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=projec" + + "ts/*/locations/*}/streams\332A\006parent\022\231\001\n\tG" + + "etStream\022,.google.cloud.datastream.v1.Ge" + + "tStreamRequest\032\".google.cloud.datastream" + + ".v1.Stream\":\202\323\344\223\002-\022+/v1/{name=projects/*" + + "/locations/*/streams/*}\332A\004name\022\323\001\n\014Creat" + + "eStream\022/.google.cloud.datastream.v1.Cre" + + "ateStreamRequest\032\035.google.longrunning.Op" + + "eration\"s\202\323\344\223\0025\"+/v1/{parent=projects/*/" + + "locations/*}/streams:\006stream\332A\027parent,st" + + "ream,stream_id\312A\033\n\006Stream\022\021OperationMeta" + + "data\022\325\001\n\014UpdateStream\022/.google.cloud.dat" + + "astream.v1.UpdateStreamRequest\032\035.google." + + "longrunning.Operation\"u\202\323\344\223\002<22/v1/{stre" + + "am.name=projects/*/locations/*/streams/*" + + "}:\006stream\332A\022stream,update_mask\312A\033\n\006Strea" + + "m\022\021OperationMetadata\022\307\001\n\014DeleteStream\022/." + + "google.cloud.datastream.v1.DeleteStreamR" + + "equest\032\035.google.longrunning.Operation\"g\202" + + "\323\344\223\002-*+/v1/{name=projects/*/locations/*/" + + "streams/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\022\265\001\n\017GetStreamObje" + + "ct\0222.google.cloud.datastream.v1.GetStrea" + + "mObjectRequest\032(.google.cloud.datastream" + + ".v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name=proj" + + "ects/*/locations/*/streams/*/objects/*}\332" + + "A\004name\022\276\001\n\022LookupStreamObject\0225.google.c" + + "loud.datastream.v1.LookupStreamObjectReq" + + "uest\032(.google.cloud.datastream.v1.Stream" + + "Object\"G\202\323\344\223\002A\"cloud.google.com/go/datastream/ap" + + "iv1/datastreampb;datastreampb\252\002\032Google.C" + + "loud.Datastream.V1\312\002\032Google\\Cloud\\Datast" + + "ream\\V1\352\002\035Google::Cloud::Datastream::V1b" + + "\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionProfile", "ConnectionProfileName", "FullHierarchy", "HierarchyDepth", "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "Target", "Hierarchy", "DataObject", }); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor, + new java.lang.String[] { "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "DataObject", }); + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor, + new java.lang.String[] { "Name", "PageSize", "PageToken", }); + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor, + new java.lang.String[] { "StaticIps", "NextPageToken", }); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor, + new java.lang.String[] { "ConnectionProfiles", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor, + new java.lang.String[] { "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", }); + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor, + new java.lang.String[] { "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", }); + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor, + new java.lang.String[] { "Streams", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor, + new java.lang.String[] { "Parent", "StreamId", "Stream", "RequestId", "ValidateOnly", "Force", }); + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor, + new java.lang.String[] { "UpdateMask", "Stream", "RequestId", "ValidateOnly", "Force", }); + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor, + new java.lang.String[] { "Parent", "SourceObjectIdentifier", }); + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, + new java.lang.String[] { "Object", }); + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor, + new java.lang.String[] { "Object", }); + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor, + new java.lang.String[] { "Object", }); + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor, + new java.lang.String[] { "Object", }); + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor, + new java.lang.String[] { "StreamObjects", "NextPageToken", }); + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor, + new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "ValidationResult", }); + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor, + new java.lang.String[] { "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "Force", }); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor, + new java.lang.String[] { "PrivateConnections", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", "Force", }); + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor, + new java.lang.String[] { "Parent", "RouteId", "Route", "RequestId", }); + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor, + new java.lang.String[] { "Routes", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor, + new java.lang.String[] { "Name", "RequestId", }); + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor, + new java.lang.String[] { "Name", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java new file mode 100644 index 000000000000..cb4beaeb3621 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java @@ -0,0 +1,1004 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public final class DatastreamResourcesProto { + private DatastreamResourcesProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Route_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Error_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Validation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/datastream/v1/datastream_" + + "resources.proto\022\032google.cloud.datastream" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\036google/protobuf" + + "/duration.proto\032\037google/protobuf/timesta" + + "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" + + " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" + + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" + + "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" + + "butes\030\006 \003(\0132C.google.cloud.datastream.v1" + + ".OracleProfile.ConnectionAttributesEntry" + + "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + + "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." + + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" + + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" + + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" + + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" + + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" + + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" + + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" + + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" + + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" + + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" + + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" + + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" + + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" + + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" + + "bels\030\004 \003(\01329.google.cloud.datastream.v1." + + "PrivateConnection.LabelsEntry\022\031\n\014display" + + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" + + ".cloud.datastream.v1.PrivateConnection.S" + + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." + + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" + + "config\030d \001(\0132,.google.cloud.datastream.v" + + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" + + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" + + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" + + "s.com/PrivateConnection\022Oprojects/{proje" + + "ct}/locations/{location}/privateConnecti" + + "ons/{private_connection}\"f\n\023PrivateConne" + + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" + + "\0132-.google.cloud.datastream.v1.Route.Lab" + + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" + + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" + + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" + + "m.googleapis.com/Route\022^projects/{projec" + + "t}/locations/{location}/privateConnectio" + + "ns/{private_connection}/routes/{route}\"\312" + + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" + + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" + + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" + + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" + + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" + + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" + + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" + + "nnectionProfile.LabelsEntry\022\031\n\014display_n" + + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" + + ".google.cloud.datastream.v1.OracleProfil" + + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." + + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" + + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" + + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" + + "+.google.cloud.datastream.v1.BigQueryPro" + + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" + + "gle.cloud.datastream.v1.PostgresqlProfil" + + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" + + " \001(\01327.google.cloud.datastream.v1.Static" + + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" + + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" + + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" + + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" + + "loud.datastream.v1.PrivateConnectivityH\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" + + "/ConnectionProfile\022Oprojects/{project}/l" + + "ocations/{location}/connectionProfiles/{" + + "connection_profile}B\t\n\007profileB\016\n\014connec" + + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" + + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" + + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" + + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" + + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" + + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" + + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" + + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" + + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" + + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" + + "tastream.v1.OracleSchema\"\347\003\n\022OracleSourc" + + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" + + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" + + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" + + "c_tasks\030\003 \001(\005\022%\n\035max_concurrent_backfill" + + "_tasks\030\004 \001(\005\022]\n\022drop_large_objects\030d \001(\013" + + "2?.google.cloud.datastream.v1.OracleSour" + + "ceConfig.DropLargeObjectsH\000\022a\n\024stream_la" + + "rge_objects\030f \001(\0132A.google.cloud.datastr" + + "eam.v1.OracleSourceConfig.StreamLargeObj" + + "ectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLarg" + + "eObjectsB\030\n\026large_objects_handling\"\250\001\n\020P" + + "ostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_" + + "type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030" + + "\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001(" + + "\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030" + + "\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t\022" + + "H\n\022postgresql_columns\030\002 \003(\0132,.google.clo" + + "ud.datastream.v1.PostgresqlColumn\"j\n\020Pos" + + "tgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgre" + + "sql_tables\030\002 \003(\0132+.google.cloud.datastre" + + "am.v1.PostgresqlTable\"[\n\017PostgresqlRdbms" + + "\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.cl" + + "oud.datastream.v1.PostgresqlSchema\"\207\002\n\026P" + + "ostgresqlSourceConfig\022D\n\017include_objects" + + "\030\001 \001(\0132+.google.cloud.datastream.v1.Post" + + "gresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+.g" + + "oogle.cloud.datastream.v1.PostgresqlRdbm" + + "s\022 \n\020replication_slot\030\003 \001(\tB\006\340A\002\340A\005\022\030\n\013p" + + "ublication\030\004 \001(\tB\003\340A\002\022%\n\035max_concurrent_" + + "backfill_tasks\030\005 \001(\005\"\224\001\n\013MysqlColumn\022\016\n\006" + + "column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006lengt" + + "h\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_ke" + + "y\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_pos" + + "ition\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t" + + "\022>\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.d" + + "atastream.v1.MysqlColumn\"_\n\rMysqlDatabas" + + "e\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(" + + "\0132&.google.cloud.datastream.v1.MysqlTabl" + + "e\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\013" + + "2).google.cloud.datastream.v1.MysqlDatab" + + "ase\"\336\001\n\021MysqlSourceConfig\022?\n\017include_obj" + + "ects\030\001 \001(\0132&.google.cloud.datastream.v1." + + "MysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.go" + + "ogle.cloud.datastream.v1.MysqlRdbms\022 \n\030m" + + "ax_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035max_con" + + "current_backfill_tasks\030\004 \001(\005\"\364\002\n\014SourceC" + + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + + "ectionProfile\022N\n\024oracle_source_config\030d " + + "\001(\0132..google.cloud.datastream.v1.OracleS" + + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + + "(\0132-.google.cloud.datastream.v1.MysqlSou" + + "rceConfigH\000\022V\n\030postgresql_source_config\030" + + "f \001(\01322.google.cloud.datastream.v1.Postg" + + "resqlSourceConfigH\000B\026\n\024source_stream_con" + + "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" + + "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" + + "oud.datastream.v1.JsonFileFormat.SchemaF" + + "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." + + "cloud.datastream.v1.JsonFileFormat.JsonC" + + "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" + + "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" + + "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" + + "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" + + "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" + + "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" + + "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" + + "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" + + "vro_file_format\030d \001(\0132*.google.cloud.dat" + + "astream.v1.AvroFileFormatH\000\022F\n\020json_file" + + "_format\030e \001(\0132*.google.cloud.datastream." + + "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" + + "igQueryDestinationConfig\022k\n\025single_targe" + + "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" + + "am.v1.BigQueryDestinationConfig.SingleTa" + + "rgetDatasetH\000\022s\n\031source_hierarchy_datase" + + "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" + + "igQueryDestinationConfig.SourceHierarchy" + + "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" + + "ogle.protobuf.Duration\032)\n\023SingleTargetDa" + + "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" + + "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" + + "].google.cloud.datastream.v1.BigQueryDes" + + "tinationConfig.SourceHierarchyDatasets.D" + + "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" + + "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " + + "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" + + "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" + + "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" + + "tream.googleapis.com/ConnectionProfile\022R" + + "\n\026gcs_destination_config\030d \001(\01320.google." + + "cloud.datastream.v1.GcsDestinationConfig" + + "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" + + "5.google.cloud.datastream.v1.BigQueryDes" + + "tinationConfigH\000B\033\n\031destination_stream_c" + + "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" + + "..google.cloud.datastream.v1.Stream.Labe" + + "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" + + "urce_config\030\006 \001(\0132(.google.cloud.datastr" + + "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" + + "config\030\007 \001(\0132-.google.cloud.datastream.v" + + "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" + + "(.google.cloud.datastream.v1.Stream.Stat" + + "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" + + "atastream.v1.Stream.BackfillAllStrategyH" + + "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." + + "datastream.v1.Stream.BackfillNoneStrateg" + + "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" + + "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" + + "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" + + "illAllStrategy\022J\n\027oracle_excluded_object" + + "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" + + "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" + + "(\0132&.google.cloud.datastream.v1.MysqlRdb" + + "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" + + "\0132+.google.cloud.datastream.v1.Postgresq" + + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" + + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" + + "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" + + "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" + + "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" + + "pis.com/Stream\0228projects/{project}/locat" + + "ions/{location}/streams/{stream}B\023\n\021back" + + "fill_strategyB\"\n _customer_managed_encry" + + "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" + + "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" + + "backfill_job\030\007 \001(\0132\'.google.cloud.datast" + + "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" + + "(\01322.google.cloud.datastream.v1.SourceOb" + + "jectIdentifier:v\352As\n&datastream.googleap" + + "is.com/StreamObject\022Iprojects/{project}/" + + "locations/{location}/streams/{stream}/ob" + + "jects/{object}\"\271\004\n\026SourceObjectIdentifie" + + "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" + + "oud.datastream.v1.SourceObjectIdentifier" + + ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" + + "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" + + ".SourceObjectIdentifier.MysqlObjectIdent" + + "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" + + ".google.cloud.datastream.v1.SourceObject" + + "Identifier.PostgresqlObjectIdentifierH\000\032" + + "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" + + "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" + + "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" + + "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" + + "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" + + "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" + + "\0162/.google.cloud.datastream.v1.BackfillJ" + + "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" + + "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" + + "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" + + "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" + + "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" + + "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" + + "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." + + "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" + + "atastream.v1.Error.DetailsEntry\032.\n\014Detai" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" + + "2&.google.cloud.datastream.v1.Validation" + + "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" + + "state\030\002 \001(\0162,.google.cloud.datastream.v1" + + ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" + + "gle.cloud.datastream.v1.ValidationMessag" + + "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" + + "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" + + "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" + + "atastream.v1.ValidationMessage.Level\022M\n\010" + + "metadata\030\003 \003(\0132;.google.cloud.datastream" + + ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" + + "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\250\002\n\036c" + + "om.google.cloud.datastream.v1B\030Datastrea" + + "mResourcesProtoP\001Z>cloud.google.com/go/d" + + "atastream/apiv1/datastreampb;datastreamp" + + "b\252\002\032Google.Cloud.Datastream.V1\312\002\032Google\\" + + "Cloud\\Datastream\\V1\352\002\035Google::Cloud::Dat" + + "astream::V1\352AO\n\037compute.googleapis.com/N" + + "etworks\022,projects/{project}/global/netwo" + + "rks/{network}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor, + new java.lang.String[] { "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", }); + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor = + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor, + new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, + new java.lang.String[] { "Hostname", "Port", "Username", "Password", "Database", }); + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, + new java.lang.String[] { "Bucket", "RootPath", }); + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, + new java.lang.String[] { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, + new java.lang.String[] { "Vpc", "Subnet", }); + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Error", "VpcPeeringConfig", }); + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, + new java.lang.String[] { "PrivateConnection", }); + internal_static_google_cloud_datastream_v1_Route_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Route_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "DestinationAddress", "DestinationPort", }); + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Route_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, + new java.lang.String[] { "ClientKey", "ClientKeySet", "ClientCertificate", "ClientCertificateSet", "CaCertificate", "CaCertificateSet", }); + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "OracleProfile", "GcsProfile", "MysqlProfile", "BigqueryProfile", "PostgresqlProfile", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", "Profile", "Connectivity", }); + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, + new java.lang.String[] { "Column", "DataType", "Length", "Precision", "Scale", "Encoding", "PrimaryKey", "Nullable", "OrdinalPosition", }); + internal_static_google_cloud_datastream_v1_OracleTable_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleTable_descriptor, + new java.lang.String[] { "Table", "OracleColumns", }); + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, + new java.lang.String[] { "Schema", "OracleTables", }); + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, + new java.lang.String[] { "OracleSchemas", }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, + new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", "MaxConcurrentBackfillTasks", "DropLargeObjects", "StreamLargeObjects", "LargeObjectsHandling", }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, + new java.lang.String[] { "Column", "DataType", "Length", "Precision", "Scale", "PrimaryKey", "Nullable", "OrdinalPosition", }); + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, + new java.lang.String[] { "Table", "PostgresqlColumns", }); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, + new java.lang.String[] { "Schema", "PostgresqlTables", }); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, + new java.lang.String[] { "PostgresqlSchemas", }); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, + new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "ReplicationSlot", "Publication", "MaxConcurrentBackfillTasks", }); + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, + new java.lang.String[] { "Column", "DataType", "Length", "Collation", "PrimaryKey", "Nullable", "OrdinalPosition", }); + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, + new java.lang.String[] { "Table", "MysqlColumns", }); + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, + new java.lang.String[] { "Database", "MysqlTables", }); + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, + new java.lang.String[] { "MysqlDatabases", }); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, + new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", "MaxConcurrentBackfillTasks", }); + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, + new java.lang.String[] { "SourceConnectionProfile", "OracleSourceConfig", "MysqlSourceConfig", "PostgresqlSourceConfig", "SourceStreamConfig", }); + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, + new java.lang.String[] { "SchemaFileFormat", "Compression", }); + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, + new java.lang.String[] { "Path", "FileRotationMb", "FileRotationInterval", "AvroFileFormat", "JsonFileFormat", "FileFormat", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, + new java.lang.String[] { "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, + new java.lang.String[] { "DatasetId", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, + new java.lang.String[] { "DatasetTemplate", }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, + new java.lang.String[] { "Location", "DatasetIdPrefix", "KmsKeyName", }); + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, + new java.lang.String[] { "DestinationConnectionProfile", "GcsDestinationConfig", "BigqueryDestinationConfig", "DestinationStreamConfig", }); + internal_static_google_cloud_datastream_v1_Stream_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "SourceConfig", "DestinationConfig", "State", "BackfillAll", "BackfillNone", "Errors", "CustomerManagedEncryptionKey", "BackfillStrategy", "CustomerManagedEncryptionKey", }); + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, + new java.lang.String[] { "OracleExcludedObjects", "MysqlExcludedObjects", "PostgresqlExcludedObjects", "ExcludedObjects", }); + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_StreamObject_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StreamObject_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "DisplayName", "Errors", "BackfillJob", "SourceObject", }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, + new java.lang.String[] { "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor, + new java.lang.String[] { "Schema", "Table", }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, + new java.lang.String[] { "Schema", "Table", }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, + new java.lang.String[] { "Database", "Table", }); + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, + new java.lang.String[] { "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", }); + internal_static_google_cloud_datastream_v1_Error_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Error_descriptor, + new java.lang.String[] { "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", }); + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Error_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, + new java.lang.String[] { "Validations", }); + internal_static_google_cloud_datastream_v1_Validation_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Validation_descriptor, + new java.lang.String[] { "Description", "State", "Message", "Code", }); + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, + new java.lang.String[] { "Message", "Level", "Metadata", "Code", }); + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor = + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java index 17003c315d95..664865f1cd0e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for deleting a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -45,45 +26,38 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -155,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -179,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -196,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -238,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other = - (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other = (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -269,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteConnectionProfileRequest) com.google.cloud.datastream.v1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -409,14 +371,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance(); } @@ -431,17 +392,13 @@ public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = - new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -455,39 +412,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -495,9 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -534,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -562,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -591,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -615,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -657,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -683,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -700,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -715,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -732,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -747,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -764,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -795,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -805,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -822,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -848,13 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.DeleteConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(); } @@ -863,27 +774,27 @@ public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -898,4 +809,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java index c1def32dfeb7..fb6fe83c7818 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteConnectionProfileRequestOrBuilder - extends +public interface DeleteConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java index 80c1c348590d..0d5c90a85c50 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request to delete a private connection.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeletePrivateConnectionRequest} */ -public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeletePrivateConnectionRequest) DeletePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePrivateConnectionRequest.newBuilder() to construct. - private DeletePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePrivateConnectionRequest() { name_ = ""; requestId_ = ""; @@ -45,45 +26,38 @@ private DeletePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -125,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -155,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -179,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -198,15 +166,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** - * - * *
-   * Optional. If set to true, any child routes that belong to this PrivateConnection will
-   * also be deleted.
+   * Optional. If set to true, any child routes that belong to this
+   * PrivateConnection will also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -215,7 +180,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,7 +191,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,7 +218,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,17 +229,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeletePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other = - (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other = (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,143 +258,137 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to delete a private connection.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeletePrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeletePrivateConnectionRequest) com.google.cloud.datastream.v1.DeletePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -438,14 +400,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance(); } @@ -460,17 +421,13 @@ public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = - new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -487,39 +444,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -527,9 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other) { - if (other - == com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -569,31 +523,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - force_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,27 +553,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -632,23 +577,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -656,39 +598,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -698,23 +629,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -724,8 +649,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -741,13 +664,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -756,8 +679,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -773,14 +694,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -788,8 +710,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -805,22 +725,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -836,7 +752,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -846,8 +761,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -863,14 +776,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; @@ -878,17 +789,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
-     * Optional. If set to true, any child routes that belong to this PrivateConnection will
-     * also be deleted.
+     * Optional. If set to true, any child routes that belong to this
+     * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -896,35 +804,29 @@ public boolean getForce() { return force_; } /** - * - * *
-     * Optional. If set to true, any child routes that belong to this PrivateConnection will
-     * also be deleted.
+     * Optional. If set to true, any child routes that belong to this
+     * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Optional. If set to true, any child routes that belong to this PrivateConnection will
-     * also be deleted.
+     * Optional. If set to true, any child routes that belong to this
+     * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -933,9 +835,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -945,13 +847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeletePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeletePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1.DeletePrivateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.DeletePrivateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(); } @@ -960,27 +861,27 @@ public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,4 +896,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java index f0b90236d297..5b3dd2fe7bb7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeletePrivateConnectionRequestOrBuilder - extends +public interface DeletePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeletePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,21 +62,18 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
-   * Optional. If set to true, any child routes that belong to this PrivateConnection will
-   * also be deleted.
+   * Optional. If set to true, any child routes that belong to this
+   * PrivateConnection will also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java index 99a2035459be..2e245525070b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Route deletion request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteRouteRequest} */ -public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteRouteRequest) DeleteRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRouteRequest.newBuilder() to construct. private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRouteRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteRouteRequest.class, - com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteRouteRequest.class, com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteRouteRequest other = - (com.google.cloud.datastream.v1.DeleteRouteRequest) obj; + com.google.cloud.datastream.v1.DeleteRouteRequest other = (com.google.cloud.datastream.v1.DeleteRouteRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,135 +238,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Route deletion request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteRouteRequest) com.google.cloud.datastream.v1.DeleteRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteRouteRequest.class, - com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteRouteRequest.class, com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override @@ -428,11 +392,8 @@ public com.google.cloud.datastream.v1.DeleteRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteRouteRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteRouteRequest result = - new com.google.cloud.datastream.v1.DeleteRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DeleteRouteRequest result = new com.google.cloud.datastream.v1.DeleteRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -451,39 +412,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeleteRouteRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -491,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteRouteRequest other) { - if (other == com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -529,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -586,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -610,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -652,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -678,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -695,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -710,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -727,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -742,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -759,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -790,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -800,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -817,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -843,12 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteRouteRequest) private static final com.google.cloud.datastream.v1.DeleteRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteRouteRequest(); } @@ -857,27 +774,27 @@ public static com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,4 +809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java index 15ac9157fc49..eb3c2612d62f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteRouteRequestOrBuilder - extends +public interface DeleteRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java index 51e2c894a6cd..1ecc84efd6ca 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for deleting a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteStreamRequest} */ -public final class DeleteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteStreamRequest) DeleteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteStreamRequest.newBuilder() to construct. private DeleteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteStreamRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteStreamRequest.class, - com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteStreamRequest.class, com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteStreamRequest other = - (com.google.cloud.datastream.v1.DeleteStreamRequest) obj; + com.google.cloud.datastream.v1.DeleteStreamRequest other = (com.google.cloud.datastream.v1.DeleteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,135 +238,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for deleting a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteStreamRequest) com.google.cloud.datastream.v1.DeleteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteStreamRequest.class, - com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteStreamRequest.class, com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -407,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override @@ -428,11 +392,8 @@ public com.google.cloud.datastream.v1.DeleteStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteStreamRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteStreamRequest result = - new com.google.cloud.datastream.v1.DeleteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DeleteStreamRequest result = new com.google.cloud.datastream.v1.DeleteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -451,39 +412,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeleteStreamRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -491,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteStreamRequest other) { - if (other == com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -529,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -557,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -586,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -610,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -652,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -678,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -695,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -710,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -727,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -742,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -759,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -790,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -800,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -817,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -843,12 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteStreamRequest) private static final com.google.cloud.datastream.v1.DeleteStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteStreamRequest(); } @@ -857,27 +774,27 @@ public static com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -892,4 +809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java index 27aaca5e9146..fa3991afb723 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteStreamRequestOrBuilder - extends +public interface DeleteStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java index 9e6af6d51b19..75c2d1213401 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * The configuration of the stream destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DestinationConfig} */ -public final class DestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DestinationConfig) DestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DestinationConfig.newBuilder() to construct. private DestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DestinationConfig() { destinationConnectionProfile_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DestinationConfig.class, - com.google.cloud.datastream.v1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1.DestinationConfig.class, com.google.cloud.datastream.v1.DestinationConfig.Builder.class); } private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - public enum DestinationStreamConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), BIGQUERY_DESTINATION_CONFIG(101), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; - private DestinationStreamConfigCase(int value) { this.value = value; } @@ -94,42 +72,33 @@ public static DestinationStreamConfigCase valueOf(int value) { public static DestinationStreamConfigCase forNumber(int value) { switch (value) { - case 100: - return GCS_DESTINATION_CONFIG; - case 101: - return BIGQUERY_DESTINATION_CONFIG; - case 0: - return DESTINATIONSTREAMCONFIG_NOT_SET; - default: - return null; + case 100: return GCS_DESTINATION_CONFIG; + case 101: return BIGQUERY_DESTINATION_CONFIG; + case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationStreamConfigCase getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); + public DestinationStreamConfigCase + getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber( + destinationStreamConfigCase_); } public static final int DESTINATION_CONNECTION_PROFILE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object destinationConnectionProfile_ = ""; /** - * - * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destinationConnectionProfile. */ @java.lang.Override @@ -138,32 +107,30 @@ public java.lang.String getDestinationConnectionProfile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfile_ = s; return s; } } /** - * - * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destinationConnectionProfile. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileBytes() { java.lang.Object ref = destinationConnectionProfile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfile_ = b; return b; } else { @@ -173,14 +140,11 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { public static final int GCS_DESTINATION_CONFIG_FIELD_NUMBER = 100; /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -188,26 +152,21 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConfig() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
@@ -215,25 +174,20 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER = 101; /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return Whether the bigqueryDestinationConfig field is set. */ @java.lang.Override @@ -241,45 +195,36 @@ public boolean hasBigqueryDestinationConfig() { return destinationStreamConfigCase_ == 101; } /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return The bigqueryDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder - getBigqueryDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,17 +236,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationConnectionProfile_); } if (destinationStreamConfigCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } if (destinationStreamConfigCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + output.writeMessage(101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); } getUnknownFields().writeTo(output); } @@ -313,20 +257,15 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfile_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 1, destinationConnectionProfile_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationConnectionProfile_); } if (destinationStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } if (destinationStreamConfigCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, - (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -336,25 +275,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DestinationConfig other = - (com.google.cloud.datastream.v1.DestinationConfig) obj; + com.google.cloud.datastream.v1.DestinationConfig other = (com.google.cloud.datastream.v1.DestinationConfig) obj; - if (!getDestinationConnectionProfile().equals(other.getDestinationConnectionProfile())) - return false; - if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) - return false; + if (!getDestinationConnectionProfile() + .equals(other.getDestinationConnectionProfile())) return false; + if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) return false; switch (destinationStreamConfigCase_) { case 100: - if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; + if (!getGcsDestinationConfig() + .equals(other.getGcsDestinationConfig())) return false; break; case 101: - if (!getBigqueryDestinationConfig().equals(other.getBigqueryDestinationConfig())) - return false; + if (!getBigqueryDestinationConfig() + .equals(other.getBigqueryDestinationConfig())) return false; break; case 0: default: @@ -389,136 +327,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the stream destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DestinationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DestinationConfig) com.google.cloud.datastream.v1.DestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DestinationConfig.class, - com.google.cloud.datastream.v1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1.DestinationConfig.class, com.google.cloud.datastream.v1.DestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.DestinationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -536,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override @@ -557,11 +489,8 @@ public com.google.cloud.datastream.v1.DestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfig buildPartial() { - com.google.cloud.datastream.v1.DestinationConfig result = - new com.google.cloud.datastream.v1.DestinationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DestinationConfig result = new com.google.cloud.datastream.v1.DestinationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -577,10 +506,12 @@ private void buildPartial0(com.google.cloud.datastream.v1.DestinationConfig resu private void buildPartialOneofs(com.google.cloud.datastream.v1.DestinationConfig result) { result.destinationStreamConfigCase_ = destinationStreamConfigCase_; result.destinationStreamConfig_ = this.destinationStreamConfig_; - if (destinationStreamConfigCase_ == 100 && gcsDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 100 && + gcsDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } - if (destinationStreamConfigCase_ == 101 && bigqueryDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 101 && + bigqueryDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = bigqueryDestinationConfigBuilder_.build(); } } @@ -589,39 +520,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.DestinationConfig public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.DestinationConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.DestinationConfig)other); } else { super.mergeFrom(other); return this; @@ -629,28 +559,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DestinationConfig other) { - if (other == com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) return this; if (!other.getDestinationConnectionProfile().isEmpty()) { destinationConnectionProfile_ = other.destinationConnectionProfile_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDestinationStreamConfigCase()) { - case GCS_DESTINATION_CONFIG: - { - mergeGcsDestinationConfig(other.getGcsDestinationConfig()); - break; - } - case BIGQUERY_DESTINATION_CONFIG: - { - mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); - break; - } - case DESTINATIONSTREAMCONFIG_NOT_SET: - { - break; - } + case GCS_DESTINATION_CONFIG: { + mergeGcsDestinationConfig(other.getGcsDestinationConfig()); + break; + } + case BIGQUERY_DESTINATION_CONFIG: { + mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); + break; + } + case DESTINATIONSTREAMCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -678,33 +604,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - destinationConnectionProfile_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: - { - input.readMessage( - getGcsDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); - destinationStreamConfigCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage( - getBigqueryDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); - destinationStreamConfigCase_ = 101; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + destinationConnectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: { + input.readMessage( + getGcsDestinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + destinationStreamConfigCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getBigqueryDestinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + destinationStreamConfigCase_ = 101; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -714,12 +638,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - - public DestinationStreamConfigCase getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); + public DestinationStreamConfigCase + getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber( + destinationStreamConfigCase_); } public Builder clearDestinationStreamConfig() { @@ -733,23 +657,19 @@ public Builder clearDestinationStreamConfig() { private java.lang.Object destinationConnectionProfile_ = ""; /** - * - * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destinationConnectionProfile. */ public java.lang.String getDestinationConnectionProfile() { java.lang.Object ref = destinationConnectionProfile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfile_ = s; return s; @@ -758,24 +678,21 @@ public java.lang.String getDestinationConnectionProfile() { } } /** - * - * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destinationConnectionProfile. */ - public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileBytes() { java.lang.Object ref = destinationConnectionProfile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfile_ = b; return b; } else { @@ -783,41 +700,30 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { } } /** - * - * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The destinationConnectionProfile to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationConnectionProfile( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationConnectionProfile_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearDestinationConnectionProfile() { @@ -827,24 +733,18 @@ public Builder clearDestinationConnectionProfile() { return this; } /** - * - * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for destinationConnectionProfile to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationConnectionProfileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationConnectionProfile_ = value; bitField0_ |= 0x00000001; @@ -853,19 +753,13 @@ public Builder setDestinationConnectionProfileBytes(com.google.protobuf.ByteStri } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> - gcsDestinationConfigBuilder_; + com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> gcsDestinationConfigBuilder_; /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -873,14 +767,11 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return The gcsDestinationConfig. */ @java.lang.Override @@ -898,16 +789,13 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf } } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder setGcsDestinationConfig( - com.google.cloud.datastream.v1.GcsDestinationConfig value) { + public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -921,8 +809,6 @@ public Builder setGcsDestinationConfig( return this; } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -941,26 +827,18 @@ public Builder setGcsDestinationConfig( return this; } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder mergeGcsDestinationConfig( - com.google.cloud.datastream.v1.GcsDestinationConfig value) { + public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 100 - && destinationStreamConfig_ - != com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder( - (com.google.cloud.datastream.v1.GcsDestinationConfig) - destinationStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (destinationStreamConfigCase_ == 100 && + destinationStreamConfig_ != com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder((com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_) + .mergeFrom(value).buildPartial(); } else { destinationStreamConfig_ = value; } @@ -976,8 +854,6 @@ public Builder mergeGcsDestinationConfig( return this; } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -1001,21 +877,16 @@ public Builder clearGcsDestinationConfig() { return this; } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public com.google.cloud.datastream.v1.GcsDestinationConfig.Builder - getGcsDestinationConfigBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfig.Builder getGcsDestinationConfigBuilder() { return getGcsDestinationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -1023,8 +894,7 @@ public Builder clearGcsDestinationConfig() { * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 100) && (gcsDestinationConfigBuilder_ != null)) { return gcsDestinationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1035,8 +905,6 @@ public Builder clearGcsDestinationConfig() { } } /** - * - * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -1044,20 +912,14 @@ public Builder clearGcsDestinationConfig() { * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> + com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> getGcsDestinationConfigFieldBuilder() { if (gcsDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 100)) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } - gcsDestinationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder>( + gcsDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder>( (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_, getParentForChildren(), isClean()); @@ -1069,21 +931,13 @@ public Builder clearGcsDestinationConfig() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> - bigqueryDestinationConfigBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> bigqueryDestinationConfigBuilder_; /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return Whether the bigqueryDestinationConfig field is set. */ @java.lang.Override @@ -1091,24 +945,18 @@ public boolean hasBigqueryDestinationConfig() { return destinationStreamConfigCase_ == 101; } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return The bigqueryDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { if (bigqueryDestinationConfigBuilder_ == null) { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) - destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } else { @@ -1119,18 +967,13 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDesti } } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ - public Builder setBigqueryDestinationConfig( - com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + public Builder setBigqueryDestinationConfig(com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { if (bigqueryDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1144,15 +987,11 @@ public Builder setBigqueryDestinationConfig( return this; } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ public Builder setBigqueryDestinationConfig( com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder builderForValue) { @@ -1166,28 +1005,18 @@ public Builder setBigqueryDestinationConfig( return this; } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ - public Builder mergeBigqueryDestinationConfig( - com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + public Builder mergeBigqueryDestinationConfig(com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { if (bigqueryDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 101 - && destinationStreamConfig_ - != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig) - destinationStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (destinationStreamConfigCase_ == 101 && + destinationStreamConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_) + .mergeFrom(value).buildPartial(); } else { destinationStreamConfig_ = value; } @@ -1203,15 +1032,11 @@ public Builder mergeBigqueryDestinationConfig( return this; } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ public Builder clearBigqueryDestinationConfig() { if (bigqueryDestinationConfigBuilder_ == null) { @@ -1230,70 +1055,49 @@ public Builder clearBigqueryDestinationConfig() { return this; } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder - getBigqueryDestinationConfigBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder getBigqueryDestinationConfigBuilder() { return getBigqueryDestinationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder - getBigqueryDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 101) && (bigqueryDestinationConfigBuilder_ != null)) { return bigqueryDestinationConfigBuilder_.getMessageOrBuilder(); } else { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) - destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } } /** - * - * *
      * BigQuery destination configuration.
      * 
* - * - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> getBigqueryDestinationConfigFieldBuilder() { if (bigqueryDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 101)) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } - bigqueryDestinationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, - com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( + bigqueryDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_, getParentForChildren(), isClean()); @@ -1303,9 +1107,9 @@ public Builder clearBigqueryDestinationConfig() { onChanged(); return bigqueryDestinationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DestinationConfig) private static final com.google.cloud.datastream.v1.DestinationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DestinationConfig(); } @@ -1329,27 +1133,27 @@ public static com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1364,4 +1168,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java index 6c9dd4b63ef5..4b7ec8c82c71 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface DestinationConfigOrBuilder - extends +public interface DestinationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DestinationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The destinationConnectionProfile. */ java.lang.String getDestinationConnectionProfile(); /** - * - * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for destinationConnectionProfile. */ - com.google.protobuf.ByteString getDestinationConnectionProfileBytes(); + com.google.protobuf.ByteString + getDestinationConnectionProfileBytes(); /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return Whether the gcsDestinationConfig field is set. */ boolean hasGcsDestinationConfig(); /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; - * * @return The gcsDestinationConfig. */ com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConfig(); /** - * - * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
@@ -90,44 +57,31 @@ public interface DestinationConfigOrBuilder com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return Whether the bigqueryDestinationConfig field is set. */ boolean hasBigqueryDestinationConfig(); /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; * @return The bigqueryDestinationConfig. */ com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig(); /** - * - * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; - * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; */ - com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder - getBigqueryDestinationConfigOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder(); - public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase - getDestinationStreamConfigCase(); + public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index 07777bb85d44..aee864c71427 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -1,85 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for 'discover' ConnectionProfile request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ -public final class DiscoverConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiscoverConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) DiscoverConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileRequest.newBuilder() to construct. - private DiscoverConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiscoverConnectionProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiscoverConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_PROFILE(200), CONNECTION_PROFILE_NAME(201), TARGET_NOT_SET(0); private final int value; - private TargetCase(int value) { this.value = value; } @@ -95,38 +72,32 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 200: - return CONNECTION_PROFILE; - case 201: - return CONNECTION_PROFILE_NAME; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 200: return CONNECTION_PROFILE; + case 201: return CONNECTION_PROFILE_NAME; + case 0: return TARGET_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; - public enum HierarchyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FULL_HIERARCHY(3), HIERARCHY_DEPTH(4), HIERARCHY_NOT_SET(0); private final int value; - private HierarchyCase(int value) { this.value = value; } @@ -142,39 +113,33 @@ public static HierarchyCase valueOf(int value) { public static HierarchyCase forNumber(int value) { switch (value) { - case 3: - return FULL_HIERARCHY; - case 4: - return HIERARCHY_DEPTH; - case 0: - return HIERARCHY_NOT_SET; - default: - return null; + case 3: return FULL_HIERARCHY; + case 4: return HIERARCHY_DEPTH; + case 0: return HIERARCHY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public HierarchyCase getHierarchyCase() { - return HierarchyCase.forNumber(hierarchyCase_); + public HierarchyCase + getHierarchyCase() { + return HierarchyCase.forNumber( + hierarchyCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public enum DataObjectCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; - private DataObjectCase(int value) { this.value = value; } @@ -190,44 +155,34 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_RDBMS; - case 101: - return MYSQL_RDBMS; - case 102: - return POSTGRESQL_RDBMS; - case 0: - return DATAOBJECT_NOT_SET; - default: - return null; + case 100: return ORACLE_RDBMS; + case 101: return MYSQL_RDBMS; + case 102: return POSTGRESQL_RDBMS; + case 0: return DATAOBJECT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent resource of the connection profile type. Must be in the
-   * format `projects/*/locations/*`.
+   * Required. The parent resource of the connection profile type. Must be in
+   * the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -236,32 +191,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The parent resource of the connection profile type. Must be in the
-   * format `projects/*/locations/*`.
+   * Required. The parent resource of the connection profile type. Must be in
+   * the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -271,14 +224,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -286,26 +236,21 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
@@ -315,35 +260,29 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { @@ -354,7 +293,8 @@ public java.lang.String getConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -363,24 +303,23 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -392,15 +331,12 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { public static final int FULL_HIERARCHY_FIELD_NUMBER = 3; /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; - * * @return Whether the fullHierarchy field is set. */ @java.lang.Override @@ -408,15 +344,12 @@ public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; - * * @return The fullHierarchy. */ @java.lang.Override @@ -429,14 +362,11 @@ public boolean getFullHierarchy() { public static final int HIERARCHY_DEPTH_FIELD_NUMBER = 4; /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; - * * @return Whether the hierarchyDepth field is set. */ @java.lang.Override @@ -444,14 +374,11 @@ public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; - * * @return The hierarchyDepth. */ @java.lang.Override @@ -464,14 +391,11 @@ public int getHierarchyDepth() { public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -479,26 +403,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -508,21 +427,18 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -530,26 +446,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -559,21 +470,18 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -581,26 +489,21 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -610,13 +513,12 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -628,15 +530,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (hierarchyCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) hierarchy_)); + output.writeBool( + 3, (boolean)((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { - output.writeInt32(4, (int) ((java.lang.Integer) hierarchy_)); + output.writeInt32( + 4, (int)((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); @@ -666,34 +571,30 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (hierarchyCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) hierarchy_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 4, (int) ((java.lang.Integer) hierarchy_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 4, (int)((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (dataObjectCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } if (targetCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); @@ -706,22 +607,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other = - (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; break; case 201: - if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; + if (!getConnectionProfileName() + .equals(other.getConnectionProfileName())) return false; break; case 0: default: @@ -729,10 +632,12 @@ public boolean equals(final java.lang.Object obj) { if (!getHierarchyCase().equals(other.getHierarchyCase())) return false; switch (hierarchyCase_) { case 3: - if (getFullHierarchy() != other.getFullHierarchy()) return false; + if (getFullHierarchy() + != other.getFullHierarchy()) return false; break; case 4: - if (getHierarchyDepth() != other.getHierarchyDepth()) return false; + if (getHierarchyDepth() + != other.getHierarchyDepth()) return false; break; case 0: default: @@ -740,13 +645,16 @@ public boolean equals(final java.lang.Object obj) { if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 102: - if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + if (!getPostgresqlRdbms() + .equals(other.getPostgresqlRdbms())) return false; break; case 0: default: @@ -779,7 +687,8 @@ public int hashCode() { switch (hierarchyCase_) { case 3: hash = (37 * hash) + FULL_HIERARCHY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullHierarchy()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullHierarchy()); break; case 4: hash = (37 * hash) + HIERARCHY_DEPTH_FIELD_NUMBER; @@ -810,136 +719,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for 'discover' ConnectionProfile request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) com.google.cloud.datastream.v1.DiscoverConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -967,14 +869,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance(); } @@ -989,42 +890,41 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = - new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 200 && connectionProfileBuilder_ != null) { + if (targetCase_ == 200 && + connectionProfileBuilder_ != null) { result.target_ = connectionProfileBuilder_.build(); } result.hierarchyCase_ = hierarchyCase_; result.hierarchy_ = this.hierarchy_; result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && + oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && + mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } - if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 102 && + postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } } @@ -1033,109 +933,95 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case CONNECTION_PROFILE: - { - mergeConnectionProfile(other.getConnectionProfile()); - break; - } - case CONNECTION_PROFILE_NAME: - { - targetCase_ = 201; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: - { - break; - } + case CONNECTION_PROFILE: { + mergeConnectionProfile(other.getConnectionProfile()); + break; + } + case CONNECTION_PROFILE_NAME: { + targetCase_ = 201; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: { + break; + } } switch (other.getHierarchyCase()) { - case FULL_HIERARCHY: - { - setFullHierarchy(other.getFullHierarchy()); - break; - } - case HIERARCHY_DEPTH: - { - setHierarchyDepth(other.getHierarchyDepth()); - break; - } - case HIERARCHY_NOT_SET: - { - break; - } + case FULL_HIERARCHY: { + setFullHierarchy(other.getFullHierarchy()); + break; + } + case HIERARCHY_DEPTH: { + setHierarchyDepth(other.getHierarchyDepth()); + break; + } + case HIERARCHY_NOT_SET: { + break; + } } switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: - { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: - { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case POSTGRESQL_RDBMS: - { - mergePostgresqlRdbms(other.getPostgresqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: - { - break; - } + case ORACLE_RDBMS: { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case POSTGRESQL_RDBMS: { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1163,63 +1049,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - hierarchy_ = input.readBool(); - hierarchyCase_ = 3; - break; - } // case 24 - case 32: - { - hierarchy_ = input.readInt32(); - hierarchyCase_ = 4; - break; - } // case 32 - case 802: - { - input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage(getPostgresqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 102; - break; - } // case 818 - case 1602: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 200; - break; - } // case 1602 - case 1610: - { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } // case 1610 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + hierarchy_ = input.readBool(); + hierarchyCase_ = 3; + break; + } // case 24 + case 32: { + hierarchy_ = input.readInt32(); + hierarchyCase_ = 4; + break; + } // case 32 + case 802: { + input.readMessage( + getOracleRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getPostgresqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 102; + break; + } // case 818 + case 1602: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 200; + break; + } // case 1602 + case 1610: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } // case 1610 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1229,12 +1113,12 @@ public Builder mergeFrom( } // finally return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -1246,9 +1130,10 @@ public Builder clearTarget() { private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; - - public HierarchyCase getHierarchyCase() { - return HierarchyCase.forNumber(hierarchyCase_); + public HierarchyCase + getHierarchyCase() { + return HierarchyCase.forNumber( + hierarchyCase_); } public Builder clearHierarchy() { @@ -1260,9 +1145,10 @@ public Builder clearHierarchy() { private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public Builder clearDataObject() { @@ -1276,23 +1162,19 @@ public Builder clearDataObject() { private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent resource of the connection profile type. Must be in the
-     * format `projects/*/locations/*`.
+     * Required. The parent resource of the connection profile type. Must be in
+     * the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1301,24 +1183,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent resource of the connection profile type. Must be in the
-     * format `projects/*/locations/*`.
+     * Required. The parent resource of the connection profile type. Must be in
+     * the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1326,41 +1205,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent resource of the connection profile type. Must be in the
-     * format `projects/*/locations/*`.
+     * Required. The parent resource of the connection profile type. Must be in
+     * the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent resource of the connection profile type. Must be in the
-     * format `projects/*/locations/*`.
+     * Required. The parent resource of the connection profile type. Must be in
+     * the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1370,24 +1238,18 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent resource of the connection profile type. Must be in the
-     * format `projects/*/locations/*`.
+     * Required. The parent resource of the connection profile type. Must be in
+     * the format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1396,19 +1258,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -1416,14 +1272,11 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override @@ -1441,8 +1294,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { } } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1463,8 +1314,6 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1483,8 +1332,6 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1493,13 +1340,10 @@ public Builder setConnectionProfile( */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (targetCase_ == 200 - && target_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { - target_ = - com.google.cloud.datastream.v1.ConnectionProfile.newBuilder( - (com.google.cloud.datastream.v1.ConnectionProfile) target_) - .mergeFrom(value) - .buildPartial(); + if (targetCase_ == 200 && + target_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + target_ = com.google.cloud.datastream.v1.ConnectionProfile.newBuilder((com.google.cloud.datastream.v1.ConnectionProfile) target_) + .mergeFrom(value).buildPartial(); } else { target_ = value; } @@ -1515,8 +1359,6 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1540,8 +1382,6 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1552,8 +1392,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1561,8 +1399,7 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { @@ -1573,8 +1410,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro } } /** - * - * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1582,19 +1417,14 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1.ConnectionProfile) target_, getParentForChildren(), isClean()); @@ -1606,14 +1436,11 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1621,14 +1448,11 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ @java.lang.Override @@ -1638,7 +1462,8 @@ public java.lang.String getConnectionProfileName() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -1649,25 +1474,24 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -1677,35 +1501,28 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { } } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @param value The connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetCase_ = 201; target_ = value; onChanged(); return this; } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @return This builder for chaining. */ public Builder clearConnectionProfileName() { @@ -1717,21 +1534,17 @@ public Builder clearConnectionProfileName() { return this; } /** - * - * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; - * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; @@ -1740,30 +1553,24 @@ public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString valu } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; - * * @return Whether the fullHierarchy field is set. */ public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; - * * @return The fullHierarchy. */ public boolean getFullHierarchy() { @@ -1773,35 +1580,29 @@ public boolean getFullHierarchy() { return false; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; - * * @param value The fullHierarchy to set. * @return This builder for chaining. */ public Builder setFullHierarchy(boolean value) { - + hierarchyCase_ = 3; hierarchy_ = value; onChanged(); return this; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; - * * @return This builder for chaining. */ public Builder clearFullHierarchy() { @@ -1814,28 +1615,22 @@ public Builder clearFullHierarchy() { } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; - * * @return Whether the hierarchyDepth field is set. */ public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; - * * @return The hierarchyDepth. */ public int getHierarchyDepth() { @@ -1845,33 +1640,27 @@ public int getHierarchyDepth() { return 0; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; - * * @param value The hierarchyDepth to set. * @return This builder for chaining. */ public Builder setHierarchyDepth(int value) { - + hierarchyCase_ = 4; hierarchy_ = value; onChanged(); return this; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; - * * @return This builder for chaining. */ public Builder clearHierarchyDepth() { @@ -1884,19 +1673,13 @@ public Builder clearHierarchyDepth() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - oracleRdbmsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -1904,14 +1687,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -1929,8 +1709,6 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1951,8 +1729,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1971,8 +1747,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1981,13 +1755,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -2003,8 +1774,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2028,8 +1797,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2040,8 +1807,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2060,8 +1825,6 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2069,19 +1832,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2093,19 +1851,13 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> - mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -2113,14 +1865,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -2138,8 +1887,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2160,8 +1907,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2180,8 +1925,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2190,13 +1933,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -2212,8 +1952,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2237,8 +1975,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2249,8 +1985,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2269,8 +2003,6 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2278,19 +2010,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2302,19 +2029,13 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> - postgresqlRdbmsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlRdbmsBuilder_; /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -2322,14 +2043,11 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ @java.lang.Override @@ -2347,8 +2065,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2369,8 +2085,6 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2389,8 +2103,6 @@ public Builder setPostgresqlRdbms( return this; } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2399,13 +2111,10 @@ public Builder setPostgresqlRdbms( */ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 102 - && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 102 && + dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -2421,8 +2130,6 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2446,8 +2153,6 @@ public Builder clearPostgresqlRdbms() { return this; } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2458,8 +2163,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2478,8 +2181,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** - * - * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2487,19 +2188,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlRdbmsFieldBuilder() { if (postgresqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 102)) { dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2509,9 +2205,9 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm onChanged(); return postgresqlRdbmsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2521,43 +2217,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2569,8 +2263,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 78% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index d8e5477f2370..8406f2118606 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DiscoverConnectionProfileRequestOrBuilder - extends +public interface DiscoverConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The parent resource of the connection profile type. Must be in the
-   * format `projects/*/locations/*`.
+   * Required. The parent resource of the connection profile type. Must be in
+   * the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * Required. The parent resource of the connection profile type. Must be in the
-   * format `projects/*/locations/*`.
+   * Required. The parent resource of the connection profile type. Must be in
+   * the format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * An ad-hoc connection profile configuration.
    * 
@@ -90,121 +57,93 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ boolean hasConnectionProfileName(); /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ java.lang.String getConnectionProfileName(); /** - * - * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - com.google.protobuf.ByteString getConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getConnectionProfileNameBytes(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; - * * @return Whether the fullHierarchy field is set. */ boolean hasFullHierarchy(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; - * * @return The fullHierarchy. */ boolean getFullHierarchy(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; - * * @return Whether the hierarchyDepth field is set. */ boolean hasHierarchyDepth(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; - * * @return The hierarchyDepth. */ int getHierarchyDepth(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -214,32 +153,24 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -249,32 +180,24 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ boolean hasPostgresqlRdbms(); /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); /** - * - * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -285,9 +208,7 @@ public interface DiscoverConnectionProfileRequestOrBuilder public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase - getHierarchyCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase getHierarchyCase(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index ff8fc4601cd7..661666587fa8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response from a discover request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileResponse} */ -public final class DiscoverConnectionProfileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiscoverConnectionProfileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) DiscoverConnectionProfileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileResponse.newBuilder() to construct. - private DiscoverConnectionProfileResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DiscoverConnectionProfileResponse() {} + private DiscoverConnectionProfileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiscoverConnectionProfileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public enum DataObjectCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; - private DataObjectCase(int value) { this.value = value; } @@ -94,38 +72,31 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_RDBMS; - case 101: - return MYSQL_RDBMS; - case 102: - return POSTGRESQL_RDBMS; - case 0: - return DATAOBJECT_NOT_SET; - default: - return null; + case 100: return ORACLE_RDBMS; + case 101: return MYSQL_RDBMS; + case 102: return POSTGRESQL_RDBMS; + case 0: return DATAOBJECT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -133,26 +104,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -162,21 +128,18 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -184,26 +147,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -213,21 +171,18 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -235,26 +190,21 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
@@ -264,13 +214,12 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } @@ -302,19 +252,16 @@ public int getSerializedSize() { size = 0; if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (dataObjectCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -324,24 +271,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other = - (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) obj; + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other = (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) obj; if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 102: - if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; + if (!getPostgresqlRdbms() + .equals(other.getPostgresqlRdbms())) return false; break; case 0: default: @@ -379,136 +328,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response from a discover request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) com.google.cloud.datastream.v1.DiscoverConnectionProfileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -528,14 +470,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance(); } @@ -550,32 +491,30 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse build() @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse buildPartial() { - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = - new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && + oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && + mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } - if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 102 && + postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } } @@ -584,70 +523,62 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) { - return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other) { - if (other - == com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other) { + if (other == com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance()) return this; switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: - { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: - { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case POSTGRESQL_RDBMS: - { - mergePostgresqlRdbms(other.getPostgresqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: - { - break; - } + case ORACLE_RDBMS: { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case POSTGRESQL_RDBMS: { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -675,31 +606,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 802: - { - input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage(getPostgresqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 102; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 802: { + input.readMessage( + getOracleRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getPostgresqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 102; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -709,12 +642,12 @@ public Builder mergeFrom( } // finally return this; } - private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public Builder clearDataObject() { @@ -727,19 +660,13 @@ public Builder clearDataObject() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - oracleRdbmsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -747,14 +674,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -772,8 +696,6 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -794,8 +716,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -814,8 +734,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -824,13 +742,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -846,8 +761,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -871,8 +784,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -883,8 +794,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -903,8 +812,6 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -912,19 +819,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -936,19 +838,13 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> - mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -956,14 +852,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -981,8 +874,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1003,8 +894,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1023,8 +912,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1033,13 +920,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -1055,8 +939,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1080,8 +962,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1092,8 +972,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1112,8 +990,6 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1121,19 +997,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1145,19 +1016,13 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> - postgresqlRdbmsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlRdbmsBuilder_; /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -1165,14 +1030,11 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ @java.lang.Override @@ -1190,8 +1052,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1212,8 +1072,6 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1232,8 +1090,6 @@ public Builder setPostgresqlRdbms( return this; } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1242,13 +1098,10 @@ public Builder setPostgresqlRdbms( */ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 102 - && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 102 && + dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -1264,8 +1117,6 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1289,8 +1140,6 @@ public Builder clearPostgresqlRdbms() { return this; } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1301,8 +1150,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1321,8 +1168,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** - * - * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1330,19 +1175,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlRdbmsFieldBuilder() { if (postgresqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 102)) { dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1352,9 +1192,9 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm onChanged(); return postgresqlRdbmsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1364,43 +1204,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) - private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - getDefaultInstance() { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1412,8 +1250,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 75% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index d458039aed95..94817804806c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DiscoverConnectionProfileResponseOrBuilder - extends +public interface DiscoverConnectionProfileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -59,32 +35,24 @@ public interface DiscoverConnectionProfileResponseOrBuilder com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -94,32 +62,24 @@ public interface DiscoverConnectionProfileResponseOrBuilder com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return Whether the postgresqlRdbms field is set. */ boolean hasPostgresqlRdbms(); /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; - * * @return The postgresqlRdbms. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); /** - * - * *
    * Enriched PostgreSQL RDBMS object.
    * 
@@ -128,6 +88,5 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java index 347f37eb47dd..4a0b35f221d7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Represent a user-facing Error.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Error} */ -public final class Error extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { reason_ = ""; errorUuid_ = ""; @@ -45,54 +27,50 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Error.class, - com.google.cloud.datastream.v1.Error.Builder.class); + com.google.cloud.datastream.v1.Error.class, com.google.cloud.datastream.v1.Error.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The reason. */ @java.lang.Override @@ -101,29 +79,29 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -132,19 +110,15 @@ public com.google.protobuf.ByteString getReasonBytes() { } public static final int ERROR_UUID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object errorUuid_ = ""; /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The errorUuid. */ @java.lang.Override @@ -153,30 +127,30 @@ public java.lang.String getErrorUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; } } /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorUuidBytes() { + public com.google.protobuf.ByteString + getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -185,18 +159,14 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { } public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The message. */ @java.lang.Override @@ -205,29 +175,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -238,14 +208,11 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int ERROR_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp errorTime_; /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ @java.lang.Override @@ -253,14 +220,11 @@ public boolean hasErrorTime() { return errorTime_ != null; } /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ @java.lang.Override @@ -268,8 +232,6 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** - * - * *
    * The time when the error occurred.
    * 
@@ -282,34 +244,32 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { } public static final int DETAILS_FIELD_NUMBER = 5; - private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } - public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -317,21 +277,20 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDetails().getMap().containsKey(key); } - /** Use {@link #getDetailsMap()} instead. */ + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -343,8 +302,6 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -352,19 +309,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getDetailsOrDefault( + public /* nullable */ +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional information about the error.
    * 
@@ -372,11 +327,11 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -384,7 +339,6 @@ public java.lang.String getDetailsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +350,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } @@ -409,8 +364,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorTime_ != null) { output.writeMessage(4, getErrorTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDetails(), + DetailsDefaultEntryHolder.defaultEntry, + 5); getUnknownFields().writeTo(output); } @@ -430,17 +389,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (errorTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorTime()); - } - for (java.util.Map.Entry entry : - internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry details__ = - DetailsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, details__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getErrorTime()); + } + for (java.util.Map.Entry entry + : internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry + details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, details__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -450,21 +410,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Error)) { return super.equals(obj); } com.google.cloud.datastream.v1.Error other = (com.google.cloud.datastream.v1.Error) obj; - if (!getReason().equals(other.getReason())) return false; - if (!getErrorUuid().equals(other.getErrorUuid())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getErrorUuid() + .equals(other.getErrorUuid())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (hasErrorTime() != other.hasErrorTime()) return false; if (hasErrorTime()) { - if (!getErrorTime().equals(other.getErrorTime())) return false; + if (!getErrorTime() + .equals(other.getErrorTime())) return false; } - if (!internalGetDetails().equals(other.internalGetDetails())) return false; + if (!internalGetDetails().equals( + other.internalGetDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -495,155 +460,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Error parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Error parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Error parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Error parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.datastream.v1.Error parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Error parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Error parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Error parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Error parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Error parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represent a user-facing Error.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Error} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Error) com.google.cloud.datastream.v1.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Error.class, - com.google.cloud.datastream.v1.Error.Builder.class); + com.google.cloud.datastream.v1.Error.class, com.google.cloud.datastream.v1.Error.Builder.class); } // Construct using com.google.cloud.datastream.v1.Error.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +623,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; } @java.lang.Override @@ -683,9 +645,7 @@ public com.google.cloud.datastream.v1.Error build() { @java.lang.Override public com.google.cloud.datastream.v1.Error buildPartial() { com.google.cloud.datastream.v1.Error result = new com.google.cloud.datastream.v1.Error(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -702,7 +662,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.Error result) { result.message_ = message_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.errorTime_ = errorTimeBuilder_ == null ? errorTime_ : errorTimeBuilder_.build(); + result.errorTime_ = errorTimeBuilder_ == null + ? errorTime_ + : errorTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.details_ = internalGetDetails(); @@ -714,39 +676,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.Error result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Error) { - return mergeFrom((com.google.cloud.datastream.v1.Error) other); + return mergeFrom((com.google.cloud.datastream.v1.Error)other); } else { super.mergeFrom(other); return this; @@ -773,7 +734,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Error other) { if (other.hasErrorTime()) { mergeErrorTime(other.getErrorTime()); } - internalGetMutableDetails().mergeFrom(other.internalGetDetails()); + internalGetMutableDetails().mergeFrom( + other.internalGetDetails()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -801,49 +763,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - errorUuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getErrorTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry details__ = - input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableDetails() - .getMutableMap() - .put(details__.getKey(), details__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + errorUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getErrorTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + details__ = input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDetails().getMutableMap().put( + details__.getKey(), details__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -853,25 +809,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object reason_ = ""; /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -880,21 +833,20 @@ public java.lang.String getReason() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -902,35 +854,28 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -940,21 +885,17 @@ public Builder clearReason() { return this; } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000001; @@ -964,21 +905,19 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorUuid_ = ""; /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The errorUuid. */ public java.lang.String getErrorUuid() { java.lang.Object ref = errorUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; @@ -987,22 +926,21 @@ public java.lang.String getErrorUuid() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - public com.google.protobuf.ByteString getErrorUuidBytes() { + public com.google.protobuf.ByteString + getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -1010,37 +948,30 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @param value The errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorUuid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorUuid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return This builder for chaining. */ public Builder clearErrorUuid() { @@ -1050,22 +981,18 @@ public Builder clearErrorUuid() { return this; } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorUuid_ = value; bitField0_ |= 0x00000002; @@ -1075,20 +1002,18 @@ public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1097,21 +1022,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1119,35 +1043,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1157,21 +1074,17 @@ public Builder clearMessage() { return this; } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; @@ -1181,33 +1094,24 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp errorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - errorTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_; /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ public boolean hasErrorTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1218,8 +1122,6 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1240,15 +1142,14 @@ public Builder setErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; */ - public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setErrorTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (errorTimeBuilder_ == null) { errorTime_ = builderForValue.build(); } else { @@ -1259,8 +1160,6 @@ public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1269,9 +1168,9 @@ public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && errorTime_ != null - && errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + errorTime_ != null && + errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getErrorTimeBuilder().mergeFrom(value); } else { errorTime_ = value; @@ -1284,8 +1183,6 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1303,8 +1200,6 @@ public Builder clearErrorTime() { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1317,8 +1212,6 @@ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { return getErrorTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1329,12 +1222,11 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { if (errorTimeBuilder_ != null) { return errorTimeBuilder_.getMessageOrBuilder(); } else { - return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + return errorTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1342,35 +1234,34 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { * .google.protobuf.Timestamp error_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getErrorTimeFieldBuilder() { if (errorTimeBuilder_ == null) { - errorTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getErrorTime(), getParentForChildren(), isClean()); + errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getErrorTime(), + getParentForChildren(), + isClean()); errorTime_ = null; } return errorTimeBuilder_; } - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } - private com.google.protobuf.MapField internalGetMutableDetails() { if (details_ == null) { - details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); + details_ = com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); } if (!details_.isMutable()) { details_ = details_.copy(); @@ -1379,13 +1270,10 @@ private com.google.protobuf.MapField interna onChanged(); return details_; } - public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1393,21 +1281,20 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDetails().getMap().containsKey(key); } - /** Use {@link #getDetailsMap()} instead. */ + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1419,8 +1306,6 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1428,19 +1313,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getDetailsOrDefault( + public /* nullable */ +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional information about the error.
      * 
@@ -1448,81 +1331,79 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearDetails() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableDetails().getMutableMap().clear(); + internalGetMutableDetails().getMutableMap() + .clear(); return this; } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder removeDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableDetails().getMutableMap().remove(key); + public Builder removeDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableDetails().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableDetails() { + public java.util.Map + getMutableDetails() { bitField0_ |= 0x00000010; return internalGetMutableDetails().getMutableMap(); } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putDetails(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableDetails().getMutableMap().put(key, value); + public Builder putDetails( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDetails().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putAllDetails(java.util.Map values) { - internalGetMutableDetails().getMutableMap().putAll(values); + public Builder putAllDetails( + java.util.Map values) { + internalGetMutableDetails().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1532,12 +1413,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Error) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Error) private static final com.google.cloud.datastream.v1.Error DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Error(); } @@ -1546,27 +1427,27 @@ public static com.google.cloud.datastream.v1.Error getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1581,4 +1462,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java index 8fe5bb640c4e..0591a20e5540 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java @@ -1,132 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ErrorOrBuilder - extends +public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The errorUuid. */ java.lang.String getErrorUuid(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - com.google.protobuf.ByteString getErrorUuidBytes(); + com.google.protobuf.ByteString + getErrorUuidBytes(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ boolean hasErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ com.google.protobuf.Timestamp getErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
@@ -136,8 +97,6 @@ public interface ErrorOrBuilder com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); /** - * - * *
    * Additional information about the error.
    * 
@@ -146,31 +105,30 @@ public interface ErrorOrBuilder */ int getDetailsCount(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - boolean containsDetails(java.lang.String key); - /** Use {@link #getDetailsMap()} instead. */ + boolean containsDetails( + java.lang.String key); + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getDetails(); + java.util.Map + getDetails(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.util.Map getDetailsMap(); + java.util.Map + getDetailsMap(); /** - * - * *
    * Additional information about the error.
    * 
@@ -178,18 +136,17 @@ public interface ErrorOrBuilder * map<string, string> details = 5; */ /* nullable */ - java.lang.String getDetailsOrDefault( +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.lang.String getDetailsOrThrow(java.lang.String key); + java.lang.String getDetailsOrThrow( + java.lang.String key); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java index d9e103e185bd..f355bc46450d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for 'FetchStaticIps' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsRequest} */ -public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsRequest) FetchStaticIpsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsRequest.newBuilder() to construct. private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsRequest() { name_ = ""; pageToken_ = ""; @@ -44,46 +26,39 @@ private FetchStaticIpsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchStaticIpsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, - com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
-   * Required. The resource name for the location for which static IPs should be returned.
-   * Must be in the format `projects/*/locations/*`.
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,32 +67,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The resource name for the location for which static IPs should be returned.
-   * Must be in the format `projects/*/locations/*`.
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,19 +114,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,30 +131,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,7 +163,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -232,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -245,17 +212,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.FetchStaticIpsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.FetchStaticIpsRequest other = - (com.google.cloud.datastream.v1.FetchStaticIpsRequest) obj; + com.google.cloud.datastream.v1.FetchStaticIpsRequest other = (com.google.cloud.datastream.v1.FetchStaticIpsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,135 +248,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.FetchStaticIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for 'FetchStaticIps' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.FetchStaticIpsRequest) com.google.cloud.datastream.v1.FetchStaticIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, - com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.FetchStaticIpsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override @@ -440,11 +403,8 @@ public com.google.cloud.datastream.v1.FetchStaticIpsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.FetchStaticIpsRequest buildPartial() { - com.google.cloud.datastream.v1.FetchStaticIpsRequest result = - new com.google.cloud.datastream.v1.FetchStaticIpsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.FetchStaticIpsRequest result = new com.google.cloud.datastream.v1.FetchStaticIpsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -466,39 +426,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.FetchStaticIpsRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.FetchStaticIpsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsRequest)other); } else { super.mergeFrom(other); return this; @@ -506,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsRequest other) { - if (other == com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -547,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,28 +535,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The resource name for the location for which static IPs should be returned.
-     * Must be in the format `projects/*/locations/*`.
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -611,24 +560,21 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The resource name for the location for which static IPs should be returned.
-     * Must be in the format `projects/*/locations/*`.
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -636,41 +582,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The resource name for the location for which static IPs should be returned.
-     * Must be in the format `projects/*/locations/*`.
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The resource name for the location for which static IPs should be returned.
-     * Must be in the format `projects/*/locations/*`.
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -680,24 +615,18 @@ public Builder clearName() { return this; } /** - * - * *
-     * Required. The resource name for the location for which static IPs should be returned.
-     * Must be in the format `projects/*/locations/*`.
+     * Required. The resource name for the location for which static IPs should be
+     * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -705,16 +634,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -722,33 +648,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -760,21 +680,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -783,22 +701,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -806,37 +723,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -846,31 +756,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -880,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.FetchStaticIpsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.FetchStaticIpsRequest) private static final com.google.cloud.datastream.v1.FetchStaticIpsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.FetchStaticIpsRequest(); } @@ -894,27 +800,27 @@ public static com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -929,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java new file mode 100644 index 000000000000..6e7c2f088c57 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface FetchStaticIpsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the location for which static IPs should be
+   * returned. Must be in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Maximum number of Ips to return, will likely not be specified.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token, received from a previous `ListStaticIps` call.
+   * will likely not be specified.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token, received from a previous `ListStaticIps` call.
+   * will likely not be specified.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java index 57e47cd8cd4f..a1016c05bc5a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response message for a 'FetchStaticIps' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsResponse} */ -public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsResponse) FetchStaticIpsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsResponse.newBuilder() to construct. private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsResponse() { staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -44,71 +26,61 @@ private FetchStaticIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchStaticIpsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, - com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); } public static final int STATIC_IPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList staticIps_; /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList getStaticIpsList() { + public com.google.protobuf.ProtocolStringList + getStaticIpsList() { return staticIps_; } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -116,35 +88,29 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString + getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -153,30 +119,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -185,7 +151,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < staticIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); } @@ -232,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.FetchStaticIpsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.FetchStaticIpsResponse other = - (com.google.cloud.datastream.v1.FetchStaticIpsResponse) obj; + com.google.cloud.datastream.v1.FetchStaticIpsResponse other = (com.google.cloud.datastream.v1.FetchStaticIpsResponse) obj; - if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getStaticIpsList() + .equals(other.getStaticIpsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +232,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.FetchStaticIpsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.FetchStaticIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for a 'FetchStaticIps' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.FetchStaticIpsResponse) com.google.cloud.datastream.v1.FetchStaticIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, - com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.FetchStaticIpsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override @@ -427,18 +387,14 @@ public com.google.cloud.datastream.v1.FetchStaticIpsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.FetchStaticIpsResponse buildPartial() { - com.google.cloud.datastream.v1.FetchStaticIpsResponse result = - new com.google.cloud.datastream.v1.FetchStaticIpsResponse(this); + com.google.cloud.datastream.v1.FetchStaticIpsResponse result = new com.google.cloud.datastream.v1.FetchStaticIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.FetchStaticIpsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.FetchStaticIpsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -457,39 +413,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.FetchStaticIpsResponse public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.FetchStaticIpsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsResponse)other); } else { super.mergeFrom(other); return this; @@ -497,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsResponse other) { - if (other == com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance()) return this; if (!other.staticIps_.isEmpty()) { if (staticIps_.isEmpty()) { staticIps_ = other.staticIps_; @@ -540,26 +494,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStaticIpsIsMutable(); - staticIps_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpsIsMutable(); + staticIps_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,55 +520,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList staticIps_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStaticIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { staticIps_ = new com.google.protobuf.LazyStringArrayList(staticIps_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList getStaticIpsList() { + public com.google.protobuf.ProtocolStringList + getStaticIpsList() { return staticIps_.getUnmodifiableView(); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -625,90 +565,76 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString + getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index to set the value at. * @param value The staticIps to set. * @return This builder for chaining. */ - public Builder setStaticIps(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStaticIps( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStaticIpsIsMutable(); staticIps_.set(index, value); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param value The staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIps(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStaticIps( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param values The staticIps to add. * @return This builder for chaining. */ - public Builder addAllStaticIps(java.lang.Iterable values) { + public Builder addAllStaticIps( + java.lang.Iterable values) { ensureStaticIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, staticIps_); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return This builder for chaining. */ public Builder clearStaticIps() { @@ -718,21 +644,17 @@ public Builder clearStaticIps() { return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param value The bytes of the staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStaticIpsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); @@ -742,21 +664,19 @@ public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -765,22 +685,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -788,37 +707,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -828,31 +740,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -862,12 +770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.FetchStaticIpsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.FetchStaticIpsResponse) private static final com.google.cloud.datastream.v1.FetchStaticIpsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.FetchStaticIpsResponse(); } @@ -876,27 +784,27 @@ public static com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,4 +819,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java index fc59ab73d8c9..128d3d6325da 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java @@ -1,103 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface FetchStaticIpsResponseOrBuilder - extends +public interface FetchStaticIpsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - java.util.List getStaticIpsList(); + java.util.List + getStaticIpsList(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ int getStaticIpsCount(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ java.lang.String getStaticIps(int index); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - com.google.protobuf.ByteString getStaticIpsBytes(int index); + com.google.protobuf.ByteString + getStaticIpsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java index f5913bcc0049..ff14f783b1d7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Forward SSH Tunnel connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ForwardSshTunnelConnectivity} */ -public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ForwardSshTunnelConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) ForwardSshTunnelConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ForwardSshTunnelConnectivity.newBuilder() to construct. private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ForwardSshTunnelConnectivity() { hostname_ = ""; username_ = ""; @@ -44,42 +26,38 @@ private ForwardSshTunnelConnectivity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ForwardSshTunnelConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public enum AuthenticationMethodCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PASSWORD(100), PRIVATE_KEY(101), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; - private AuthenticationMethodCase(int value) { this.value = value; } @@ -95,39 +73,32 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 100: - return PASSWORD; - case 101: - return PRIVATE_KEY; - case 0: - return AUTHENTICATIONMETHOD_NOT_SET; - default: - return null; + case 100: return PASSWORD; + case 101: return PRIVATE_KEY; + case 0: return AUTHENTICATIONMETHOD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -136,29 +107,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -167,18 +138,14 @@ public com.google.protobuf.ByteString getHostnameBytes() { } public static final int USERNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -187,29 +154,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -220,14 +187,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** - * - * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -237,28 +201,22 @@ public int getPort() { public static final int PASSWORD_FIELD_NUMBER = 100; /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ public java.lang.String getPassword() { @@ -269,7 +227,8 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -278,24 +237,23 @@ public java.lang.String getPassword() { } } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -307,28 +265,22 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int PRIVATE_KEY_FIELD_NUMBER = 101; /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ public java.lang.String getPrivateKey() { @@ -339,7 +291,8 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -348,24 +301,23 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -376,7 +328,6 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +339,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -420,7 +372,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); } if (authenticationMethodCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); @@ -436,24 +389,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other = - (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) obj; + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other = (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (getPort() != other.getPort()) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (getPort() + != other.getPort()) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 100: - if (!getPassword().equals(other.getPassword())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; break; case 101: - if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getPrivateKey() + .equals(other.getPrivateKey())) return false; break; case 0: default: @@ -493,136 +450,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Forward SSH Tunnel connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ForwardSshTunnelConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -636,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override @@ -657,11 +607,8 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity buildPartial() { - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = - new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -680,8 +627,7 @@ private void buildPartial0(com.google.cloud.datastream.v1.ForwardSshTunnelConnec } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; } @@ -690,39 +636,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity)other); } else { super.mergeFrom(other); return this; @@ -730,8 +675,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other) { - if (other == com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -746,24 +690,21 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ForwardSshTunnelConnecti setPort(other.getPort()); } switch (other.getAuthenticationMethodCase()) { - case PASSWORD: - { - authenticationMethodCase_ = 100; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case PRIVATE_KEY: - { - authenticationMethodCase_ = 101; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case PASSWORD: { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -791,45 +732,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } // case 802 - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } // case 802 + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -839,12 +774,12 @@ public Builder mergeFrom( } // finally return this; } - private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -858,20 +793,18 @@ public Builder clearAuthenticationMethod() { private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -880,21 +813,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -902,35 +834,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -940,21 +865,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -964,20 +885,18 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -986,21 +905,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1008,35 +926,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1046,21 +957,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000002; @@ -1068,16 +975,13 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -1085,33 +989,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -1122,14 +1020,11 @@ public Builder clearPort() { } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ @java.lang.Override @@ -1137,14 +1032,11 @@ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ @java.lang.Override @@ -1154,7 +1046,8 @@ public java.lang.String getPassword() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -1165,25 +1058,24 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -1193,35 +1085,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); return this; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1233,21 +1118,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; @@ -1256,14 +1137,11 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ @java.lang.Override @@ -1271,14 +1149,11 @@ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ @java.lang.Override @@ -1288,7 +1163,8 @@ public java.lang.String getPrivateKey() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -1299,25 +1175,24 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -1327,35 +1202,28 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -1367,30 +1235,26 @@ public Builder clearPrivateKey() { return this; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1400,12 +1264,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) private static final com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(); } @@ -1414,27 +1278,27 @@ public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ForwardSshTunnelConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardSshTunnelConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1449,4 +1313,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java index 6febb57443c6..e636a45654c6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java @@ -1,165 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ForwardSshTunnelConnectivityOrBuilder - extends +public interface ForwardSshTunnelConnectivityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; - * * @return The port. */ int getPort(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ boolean hasPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ boolean hasPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ java.lang.String getPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString getPrivateKeyBytes(); + com.google.protobuf.ByteString + getPrivateKeyBytes(); - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.AuthenticationMethodCase - getAuthenticationMethodCase(); + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java index e62f16a71ae7..c42e2175c25e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Google Cloud Storage destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsDestinationConfig} */ -public final class GcsDestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsDestinationConfig) GcsDestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestinationConfig.newBuilder() to construct. private GcsDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestinationConfig() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsDestinationConfig.class, - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.GcsDestinationConfig.class, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); } private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - public enum FileFormatCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_FILE_FORMAT(100), JSON_FILE_FORMAT(101), FILEFORMAT_NOT_SET(0); private final int value; - private FileFormatCase(int value) { this.value = value; } @@ -94,39 +72,32 @@ public static FileFormatCase valueOf(int value) { public static FileFormatCase forNumber(int value) { switch (value) { - case 100: - return AVRO_FILE_FORMAT; - case 101: - return JSON_FILE_FORMAT; - case 0: - return FILEFORMAT_NOT_SET; - default: - return null; + case 100: return AVRO_FILE_FORMAT; + case 101: return JSON_FILE_FORMAT; + case 0: return FILEFORMAT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FileFormatCase getFileFormatCase() { - return FileFormatCase.forNumber(fileFormatCase_); + public FileFormatCase + getFileFormatCase() { + return FileFormatCase.forNumber( + fileFormatCase_); } public static final int PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -135,29 +106,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -168,14 +139,11 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int FILE_ROTATION_MB_FIELD_NUMBER = 2; private int fileRotationMb_ = 0; /** - * - * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 2; - * * @return The fileRotationMb. */ @java.lang.Override @@ -186,15 +154,13 @@ public int getFileRotationMb() { public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration fileRotationInterval_; /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -202,50 +168,40 @@ public boolean hasFileRotationInterval() { return fileRotationInterval_ != null; } /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return The fileRotationInterval. */ @java.lang.Override public com.google.protobuf.Duration getFileRotationInterval() { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } public static final int AVRO_FILE_FORMAT_FIELD_NUMBER = 100; /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -253,26 +209,21 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } /** - * - * *
    * AVRO file format configuration.
    * 
@@ -282,21 +233,18 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } public static final int JSON_FILE_FORMAT_FIELD_NUMBER = 101; /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -304,26 +252,21 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } /** - * - * *
    * JSON file format configuration.
    * 
@@ -333,13 +276,12 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -380,21 +323,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (fileRotationMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fileRotationMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, fileRotationMb_); } if (fileRotationInterval_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFileRotationInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getFileRotationInterval()); } if (fileFormatCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); } if (fileFormatCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -404,27 +346,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GcsDestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GcsDestinationConfig other = - (com.google.cloud.datastream.v1.GcsDestinationConfig) obj; + com.google.cloud.datastream.v1.GcsDestinationConfig other = (com.google.cloud.datastream.v1.GcsDestinationConfig) obj; - if (!getPath().equals(other.getPath())) return false; - if (getFileRotationMb() != other.getFileRotationMb()) return false; + if (!getPath() + .equals(other.getPath())) return false; + if (getFileRotationMb() + != other.getFileRotationMb()) return false; if (hasFileRotationInterval() != other.hasFileRotationInterval()) return false; if (hasFileRotationInterval()) { - if (!getFileRotationInterval().equals(other.getFileRotationInterval())) return false; + if (!getFileRotationInterval() + .equals(other.getFileRotationInterval())) return false; } if (!getFileFormatCase().equals(other.getFileFormatCase())) return false; switch (fileFormatCase_) { case 100: - if (!getAvroFileFormat().equals(other.getAvroFileFormat())) return false; + if (!getAvroFileFormat() + .equals(other.getAvroFileFormat())) return false; break; case 101: - if (!getJsonFileFormat().equals(other.getJsonFileFormat())) return false; + if (!getJsonFileFormat() + .equals(other.getJsonFileFormat())) return false; break; case 0: default: @@ -466,135 +412,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GcsDestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Google Cloud Storage destination configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsDestinationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GcsDestinationConfig) com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsDestinationConfig.class, - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.GcsDestinationConfig.class, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -618,9 +558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override @@ -639,11 +579,8 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.GcsDestinationConfig buildPartial() { - com.google.cloud.datastream.v1.GcsDestinationConfig result = - new com.google.cloud.datastream.v1.GcsDestinationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GcsDestinationConfig result = new com.google.cloud.datastream.v1.GcsDestinationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -658,20 +595,21 @@ private void buildPartial0(com.google.cloud.datastream.v1.GcsDestinationConfig r result.fileRotationMb_ = fileRotationMb_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.fileRotationInterval_ = - fileRotationIntervalBuilder_ == null - ? fileRotationInterval_ - : fileRotationIntervalBuilder_.build(); + result.fileRotationInterval_ = fileRotationIntervalBuilder_ == null + ? fileRotationInterval_ + : fileRotationIntervalBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.datastream.v1.GcsDestinationConfig result) { result.fileFormatCase_ = fileFormatCase_; result.fileFormat_ = this.fileFormat_; - if (fileFormatCase_ == 100 && avroFileFormatBuilder_ != null) { + if (fileFormatCase_ == 100 && + avroFileFormatBuilder_ != null) { result.fileFormat_ = avroFileFormatBuilder_.build(); } - if (fileFormatCase_ == 101 && jsonFileFormatBuilder_ != null) { + if (fileFormatCase_ == 101 && + jsonFileFormatBuilder_ != null) { result.fileFormat_ = jsonFileFormatBuilder_.build(); } } @@ -680,39 +618,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.GcsDestinationCon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GcsDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.GcsDestinationConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.GcsDestinationConfig)other); } else { super.mergeFrom(other); return this; @@ -720,8 +657,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GcsDestinationConfig other) { - if (other == com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -734,20 +670,17 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.GcsDestinationConfig oth mergeFileRotationInterval(other.getFileRotationInterval()); } switch (other.getFileFormatCase()) { - case AVRO_FILE_FORMAT: - { - mergeAvroFileFormat(other.getAvroFileFormat()); - break; - } - case JSON_FILE_FORMAT: - { - mergeJsonFileFormat(other.getJsonFileFormat()); - break; - } - case FILEFORMAT_NOT_SET: - { - break; - } + case AVRO_FILE_FORMAT: { + mergeAvroFileFormat(other.getAvroFileFormat()); + break; + } + case JSON_FILE_FORMAT: { + mergeJsonFileFormat(other.getJsonFileFormat()); + break; + } + case FILEFORMAT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -775,44 +708,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - fileRotationMb_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - getFileRotationIntervalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 802: - { - input.readMessage(getAvroFileFormatFieldBuilder().getBuilder(), extensionRegistry); - fileFormatCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getJsonFileFormatFieldBuilder().getBuilder(), extensionRegistry); - fileFormatCase_ = 101; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + fileRotationMb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getFileRotationIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 802: { + input.readMessage( + getAvroFileFormatFieldBuilder().getBuilder(), + extensionRegistry); + fileFormatCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getJsonFileFormatFieldBuilder().getBuilder(), + extensionRegistry); + fileFormatCase_ = 101; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -822,12 +754,12 @@ public Builder mergeFrom( } // finally return this; } - private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - - public FileFormatCase getFileFormatCase() { - return FileFormatCase.forNumber(fileFormatCase_); + public FileFormatCase + getFileFormatCase() { + return FileFormatCase.forNumber( + fileFormatCase_); } public Builder clearFileFormat() { @@ -841,20 +773,18 @@ public Builder clearFileFormat() { private java.lang.Object path_ = ""; /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -863,21 +793,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -885,35 +814,28 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -923,21 +845,17 @@ public Builder clearPath() { return this; } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -945,16 +863,13 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { return this; } - private int fileRotationMb_; + private int fileRotationMb_ ; /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; - * * @return The fileRotationMb. */ @java.lang.Override @@ -962,33 +877,27 @@ public int getFileRotationMb() { return fileRotationMb_; } /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; - * * @param value The fileRotationMb to set. * @return This builder for chaining. */ public Builder setFileRotationMb(int value) { - + fileRotationMb_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; - * * @return This builder for chaining. */ public Builder clearFileRotationMb() { @@ -1000,52 +909,42 @@ public Builder clearFileRotationMb() { private com.google.protobuf.Duration fileRotationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - fileRotationIntervalBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileRotationIntervalBuilder_; /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return The fileRotationInterval. */ public com.google.protobuf.Duration getFileRotationInterval() { if (fileRotationIntervalBuilder_ == null) { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } else { return fileRotationIntervalBuilder_.getMessage(); } } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; @@ -1064,16 +963,16 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; */ - public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setFileRotationInterval( + com.google.protobuf.Duration.Builder builderForValue) { if (fileRotationIntervalBuilder_ == null) { fileRotationInterval_ = builderForValue.build(); } else { @@ -1084,20 +983,19 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder buil return this; } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; */ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) { if (fileRotationIntervalBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && fileRotationInterval_ != null - && fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + fileRotationInterval_ != null && + fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) { getFileRotationIntervalBuilder().mergeFrom(value); } else { fileRotationInterval_ = value; @@ -1110,11 +1008,10 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; @@ -1130,11 +1027,10 @@ public Builder clearFileRotationInterval() { return this; } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; @@ -1145,11 +1041,10 @@ public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() { return getFileRotationIntervalFieldBuilder().getBuilder(); } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; @@ -1158,52 +1053,41 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() if (fileRotationIntervalBuilder_ != null) { return fileRotationIntervalBuilder_.getMessageOrBuilder(); } else { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } } /** - * - * *
      * The maximum duration for which new events are added before a file is
-     * closed and a new file is created.
+     * closed and a new file is created. Values within the range of 15-60 seconds
+     * are allowed.
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getFileRotationIntervalFieldBuilder() { if (fileRotationIntervalBuilder_ == null) { - fileRotationIntervalBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getFileRotationInterval(), getParentForChildren(), isClean()); + fileRotationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getFileRotationInterval(), + getParentForChildren(), + isClean()); fileRotationInterval_ = null; } return fileRotationIntervalBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.AvroFileFormat, - com.google.cloud.datastream.v1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> - avroFileFormatBuilder_; + com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> avroFileFormatBuilder_; /** - * - * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -1211,14 +1095,11 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override @@ -1236,8 +1117,6 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1258,8 +1137,6 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat v return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1278,8 +1155,6 @@ public Builder setAvroFileFormat( return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1288,13 +1163,10 @@ public Builder setAvroFileFormat( */ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat value) { if (avroFileFormatBuilder_ == null) { - if (fileFormatCase_ == 100 - && fileFormat_ != com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1.AvroFileFormat.newBuilder( - (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 100 && + fileFormat_ != com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1.AvroFileFormat.newBuilder((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1310,8 +1182,6 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1335,8 +1205,6 @@ public Builder clearAvroFileFormat() { return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1347,8 +1215,6 @@ public com.google.cloud.datastream.v1.AvroFileFormat.Builder getAvroFileFormatBu return getAvroFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1367,8 +1233,6 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1376,19 +1240,14 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.AvroFileFormat, - com.google.cloud.datastream.v1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> + com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> getAvroFileFormatFieldBuilder() { if (avroFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 100)) { fileFormat_ = com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } - avroFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.AvroFileFormat, - com.google.cloud.datastream.v1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1.AvroFileFormatOrBuilder>( + avroFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder>( (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1400,19 +1259,13 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, - com.google.cloud.datastream.v1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> - jsonFileFormatBuilder_; + com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> jsonFileFormatBuilder_; /** - * - * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -1420,14 +1273,11 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override @@ -1445,8 +1295,6 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1467,8 +1315,6 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat v return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1487,8 +1333,6 @@ public Builder setJsonFileFormat( return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1497,13 +1341,10 @@ public Builder setJsonFileFormat( */ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat value) { if (jsonFileFormatBuilder_ == null) { - if (fileFormatCase_ == 101 - && fileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1.JsonFileFormat.newBuilder( - (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 101 && + fileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1.JsonFileFormat.newBuilder((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1519,8 +1360,6 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1544,8 +1383,6 @@ public Builder clearJsonFileFormat() { return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1556,8 +1393,6 @@ public com.google.cloud.datastream.v1.JsonFileFormat.Builder getJsonFileFormatBu return getJsonFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1576,8 +1411,6 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1585,19 +1418,14 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, - com.google.cloud.datastream.v1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> + com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> getJsonFileFormatFieldBuilder() { if (jsonFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 101)) { fileFormat_ = com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } - jsonFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, - com.google.cloud.datastream.v1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1.JsonFileFormatOrBuilder>( + jsonFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder>( (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1607,9 +1435,9 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO onChanged(); return jsonFileFormatBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1619,12 +1447,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GcsDestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GcsDestinationConfig) private static final com.google.cloud.datastream.v1.GcsDestinationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GcsDestinationConfig(); } @@ -1633,27 +1461,27 @@ public static com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1668,4 +1496,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java similarity index 77% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java index 0730c1a9cbe3..830bc946731a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java @@ -1,98 +1,69 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface GcsDestinationConfigOrBuilder - extends +public interface GcsDestinationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GcsDestinationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 2; - * * @return The fileRotationMb. */ int getFileRotationMb(); /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return Whether the fileRotationInterval field is set. */ boolean hasFileRotationInterval(); /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; - * * @return The fileRotationInterval. */ com.google.protobuf.Duration getFileRotationInterval(); /** - * - * *
    * The maximum duration for which new events are added before a file is
-   * closed and a new file is created.
+   * closed and a new file is created. Values within the range of 15-60 seconds
+   * are allowed.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; @@ -100,32 +71,24 @@ public interface GcsDestinationConfigOrBuilder com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder(); /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ boolean hasAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
@@ -135,32 +98,24 @@ public interface GcsDestinationConfigOrBuilder com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ boolean hasJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java index 3f8f9312a74d..48b927a5b6df 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Cloud Storage bucket profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} */ -public final class GcsProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsProfile) GcsProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsProfile.newBuilder() to construct. private GcsProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsProfile() { bucket_ = ""; rootPath_ = ""; @@ -44,43 +26,38 @@ private GcsProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsProfile.class, - com.google.cloud.datastream.v1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1.GcsProfile.class, com.google.cloud.datastream.v1.GcsProfile.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** - * - * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** - * - * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getBucketBytes() { } public static final int ROOT_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rootPath_ = ""; /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The rootPath. */ @java.lang.Override @@ -140,29 +113,29 @@ public java.lang.String getRootPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; } } /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ @java.lang.Override - public com.google.protobuf.ByteString getRootPathBytes() { + public com.google.protobuf.ByteString + getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPath_ = b; return b; } else { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getRootPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -213,16 +186,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GcsProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GcsProfile other = - (com.google.cloud.datastream.v1.GcsProfile) obj; + com.google.cloud.datastream.v1.GcsProfile other = (com.google.cloud.datastream.v1.GcsProfile) obj; - if (!getBucket().equals(other.getBucket())) return false; - if (!getRootPath().equals(other.getRootPath())) return false; + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getRootPath() + .equals(other.getRootPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -243,136 +217,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GcsProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud Storage bucket profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GcsProfile) com.google.cloud.datastream.v1.GcsProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsProfile.class, - com.google.cloud.datastream.v1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1.GcsProfile.class, com.google.cloud.datastream.v1.GcsProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.GcsProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override @@ -404,11 +372,8 @@ public com.google.cloud.datastream.v1.GcsProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.GcsProfile buildPartial() { - com.google.cloud.datastream.v1.GcsProfile result = - new com.google.cloud.datastream.v1.GcsProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GcsProfile result = new com.google.cloud.datastream.v1.GcsProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -427,39 +392,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GcsProfile result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GcsProfile) { - return mergeFrom((com.google.cloud.datastream.v1.GcsProfile) other); + return mergeFrom((com.google.cloud.datastream.v1.GcsProfile)other); } else { super.mergeFrom(other); return this; @@ -504,25 +468,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - rootPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + rootPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -532,25 +493,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucket_ = ""; /** - * - * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -559,21 +517,20 @@ public java.lang.String getBucket() { } } /** - * - * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString getBucketBytes() { + public com.google.protobuf.ByteString + getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucket_ = b; return b; } else { @@ -581,35 +538,28 @@ public com.google.protobuf.ByteString getBucketBytes() { } } /** - * - * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucket( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucket() { @@ -619,21 +569,17 @@ public Builder clearBucket() { return this; } /** - * - * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -643,20 +589,18 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootPath_ = ""; /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The rootPath. */ public java.lang.String getRootPath() { java.lang.Object ref = rootPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; @@ -665,21 +609,20 @@ public java.lang.String getRootPath() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - public com.google.protobuf.ByteString getRootPathBytes() { + public com.google.protobuf.ByteString + getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPath_ = b; return b; } else { @@ -687,35 +630,28 @@ public com.google.protobuf.ByteString getRootPathBytes() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @param value The rootPath to set. * @return This builder for chaining. */ - public Builder setRootPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRootPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return This builder for chaining. */ public Builder clearRootPath() { @@ -725,30 +661,26 @@ public Builder clearRootPath() { return this; } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @param value The bytes for rootPath to set. * @return This builder for chaining. */ - public Builder setRootPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRootPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -758,12 +690,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GcsProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GcsProfile) private static final com.google.cloud.datastream.v1.GcsProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GcsProfile(); } @@ -772,27 +704,27 @@ public static com.google.cloud.datastream.v1.GcsProfile getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -807,4 +739,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java similarity index 57% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java index 08fbfc7b4dc2..6d170ffc29a0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface GcsProfileOrBuilder - extends +public interface GcsProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GcsProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ java.lang.String getBucket(); /** - * - * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucket. */ - com.google.protobuf.ByteString getBucketBytes(); + com.google.protobuf.ByteString + getBucketBytes(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The rootPath. */ java.lang.String getRootPath(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - com.google.protobuf.ByteString getRootPathBytes(); + com.google.protobuf.ByteString + getRootPathBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java index 25379e1979b1..0a2b97524365 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for getting a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetConnectionProfileRequest} */ -public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, - com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the connection profile resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetConnectionProfileRequest other = - (com.google.cloud.datastream.v1.GetConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.GetConnectionProfileRequest other = (com.google.cloud.datastream.v1.GetConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.GetConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.GetConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetConnectionProfileRequest) com.google.cloud.datastream.v1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, - com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.datastream.v1.GetConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.GetConnectionProfileRequest result = - new com.google.cloud.datastream.v1.GetConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GetConnectionProfileRequest result = new com.google.cloud.datastream.v1.GetConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetConnectionProfileRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.GetConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetConnectionProfileRequest) private static final com.google.cloud.datastream.v1.GetConnectionProfileRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetConnectionProfileRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 000000000000..cbd873558f3d --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetConnectionProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java index 4ee17b193686..7899c8df11e0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request to get a private connection configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetPrivateConnectionRequest} */ -public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetPrivateConnectionRequest) GetPrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPrivateConnectionRequest.newBuilder() to construct. private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPrivateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetPrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetPrivateConnectionRequest other = - (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.GetPrivateConnectionRequest other = (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.GetPrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request to get a private connection configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetPrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetPrivateConnectionRequest) com.google.cloud.datastream.v1.GetPrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetPrivateConnectionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.datastream.v1.GetPrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetPrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = - new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetPrivateConnectionRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetPrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetPrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.GetPrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetPrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetPrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetPrivateConnectionRequest) private static final com.google.cloud.datastream.v1.GetPrivateConnectionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..277aaf462625 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetPrivateConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java similarity index 62% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java index 6a41658456aa..d75b915ead3d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Route get request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetRouteRequest} */ -public final class GetRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetRouteRequest) GetRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRouteRequest.newBuilder() to construct. private GetRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRouteRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetRouteRequest.class, - com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1.GetRouteRequest.class, com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Route resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetRouteRequest other = - (com.google.cloud.datastream.v1.GetRouteRequest) obj; + com.google.cloud.datastream.v1.GetRouteRequest other = (com.google.cloud.datastream.v1.GetRouteRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GetRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Route get request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetRouteRequest) com.google.cloud.datastream.v1.GetRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetRouteRequest.class, - com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1.GetRouteRequest.class, com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override @@ -346,11 +313,8 @@ public com.google.cloud.datastream.v1.GetRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetRouteRequest buildPartial() { - com.google.cloud.datastream.v1.GetRouteRequest result = - new com.google.cloud.datastream.v1.GetRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GetRouteRequest result = new com.google.cloud.datastream.v1.GetRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetRouteRequest result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.GetRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -438,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -460,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -489,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -513,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -555,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -590,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetRouteRequest) private static final com.google.cloud.datastream.v1.GetRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetRouteRequest(); } @@ -604,27 +540,27 @@ public static com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java new file mode 100644 index 000000000000..ee7f97b799b4 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java index 5a64d63246df..6c070aa5a767 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for fetching a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamObjectRequest} */ -public final class GetStreamObjectRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetStreamObjectRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamObjectRequest) GetStreamObjectRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetStreamObjectRequest.newBuilder() to construct. private GetStreamObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetStreamObjectRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetStreamObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamObjectRequest.class, - com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamObjectRequest.class, com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the stream object resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream object resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetStreamObjectRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetStreamObjectRequest other = - (com.google.cloud.datastream.v1.GetStreamObjectRequest) obj; + com.google.cloud.datastream.v1.GetStreamObjectRequest other = (com.google.cloud.datastream.v1.GetStreamObjectRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.GetStreamObjectRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.GetStreamObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for fetching a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamObjectRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetStreamObjectRequest) com.google.cloud.datastream.v1.GetStreamObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamObjectRequest.class, - com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamObjectRequest.class, com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetStreamObjectRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override @@ -347,11 +313,8 @@ public com.google.cloud.datastream.v1.GetStreamObjectRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetStreamObjectRequest buildPartial() { - com.google.cloud.datastream.v1.GetStreamObjectRequest result = - new com.google.cloud.datastream.v1.GetStreamObjectRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GetStreamObjectRequest result = new com.google.cloud.datastream.v1.GetStreamObjectRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetStreamObjectRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetStreamObjectRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetStreamObjectRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.GetStreamObjectRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamObjectRequest other) { - if (other == com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -440,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the stream object resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -491,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream object resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -515,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream object resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the stream object resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -557,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the stream object resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetStreamObjectRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetStreamObjectRequest) private static final com.google.cloud.datastream.v1.GetStreamObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetStreamObjectRequest(); } @@ -606,27 +540,27 @@ public static com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java new file mode 100644 index 000000000000..4afde35b72b9 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamObjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java index 0c25c928e9c0..c55273bdf4b9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for getting a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamRequest} */ -public final class GetStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamRequest) GetStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetStreamRequest.newBuilder() to construct. private GetStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamRequest.class, - com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamRequest.class, com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the stream resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetStreamRequest other = - (com.google.cloud.datastream.v1.GetStreamRequest) obj; + com.google.cloud.datastream.v1.GetStreamRequest other = (com.google.cloud.datastream.v1.GetStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -186,136 +159,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GetStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for getting a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetStreamRequest) com.google.cloud.datastream.v1.GetStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamRequest.class, - com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamRequest.class, com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override @@ -346,11 +313,8 @@ public com.google.cloud.datastream.v1.GetStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetStreamRequest buildPartial() { - com.google.cloud.datastream.v1.GetStreamRequest result = - new com.google.cloud.datastream.v1.GetStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.GetStreamRequest result = new com.google.cloud.datastream.v1.GetStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetStreamRequest resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.GetStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamRequest other) { - if (other == com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -556,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetStreamRequest) private static final com.google.cloud.datastream.v1.GetStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetStreamRequest(); } @@ -605,27 +540,27 @@ public static com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java new file mode 100644 index 000000000000..d61ac09ebc87 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java index 55ad8d1ebe6e..6783773e1605 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * JSON file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.JsonFileFormat} */ -public final class JsonFileFormat extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JsonFileFormat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.JsonFileFormat) JsonFileFormatOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JsonFileFormat.newBuilder() to construct. private JsonFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JsonFileFormat() { schemaFileFormat_ = 0; compression_ = 0; @@ -44,43 +26,39 @@ private JsonFileFormat() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JsonFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.JsonFileFormat.class, - com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1.JsonFileFormat.class, com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); } /** - * - * *
    * Schema file format.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat} */ - public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum { + public enum SchemaFileFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified schema file format.
      * 
@@ -89,8 +67,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** - * - * *
      * Do not attach schema file.
      * 
@@ -99,8 +75,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ NO_SCHEMA_FILE(1), /** - * - * *
      * Avro schema format.
      * 
@@ -112,8 +86,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unspecified schema file format.
      * 
@@ -122,8 +94,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not attach schema file.
      * 
@@ -132,8 +102,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** - * - * *
      * Avro schema format.
      * 
@@ -142,6 +110,7 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int AVRO_SCHEMA_FILE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,42 +135,39 @@ public static SchemaFileFormat valueOf(int value) { */ public static SchemaFileFormat forNumber(int value) { switch (value) { - case 0: - return SCHEMA_FILE_FORMAT_UNSPECIFIED; - case 1: - return NO_SCHEMA_FILE; - case 2: - return AVRO_SCHEMA_FILE; - default: - return null; + case 0: return SCHEMA_FILE_FORMAT_UNSPECIFIED; + case 1: return NO_SCHEMA_FILE; + case 2: return AVRO_SCHEMA_FILE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaFileFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaFileFormat findValueByNumber(int number) { + return SchemaFileFormat.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaFileFormat findValueByNumber(int number) { - return SchemaFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); } @@ -210,7 +176,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static SchemaFileFormat valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -228,18 +195,15 @@ private SchemaFileFormat(int value) { } /** - * - * *
    * Json file compression.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.JsonFileFormat.JsonCompression} */ - public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonCompression + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified json file compression.
      * 
@@ -248,8 +212,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ JSON_COMPRESSION_UNSPECIFIED(0), /** - * - * *
      * Do not compress JSON file.
      * 
@@ -258,8 +220,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ NO_COMPRESSION(1), /** - * - * *
      * Gzip compression.
      * 
@@ -271,8 +231,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified json file compression.
      * 
@@ -281,8 +239,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not compress JSON file.
      * 
@@ -291,8 +247,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_COMPRESSION_VALUE = 1; /** - * - * *
      * Gzip compression.
      * 
@@ -301,6 +255,7 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GZIP_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -325,42 +280,39 @@ public static JsonCompression valueOf(int value) { */ public static JsonCompression forNumber(int value) { switch (value) { - case 0: - return JSON_COMPRESSION_UNSPECIFIED; - case 1: - return NO_COMPRESSION; - case 2: - return GZIP; - default: - return null; + case 0: return JSON_COMPRESSION_UNSPECIFIED; + case 1: return NO_COMPRESSION; + case 2: return GZIP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + JsonCompression> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JsonCompression findValueByNumber(int number) { + return JsonCompression.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JsonCompression findValueByNumber(int number) { - return JsonCompression.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(1); } @@ -369,7 +321,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static JsonCompression valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -389,81 +342,56 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int schemaFileFormat_ = 0; /** - * - * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override - public int getSchemaFileFormatValue() { + @java.lang.Override public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** - * - * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The schemaFileFormat. */ - @java.lang.Override - public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null - ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_ = 0; /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ - @java.lang.Override - public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null - ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -475,17 +403,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (schemaFileFormat_ - != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat - .SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schemaFileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { + if (compression_ != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, compression_); } getUnknownFields().writeTo(output); @@ -497,17 +420,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (schemaFileFormat_ - != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat - .SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, schemaFileFormat_); + if (schemaFileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compression_); + if (compression_ != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, compression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -517,13 +436,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.JsonFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1.JsonFileFormat other = - (com.google.cloud.datastream.v1.JsonFileFormat) obj; + com.google.cloud.datastream.v1.JsonFileFormat other = (com.google.cloud.datastream.v1.JsonFileFormat) obj; if (schemaFileFormat_ != other.schemaFileFormat_) return false; if (compression_ != other.compression_) return false; @@ -547,136 +465,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.JsonFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * JSON file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.JsonFileFormat} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.JsonFileFormat) com.google.cloud.datastream.v1.JsonFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.JsonFileFormat.class, - com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1.JsonFileFormat.class, com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1.JsonFileFormat.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -687,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override @@ -708,11 +620,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat buildPartial() { - com.google.cloud.datastream.v1.JsonFileFormat result = - new com.google.cloud.datastream.v1.JsonFileFormat(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.JsonFileFormat result = new com.google.cloud.datastream.v1.JsonFileFormat(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -731,39 +640,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.JsonFileFormat result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.JsonFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat) other); + return mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat)other); } else { super.mergeFrom(other); return this; @@ -804,25 +712,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - schemaFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - compression_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + schemaFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + compression_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -832,36 +737,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int schemaFileFormat_ = 0; /** - * - * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override - public int getSchemaFileFormatValue() { + @java.lang.Override public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @param value The enum numeric value on the wire for schemaFileFormat to set. * @return This builder for chaining. */ @@ -872,41 +767,28 @@ public Builder setSchemaFileFormatValue(int value) { return this; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The schemaFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber( - schemaFileFormat_); - return result == null - ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED : result; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @param value The schemaFileFormat to set. * @return This builder for chaining. */ - public Builder setSchemaFileFormat( - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat value) { + public Builder setSchemaFileFormat(com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -916,15 +798,11 @@ public Builder setSchemaFileFormat( return this; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return This builder for chaining. */ public Builder clearSchemaFileFormat() { @@ -936,29 +814,22 @@ public Builder clearSchemaFileFormat() { private int compression_ = 0; /** - * - * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @param value The enum numeric value on the wire for compression to set. * @return This builder for chaining. */ @@ -969,38 +840,28 @@ public Builder setCompressionValue(int value) { return this; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null - ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @param value The compression to set. * @return This builder for chaining. */ - public Builder setCompression( - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression value) { + public Builder setCompression(com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression value) { if (value == null) { throw new NullPointerException(); } @@ -1010,14 +871,11 @@ public Builder setCompression( return this; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return This builder for chaining. */ public Builder clearCompression() { @@ -1026,9 +884,9 @@ public Builder clearCompression() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1038,12 +896,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.JsonFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.JsonFileFormat) private static final com.google.cloud.datastream.v1.JsonFileFormat DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.JsonFileFormat(); } @@ -1052,27 +910,27 @@ public static com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1087,4 +945,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java similarity index 63% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java index ef4b8a8ebe40..494d2d98e1b5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface JsonFileFormatOrBuilder - extends +public interface JsonFileFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.JsonFileFormat) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The enum numeric value on the wire for schemaFileFormat. */ int getSchemaFileFormatValue(); /** - * - * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; - * - * + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; * @return The schemaFileFormat. */ com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java index c0b353ab8eb3..ca37ae13568a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for listing connection profiles.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionProfilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,18 +169,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -223,29 +185,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -254,18 +216,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -274,29 +232,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -305,7 +263,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -346,7 +304,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -365,19 +324,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListConnectionProfilesRequest other = - (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListConnectionProfilesRequest other = (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,136 +368,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListConnectionProfilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing connection profiles.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListConnectionProfilesRequest) com.google.cloud.datastream.v1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -548,14 +504,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListConnectionProfilesRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance(); } @@ -570,17 +525,13 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = - new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfilesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -603,39 +554,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListConnectionProfilesRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesRequest)other); } else { super.mergeFrom(other); return this; @@ -643,9 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesRequest other) { - if (other - == com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -695,43 +643,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -741,27 +683,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -770,23 +707,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -794,39 +728,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -836,23 +759,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -860,10 +777,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -871,7 +786,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -879,8 +793,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -888,20 +800,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -909,7 +818,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -921,8 +829,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -931,13 +837,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -946,8 +852,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -956,14 +860,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -971,8 +876,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -981,22 +884,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1005,7 +904,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1015,8 +913,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1025,14 +921,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1042,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1064,21 +956,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1086,35 +977,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1124,21 +1008,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1148,20 +1028,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1170,21 +1048,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1192,35 +1069,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1230,30 +1100,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,13 +1129,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListConnectionProfilesRequest) - private static final com.google.cloud.datastream.v1.ListConnectionProfilesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.ListConnectionProfilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(); } @@ -1278,27 +1143,27 @@ public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,4 +1178,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java index f79b030ec862..4981775be2fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListConnectionProfilesRequestOrBuilder - extends +public interface ListConnectionProfilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -62,14 +35,11 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java index 740c4fc2a587..bb0d23638248 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response message for listing connection profiles.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionProfilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,37 +27,33 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List connectionProfiles_; /** - * - * *
    * List of connection profiles.
    * 
@@ -84,13 +61,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { return connectionProfiles_; } /** - * - * *
    * List of connection profiles.
    * 
@@ -98,13 +72,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** - * - * *
    * List of connection profiles.
    * 
@@ -116,8 +88,6 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** - * - * *
    * List of connection profiles.
    * 
@@ -129,8 +99,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in return connectionProfiles_.get(index); } /** - * - * *
    * List of connection profiles.
    * 
@@ -144,19 +112,15 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -165,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -197,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -244,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -292,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, connectionProfiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -314,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListConnectionProfilesResponse other = - (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) obj; + com.google.cloud.datastream.v1.ListConnectionProfilesResponse other = (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList() + .equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListConnectionProfilesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing connection profiles.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListConnectionProfilesResponse) com.google.cloud.datastream.v1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -500,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListConnectionProfilesResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance(); } @@ -522,18 +469,14 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.datastream.v1.ListConnectionProfilesResponse result = - new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(this); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse result = new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -550,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -562,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListConnectionProfilesResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesResponse)other); } else { super.mergeFrom(other); return this; @@ -602,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesResponse other) { - if (other - == com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance()) return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -623,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesRe connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionProfilesFieldBuilder() - : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionProfilesFieldBuilder() : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -673,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.ConnectionProfile m = - input.readMessage( - com.google.cloud.datastream.v1.ConnectionProfile.parser(), - extensionRegistry); - if (connectionProfilesBuilder_ == null) { - ensureConnectionProfilesIsMutable(); - connectionProfiles_.add(m); - } else { - connectionProfilesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.ConnectionProfile m = + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), + extensionRegistry); + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(m); + } else { + connectionProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,38 +650,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List connectionProfiles_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = - new java.util.ArrayList( - connectionProfiles_); + connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> - connectionProfilesBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; /** - * - * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -755,8 +679,6 @@ private void ensureConnectionProfilesIsMutable() { } } /** - * - * *
      * List of connection profiles.
      * 
@@ -771,8 +693,6 @@ public int getConnectionProfilesCount() { } } /** - * - * *
      * List of connection profiles.
      * 
@@ -787,8 +707,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in } } /** - * - * *
      * List of connection profiles.
      * 
@@ -810,8 +728,6 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -830,8 +746,6 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -852,8 +766,6 @@ public Builder addConnectionProfiles(com.google.cloud.datastream.v1.ConnectionPr return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -875,8 +787,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -895,8 +805,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -915,8 +823,6 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -927,7 +833,8 @@ public Builder addAllConnectionProfiles( java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -935,8 +842,6 @@ public Builder addAllConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -954,8 +859,6 @@ public Builder clearConnectionProfiles() { return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -973,8 +876,6 @@ public Builder removeConnectionProfiles(int index) { return this; } /** - * - * *
      * List of connection profiles.
      * 
@@ -986,8 +887,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfilesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connection profiles.
      * 
@@ -997,22 +896,19 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); - } else { + return connectionProfiles_.get(index); } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -1020,8 +916,6 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** - * - * *
      * List of connection profiles.
      * 
@@ -1029,12 +923,10 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
@@ -1043,34 +935,26 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionPro */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionProfilesBuilder( int index) { - return getConnectionProfilesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1082,21 +966,19 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionPro private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1105,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1128,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1168,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1191,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,13 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListConnectionProfilesResponse) - private static final com.google.cloud.datastream.v1.ListConnectionProfilesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.ListConnectionProfilesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(); } @@ -1385,27 +1226,27 @@ public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1420,4 +1261,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java index 13d60e164df2..e8c750796c95 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListConnectionProfilesResponseOrBuilder - extends +public interface ListConnectionProfilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of connection profiles.
    * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List getConnectionProfilesList(); + java.util.List + getConnectionProfilesList(); /** - * - * *
    * List of connection profiles.
    * 
@@ -44,8 +25,6 @@ public interface ListConnectionProfilesResponseOrBuilder */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(int index); /** - * - * *
    * List of connection profiles.
    * 
@@ -54,19 +33,15 @@ public interface ListConnectionProfilesResponseOrBuilder */ int getConnectionProfilesCount(); /** - * - * *
    * List of connection profiles.
    * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** - * - * *
    * List of connection profiles.
    * 
@@ -77,80 +52,65 @@ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfilesO int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java index 424be8a89e7f..9e799e2d17c7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for listing private connections.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsRequest} */ -public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPrivateConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsRequest) ListPrivateConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsRequest.newBuilder() to construct. private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,39 @@ private ListPrivateConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPrivateConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
-   * Required. The parent that owns the collection of private connectivity configurations.
+   * Required. The parent that owns the collection of private connectivity
+   * configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +69,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
-   * Required. The parent that owns the collection of private connectivity configurations.
+   * Required. The parent that owns the collection of private connectivity
+   * configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +119,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -162,7 +131,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +139,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -189,15 +156,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,18 +174,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -226,29 +190,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -257,18 +221,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -277,29 +237,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -308,7 +268,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +279,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -349,7 +309,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -368,19 +329,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other = - (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other = (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,136 +373,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for listing private connections.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListPrivateConnectionsRequest) com.google.cloud.datastream.v1.ListPrivateConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,14 +509,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance(); } @@ -573,17 +530,13 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest buildPartial() { - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = - new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -606,39 +559,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest)other); } else { super.mergeFrom(other); return this; @@ -646,9 +598,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other) { - if (other - == com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -698,43 +648,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -744,27 +688,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The parent that owns the collection of private connectivity configurations.
+     * Required. The parent that owns the collection of private connectivity
+     * configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -773,23 +713,21 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The parent that owns the collection of private connectivity configurations.
+     * Required. The parent that owns the collection of private connectivity
+     * configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -797,39 +735,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The parent that owns the collection of private connectivity configurations.
+     * Required. The parent that owns the collection of private connectivity
+     * configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The parent that owns the collection of private connectivity configurations.
+     * Required. The parent that owns the collection of private connectivity
+     * configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -839,23 +768,18 @@ public Builder clearParent() { return this; } /** - * - * *
-     * Required. The parent that owns the collection of private connectivity configurations.
+     * Required. The parent that owns the collection of private connectivity
+     * configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -863,10 +787,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -875,7 +797,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -883,8 +804,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -893,20 +812,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -915,7 +831,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -927,8 +842,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -938,13 +851,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -953,8 +866,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -964,14 +875,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -979,8 +891,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -990,22 +900,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -1015,7 +921,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1025,8 +930,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -1036,14 +939,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1053,20 +954,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1075,21 +974,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1097,35 +995,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1135,21 +1026,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1159,20 +1046,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1181,21 +1066,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1203,35 +1087,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1241,30 +1118,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1274,13 +1147,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListPrivateConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListPrivateConnectionsRequest) - private static final com.google.cloud.datastream.v1.ListPrivateConnectionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.ListPrivateConnectionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(); } @@ -1289,27 +1161,27 @@ public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1324,4 +1196,6 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java index 85a2b1a63223..64f1dcbd5934 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -1,60 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListPrivateConnectionsRequestOrBuilder - extends +public interface ListPrivateConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListPrivateConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
-   * Required. The parent that owns the collection of private connectivity configurations.
+   * Required. The parent that owns the collection of private connectivity
+   * configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
-   * Required. The parent that owns the collection of private connectivity configurations.
+   * Required. The parent that owns the collection of private connectivity
+   * configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -63,14 +38,11 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +52,10 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +65,48 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java index b73413f066be..e126e549d9ca 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response containing a list of private connection configurations.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsResponse} */ -public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPrivateConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsResponse) ListPrivateConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsResponse.newBuilder() to construct. - private ListPrivateConnectionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsResponse() { privateConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -46,37 +27,33 @@ private ListPrivateConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPrivateConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); } public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List privateConnections_; /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -84,13 +61,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List - getPrivateConnectionsList() { + public java.util.List getPrivateConnectionsList() { return privateConnections_; } /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -98,13 +72,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPrivateConnectionsOrBuilderList() { return privateConnections_; } /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -116,8 +88,6 @@ public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -129,8 +99,6 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in return privateConnections_.get(index); } /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -144,19 +112,15 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -165,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -197,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -244,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < privateConnections_.size(); i++) { output.writeMessage(1, privateConnections_.get(i)); } @@ -292,8 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < privateConnections_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, privateConnections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -314,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other = - (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) obj; + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other = (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) obj; - if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getPrivateConnectionsList() + .equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -352,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response containing a list of private connection configurations.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListPrivateConnectionsResponse) com.google.cloud.datastream.v1.ListPrivateConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -500,14 +448,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance(); } @@ -522,18 +469,14 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse buildPartial() { - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result = - new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(this); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result = new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -550,8 +493,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -562,39 +504,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsResponse)other); } else { super.mergeFrom(other); return this; @@ -602,9 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other) { - if (other - == com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance()) return this; if (privateConnectionsBuilder_ == null) { if (!other.privateConnections_.isEmpty()) { if (privateConnections_.isEmpty()) { @@ -623,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsRe privateConnectionsBuilder_ = null; privateConnections_ = other.privateConnections_; bitField0_ = (bitField0_ & ~0x00000001); - privateConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrivateConnectionsFieldBuilder() - : null; + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrivateConnectionsFieldBuilder() : null; } else { privateConnectionsBuilder_.addAllMessages(other.privateConnections_); } @@ -673,40 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.PrivateConnection m = - input.readMessage( - com.google.cloud.datastream.v1.PrivateConnection.parser(), - extensionRegistry); - if (privateConnectionsBuilder_ == null) { - ensurePrivateConnectionsIsMutable(); - privateConnections_.add(m); - } else { - privateConnectionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.PrivateConnection m = + input.readMessage( + com.google.cloud.datastream.v1.PrivateConnection.parser(), + extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,38 +650,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List privateConnections_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePrivateConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - privateConnections_ = - new java.util.ArrayList( - privateConnections_); + privateConnections_ = new java.util.ArrayList(privateConnections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> - privateConnectionsBuilder_; + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> privateConnectionsBuilder_; /** - * - * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsList() { + public java.util.List getPrivateConnectionsList() { if (privateConnectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(privateConnections_); } else { @@ -755,8 +679,6 @@ private void ensurePrivateConnectionsIsMutable() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -771,8 +693,6 @@ public int getPrivateConnectionsCount() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -787,8 +707,6 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in } } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -810,8 +728,6 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -830,8 +746,6 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -852,8 +766,6 @@ public Builder addPrivateConnections(com.google.cloud.datastream.v1.PrivateConne return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -875,8 +787,6 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -895,8 +805,6 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -915,8 +823,6 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -927,7 +833,8 @@ public Builder addAllPrivateConnections( java.lang.Iterable values) { if (privateConnectionsBuilder_ == null) { ensurePrivateConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateConnections_); onChanged(); } else { privateConnectionsBuilder_.addAllMessages(values); @@ -935,8 +842,6 @@ public Builder addAllPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -954,8 +859,6 @@ public Builder clearPrivateConnections() { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -973,8 +876,6 @@ public Builder removePrivateConnections(int index) { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -986,8 +887,6 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -997,22 +896,19 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( int index) { if (privateConnectionsBuilder_ == null) { - return privateConnections_.get(index); - } else { + return privateConnections_.get(index); } else { return privateConnectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsOrBuilderList() { + public java.util.List + getPrivateConnectionsOrBuilderList() { if (privateConnectionsBuilder_ != null) { return privateConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -1020,8 +916,6 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -1029,12 +923,10 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnectionsBuilder() { - return getPrivateConnectionsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); + return getPrivateConnectionsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
@@ -1043,34 +935,26 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnec */ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnectionsBuilder( int index) { - return getPrivateConnectionsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); + return getPrivateConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsBuilderList() { + public java.util.List + getPrivateConnectionsBuilderList() { return getPrivateConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> getPrivateConnectionsFieldBuilder() { if (privateConnectionsBuilder_ == null) { - privateConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, - com.google.cloud.datastream.v1.PrivateConnection.Builder, - com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( + privateConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( privateConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1082,21 +966,19 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnec private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1105,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1128,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1168,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1191,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1244,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1337,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1370,13 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListPrivateConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListPrivateConnectionsResponse) - private static final com.google.cloud.datastream.v1.ListPrivateConnectionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.ListPrivateConnectionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(); } @@ -1385,27 +1226,27 @@ public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1420,4 +1261,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java similarity index 75% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java index 5eefa715442c..8b26670c3934 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListPrivateConnectionsResponseOrBuilder - extends +public interface ListPrivateConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListPrivateConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of private connectivity configurations.
    * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - java.util.List getPrivateConnectionsList(); + java.util.List + getPrivateConnectionsList(); /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -44,8 +25,6 @@ public interface ListPrivateConnectionsResponseOrBuilder */ com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(int index); /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -54,19 +33,15 @@ public interface ListPrivateConnectionsResponseOrBuilder */ int getPrivateConnectionsCount(); /** - * - * *
    * List of private connectivity configurations.
    * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsOrBuilderList(); /** - * - * *
    * List of private connectivity configurations.
    * 
@@ -77,80 +52,65 @@ com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionsO int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java index 1caf0f3be9d9..c51337b89ff4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Route list request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesRequest} */ -public final class ListRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesRequest) ListRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesRequest.newBuilder() to construct. private ListRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRoutesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesRequest.class, - com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1.ListRoutesRequest.class, com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -162,7 +129,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +137,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -189,15 +154,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,18 +172,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -226,29 +188,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -257,18 +219,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -277,29 +235,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -308,7 +266,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -349,7 +307,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -368,19 +327,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListRoutesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListRoutesRequest other = - (com.google.cloud.datastream.v1.ListRoutesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListRoutesRequest other = (com.google.cloud.datastream.v1.ListRoutesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -407,136 +370,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListRoutesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Route list request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListRoutesRequest) com.google.cloud.datastream.v1.ListRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesRequest.class, - com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1.ListRoutesRequest.class, com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListRoutesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -550,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override @@ -571,11 +528,8 @@ public com.google.cloud.datastream.v1.ListRoutesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListRoutesRequest buildPartial() { - com.google.cloud.datastream.v1.ListRoutesRequest result = - new com.google.cloud.datastream.v1.ListRoutesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ListRoutesRequest result = new com.google.cloud.datastream.v1.ListRoutesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -603,39 +557,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListRoutesRequest resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListRoutesRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListRoutesRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.ListRoutesRequest)other); } else { super.mergeFrom(other); return this; @@ -643,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesRequest other) { - if (other == com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -694,43 +646,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -740,27 +686,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -769,23 +710,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -793,39 +731,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -835,23 +762,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -859,10 +780,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -871,7 +790,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -879,8 +797,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -889,20 +805,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -911,7 +824,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -923,8 +835,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -934,13 +844,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -949,8 +859,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -960,14 +868,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -975,8 +884,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -986,22 +893,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -1011,7 +914,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1021,8 +923,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -1032,14 +932,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1049,20 +947,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1071,21 +967,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1093,35 +988,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1131,21 +1019,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1155,20 +1039,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1177,21 +1059,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1199,35 +1080,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1237,30 +1111,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1270,12 +1140,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListRoutesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListRoutesRequest) private static final com.google.cloud.datastream.v1.ListRoutesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListRoutesRequest(); } @@ -1284,27 +1154,27 @@ public static com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1319,4 +1189,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java index 9ea59a4062fb..0065059896fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListRoutesRequestOrBuilder - extends +public interface ListRoutesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListRoutesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -63,14 +36,11 @@ public interface ListRoutesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +63,48 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java index e251d9b9d588..c3e13cea1f36 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Route list response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesResponse} */ -public final class ListRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesResponse) ListRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesResponse.newBuilder() to construct. private ListRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesResponse() { routes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListRoutesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRoutesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesResponse.class, - com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1.ListRoutesResponse.class, com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List routes_; /** - * - * *
    * List of Routes.
    * 
@@ -87,8 +65,6 @@ public java.util.List getRoutesList() { return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -96,13 +72,11 @@ public java.util.List getRoutesList() { * repeated .google.cloud.datastream.v1.Route routes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -114,8 +88,6 @@ public int getRoutesCount() { return routes_.size(); } /** - * - * *
    * List of Routes.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { return routes_.get(index); } /** - * - * *
    * List of Routes.
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { * repeated .google.cloud.datastream.v1.Route routes = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index) { + public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( + int index) { return routes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -241,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, routes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListRoutesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListRoutesResponse other = - (com.google.cloud.datastream.v1.ListRoutesResponse) obj; + com.google.cloud.datastream.v1.ListRoutesResponse other = (com.google.cloud.datastream.v1.ListRoutesResponse) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,135 +307,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListRoutesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Route list response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListRoutesResponse) com.google.cloud.datastream.v1.ListRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesResponse.class, - com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1.ListRoutesResponse.class, com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListRoutesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override @@ -516,18 +469,14 @@ public com.google.cloud.datastream.v1.ListRoutesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListRoutesResponse buildPartial() { - com.google.cloud.datastream.v1.ListRoutesResponse result = - new com.google.cloud.datastream.v1.ListRoutesResponse(this); + com.google.cloud.datastream.v1.ListRoutesResponse result = new com.google.cloud.datastream.v1.ListRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ListRoutesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -555,39 +504,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListRoutesResponse res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListRoutesResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListRoutesResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.ListRoutesResponse)other); } else { super.mergeFrom(other); return this; @@ -595,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesResponse other) { - if (other == com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance()) return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -615,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesResponse other routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRoutesFieldBuilder() - : null; + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; } else { routesBuilder_.addAllMessages(other.routes_); } @@ -665,39 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.Route m = - input.readMessage( - com.google.cloud.datastream.v1.Route.parser(), extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.Route m = + input.readMessage( + com.google.cloud.datastream.v1.Route.parser(), + extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List routes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder> - routesBuilder_; + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> routesBuilder_; /** - * - * *
      * List of Routes.
      * 
@@ -743,8 +679,6 @@ public java.util.List getRoutesList() { } } /** - * - * *
      * List of Routes.
      * 
@@ -759,8 +693,6 @@ public int getRoutesCount() { } } /** - * - * *
      * List of Routes.
      * 
@@ -775,15 +707,14 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder setRoutes(int index, com.google.cloud.datastream.v1.Route value) { + public Builder setRoutes( + int index, com.google.cloud.datastream.v1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -797,8 +728,6 @@ public Builder setRoutes(int index, com.google.cloud.datastream.v1.Route value) return this; } /** - * - * *
      * List of Routes.
      * 
@@ -817,8 +746,6 @@ public Builder setRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -839,15 +766,14 @@ public Builder addRoutes(com.google.cloud.datastream.v1.Route value) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder addRoutes(int index, com.google.cloud.datastream.v1.Route value) { + public Builder addRoutes( + int index, com.google.cloud.datastream.v1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -861,15 +787,14 @@ public Builder addRoutes(int index, com.google.cloud.datastream.v1.Route value) return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder addRoutes(com.google.cloud.datastream.v1.Route.Builder builderForValue) { + public Builder addRoutes( + com.google.cloud.datastream.v1.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -880,8 +805,6 @@ public Builder addRoutes(com.google.cloud.datastream.v1.Route.Builder builderFor return this; } /** - * - * *
      * List of Routes.
      * 
@@ -900,8 +823,6 @@ public Builder addRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -912,7 +833,8 @@ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); @@ -920,8 +842,6 @@ public Builder addAllRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -939,8 +859,6 @@ public Builder clearRoutes() { return this; } /** - * - * *
      * List of Routes.
      * 
@@ -958,44 +876,39 @@ public Builder removeRoutes(int index) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.Route.Builder getRoutesBuilder(int index) { + public com.google.cloud.datastream.v1.Route.Builder getRoutesBuilder( + int index) { return getRoutesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index) { + public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( + int index) { if (routesBuilder_ == null) { - return routes_.get(index); - } else { + return routes_.get(index); } else { return routesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public java.util.List - getRoutesOrBuilderList() { + public java.util.List + getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { @@ -1003,8 +916,6 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int inde } } /** - * - * *
      * List of Routes.
      * 
@@ -1012,47 +923,42 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int inde * repeated .google.cloud.datastream.v1.Route routes = 1; */ public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Route.getDefaultInstance()); + return getRoutesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder(int index) { - return getRoutesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Route.getDefaultInstance()); + public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public java.util.List getRoutesBuilderList() { + public java.util.List + getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder> + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { - routesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, - com.google.cloud.datastream.v1.Route.Builder, - com.google.cloud.datastream.v1.RouteOrBuilder>( - routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); routes_ = null; } return routesBuilder_; @@ -1060,21 +966,19 @@ public java.util.List getRoutesBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1083,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1106,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1146,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1169,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1222,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1315,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1348,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListRoutesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListRoutesResponse) private static final com.google.cloud.datastream.v1.ListRoutesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListRoutesResponse(); } @@ -1362,27 +1226,27 @@ public static com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1397,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java index 78026acebae8..8910746cfde0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListRoutesResponseOrBuilder - extends +public interface ListRoutesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListRoutesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - java.util.List getRoutesList(); + java.util.List + getRoutesList(); /** - * - * *
    * List of Routes.
    * 
@@ -44,8 +25,6 @@ public interface ListRoutesResponseOrBuilder */ com.google.cloud.datastream.v1.Route getRoutes(int index); /** - * - * *
    * List of Routes.
    * 
@@ -54,101 +33,84 @@ public interface ListRoutesResponseOrBuilder */ int getRoutesCount(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - java.util.List getRoutesOrBuilderList(); + java.util.List + getRoutesOrBuilderList(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index); + com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java index 182b52a901a7..8ce4f3d02e15 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for listing all objects for a specific stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsRequest} */ -public final class ListStreamObjectsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListStreamObjectsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsRequest) ListStreamObjectsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamObjectsRequest.newBuilder() to construct. private ListStreamObjectsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamObjectsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,45 +26,38 @@ private ListStreamObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamObjectsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, - com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,15 +99,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of objects to return. Default is 50.
    * The maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -143,12 +113,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -158,7 +125,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -167,15 +133,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -185,15 +150,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -202,7 +168,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,7 +179,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -237,7 +203,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -250,17 +217,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamObjectsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamObjectsRequest other = - (com.google.cloud.datastream.v1.ListStreamObjectsRequest) obj; + com.google.cloud.datastream.v1.ListStreamObjectsRequest other = (com.google.cloud.datastream.v1.ListStreamObjectsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -284,136 +253,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListStreamObjectsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamObjectsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for listing all objects for a specific stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamObjectsRequest) com.google.cloud.datastream.v1.ListStreamObjectsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, - com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamObjectsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +387,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override @@ -446,11 +408,8 @@ public com.google.cloud.datastream.v1.ListStreamObjectsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamObjectsRequest buildPartial() { - com.google.cloud.datastream.v1.ListStreamObjectsRequest result = - new com.google.cloud.datastream.v1.ListStreamObjectsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ListStreamObjectsRequest result = new com.google.cloud.datastream.v1.ListStreamObjectsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -472,39 +431,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamObjectsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamObjectsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsRequest)other); } else { super.mergeFrom(other); return this; @@ -512,8 +470,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsRequest other) { - if (other == com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -553,31 +510,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -587,27 +540,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -616,23 +564,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -640,39 +585,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -682,23 +616,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -706,17 +634,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -724,35 +649,29 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -764,8 +683,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -775,13 +692,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -790,8 +707,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -801,14 +716,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -816,8 +732,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -827,22 +741,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -852,7 +762,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -862,8 +771,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -873,23 +780,21 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -899,12 +804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamObjectsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamObjectsRequest) private static final com.google.cloud.datastream.v1.ListStreamObjectsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamObjectsRequest(); } @@ -913,27 +818,27 @@ public static com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamObjectsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamObjectsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +853,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java index 32bd025d78f9..aa381f59a06e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java @@ -1,74 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamObjectsRequestOrBuilder - extends +public interface ListStreamObjectsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamObjectsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of objects to return. Default is 50.
    * The maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListStreamObjectsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -94,8 +61,8 @@ public interface ListStreamObjectsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java index 799d2d055701..2b6cde55f9b0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response containing the objects for a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsResponse} */ -public final class ListStreamObjectsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListStreamObjectsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsResponse) ListStreamObjectsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamObjectsResponse.newBuilder() to construct. private ListStreamObjectsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamObjectsResponse() { streamObjects_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,37 +26,33 @@ private ListStreamObjectsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamObjectsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, - com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); } public static final int STREAM_OBJECTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List streamObjects_; /** - * - * *
    * List of stream objects.
    * 
@@ -86,8 +64,6 @@ public java.util.List getStreamObje return streamObjects_; } /** - * - * *
    * List of stream objects.
    * 
@@ -95,13 +71,11 @@ public java.util.List getStreamObje * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamObjectsOrBuilderList() { return streamObjects_; } /** - * - * *
    * List of stream objects.
    * 
@@ -113,8 +87,6 @@ public int getStreamObjectsCount() { return streamObjects_.size(); } /** - * - * *
    * List of stream objects.
    * 
@@ -126,8 +98,6 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { return streamObjects_.get(index); } /** - * - * *
    * List of stream objects.
    * 
@@ -135,23 +105,20 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder(int index) { + public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( + int index) { return streamObjects_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -160,29 +127,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -191,7 +158,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < streamObjects_.size(); i++) { output.writeMessage(1, streamObjects_.get(i)); } @@ -220,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streamObjects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streamObjects_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, streamObjects_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamObjectsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamObjectsResponse other = - (com.google.cloud.datastream.v1.ListStreamObjectsResponse) obj; + com.google.cloud.datastream.v1.ListStreamObjectsResponse other = (com.google.cloud.datastream.v1.ListStreamObjectsResponse) obj; - if (!getStreamObjectsList().equals(other.getStreamObjectsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getStreamObjectsList() + .equals(other.getStreamObjectsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +235,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.ListStreamObjectsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamObjectsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response containing the objects for a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamObjectsResponse) com.google.cloud.datastream.v1.ListStreamObjectsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, - com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamObjectsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override @@ -433,18 +395,14 @@ public com.google.cloud.datastream.v1.ListStreamObjectsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamObjectsResponse buildPartial() { - com.google.cloud.datastream.v1.ListStreamObjectsResponse result = - new com.google.cloud.datastream.v1.ListStreamObjectsResponse(this); + com.google.cloud.datastream.v1.ListStreamObjectsResponse result = new com.google.cloud.datastream.v1.ListStreamObjectsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ListStreamObjectsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListStreamObjectsResponse result) { if (streamObjectsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streamObjects_ = java.util.Collections.unmodifiableList(streamObjects_); @@ -467,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamObjectsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamObjectsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsResponse)other); } else { super.mergeFrom(other); return this; @@ -507,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsResponse other) { - if (other == com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance()) return this; if (streamObjectsBuilder_ == null) { if (!other.streamObjects_.isEmpty()) { if (streamObjects_.isEmpty()) { @@ -527,10 +483,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsRespons streamObjectsBuilder_ = null; streamObjects_ = other.streamObjects_; bitField0_ = (bitField0_ & ~0x00000001); - streamObjectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamObjectsFieldBuilder() - : null; + streamObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamObjectsFieldBuilder() : null; } else { streamObjectsBuilder_.addAllMessages(other.streamObjects_); } @@ -567,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.StreamObject m = - input.readMessage( - com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); - if (streamObjectsBuilder_ == null) { - ensureStreamObjectsIsMutable(); - streamObjects_.add(m); - } else { - streamObjectsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.StreamObject m = + input.readMessage( + com.google.cloud.datastream.v1.StreamObject.parser(), + extensionRegistry); + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.add(m); + } else { + streamObjectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,29 +555,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List streamObjects_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamObjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - streamObjects_ = - new java.util.ArrayList(streamObjects_); + streamObjects_ = new java.util.ArrayList(streamObjects_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> - streamObjectsBuilder_; + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> streamObjectsBuilder_; /** - * - * *
      * List of stream objects.
      * 
@@ -639,8 +584,6 @@ public java.util.List getStreamObje } } /** - * - * *
      * List of stream objects.
      * 
@@ -655,8 +598,6 @@ public int getStreamObjectsCount() { } } /** - * - * *
      * List of stream objects.
      * 
@@ -671,15 +612,14 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { } } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public Builder setStreamObjects(int index, com.google.cloud.datastream.v1.StreamObject value) { + public Builder setStreamObjects( + int index, com.google.cloud.datastream.v1.StreamObject value) { if (streamObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -693,8 +633,6 @@ public Builder setStreamObjects(int index, com.google.cloud.datastream.v1.Stream return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -713,8 +651,6 @@ public Builder setStreamObjects( return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -735,15 +671,14 @@ public Builder addStreamObjects(com.google.cloud.datastream.v1.StreamObject valu return this; } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public Builder addStreamObjects(int index, com.google.cloud.datastream.v1.StreamObject value) { + public Builder addStreamObjects( + int index, com.google.cloud.datastream.v1.StreamObject value) { if (streamObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -757,8 +692,6 @@ public Builder addStreamObjects(int index, com.google.cloud.datastream.v1.Stream return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -777,8 +710,6 @@ public Builder addStreamObjects( return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -797,8 +728,6 @@ public Builder addStreamObjects( return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -809,7 +738,8 @@ public Builder addAllStreamObjects( java.lang.Iterable values) { if (streamObjectsBuilder_ == null) { ensureStreamObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamObjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streamObjects_); onChanged(); } else { streamObjectsBuilder_.addAllMessages(values); @@ -817,8 +747,6 @@ public Builder addAllStreamObjects( return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -836,8 +764,6 @@ public Builder clearStreamObjects() { return this; } /** - * - * *
      * List of stream objects.
      * 
@@ -855,20 +781,17 @@ public Builder removeStreamObjects(int index) { return this; } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuilder(int index) { + public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuilder( + int index) { return getStreamObjectsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of stream objects.
      * 
@@ -878,22 +801,19 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuild public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( int index) { if (streamObjectsBuilder_ == null) { - return streamObjects_.get(index); - } else { + return streamObjects_.get(index); } else { return streamObjectsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public java.util.List - getStreamObjectsOrBuilderList() { + public java.util.List + getStreamObjectsOrBuilderList() { if (streamObjectsBuilder_ != null) { return streamObjectsBuilder_.getMessageOrBuilderList(); } else { @@ -901,8 +821,6 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu } } /** - * - * *
      * List of stream objects.
      * 
@@ -910,47 +828,38 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder() { - return getStreamObjectsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); + return getStreamObjectsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder(int index) { - return getStreamObjectsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); + public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder( + int index) { + return getStreamObjectsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); } /** - * - * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public java.util.List - getStreamObjectsBuilderList() { + public java.util.List + getStreamObjectsBuilderList() { return getStreamObjectsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> getStreamObjectsFieldBuilder() { if (streamObjectsBuilder_ == null) { - streamObjectsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + streamObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( streamObjects_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -962,20 +871,18 @@ public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuild private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -984,21 +891,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1006,35 +912,28 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1044,30 +943,26 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1077,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamObjectsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamObjectsResponse) private static final com.google.cloud.datastream.v1.ListStreamObjectsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamObjectsResponse(); } @@ -1091,27 +986,27 @@ public static com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamObjectsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamObjectsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java index fe71d90b326d..989af467cc68 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamObjectsResponseOrBuilder - extends +public interface ListStreamObjectsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamObjectsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - java.util.List getStreamObjectsList(); + java.util.List + getStreamObjectsList(); /** - * - * *
    * List of stream objects.
    * 
@@ -44,8 +25,6 @@ public interface ListStreamObjectsResponseOrBuilder */ com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index); /** - * - * *
    * List of stream objects.
    * 
@@ -54,49 +33,41 @@ public interface ListStreamObjectsResponseOrBuilder */ int getStreamObjectsCount(); /** - * - * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - java.util.List + java.util.List getStreamObjectsOrBuilderList(); /** - * - * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder(int index); + com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java index 0ac98ca6ccd4..2f1e16d2c9ec 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for listing streams.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsRequest} */ -public final class ListStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsRequest) ListStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsRequest.newBuilder() to construct. private ListStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsRequest.class, - com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamsRequest.class, com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -137,7 +108,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -146,12 +116,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -160,7 +127,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -169,15 +135,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -186,15 +151,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -203,18 +169,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -223,29 +185,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -254,18 +216,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -274,29 +232,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -305,7 +263,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,7 +274,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -346,7 +304,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -365,19 +324,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamsRequest other = - (com.google.cloud.datastream.v1.ListStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListStreamsRequest other = (com.google.cloud.datastream.v1.ListStreamsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,135 +368,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for listing streams.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamsRequest) com.google.cloud.datastream.v1.ListStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsRequest.class, - com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamsRequest.class, com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -547,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override @@ -568,11 +525,8 @@ public com.google.cloud.datastream.v1.ListStreamsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamsRequest buildPartial() { - com.google.cloud.datastream.v1.ListStreamsRequest result = - new com.google.cloud.datastream.v1.ListStreamsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ListStreamsRequest result = new com.google.cloud.datastream.v1.ListStreamsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -600,39 +554,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamsRequest res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamsRequest)other); } else { super.mergeFrom(other); return this; @@ -640,8 +593,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsRequest other) { - if (other == com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -691,43 +643,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,27 +683,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -766,23 +707,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -790,39 +728,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -832,23 +759,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -856,10 +777,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -867,7 +786,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -875,8 +793,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -884,20 +800,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -905,7 +818,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -917,8 +829,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -927,13 +837,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -942,8 +852,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -952,14 +860,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -967,8 +876,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -977,22 +884,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -1001,7 +904,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1011,8 +913,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -1021,14 +921,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1038,20 +936,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1060,21 +956,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1082,35 +977,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1120,21 +1008,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1144,20 +1028,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1166,21 +1048,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1188,35 +1069,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1226,30 +1100,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1259,12 +1129,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamsRequest) private static final com.google.cloud.datastream.v1.ListStreamsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamsRequest(); } @@ -1273,27 +1143,27 @@ public static com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,4 +1178,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java index a28162e63c72..37f5d5879c4b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamsRequestOrBuilder - extends +public interface ListStreamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -62,14 +35,11 @@ public interface ListStreamsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java index a7ca44ce2f9a..f701d63e1dcc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response message for listing streams.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsResponse} */ -public final class ListStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsResponse) ListStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsResponse.newBuilder() to construct. private ListStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsResponse() { streams_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListStreamsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsResponse.class, - com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamsResponse.class, com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
    * List of streams
    * 
@@ -87,8 +65,6 @@ public java.util.List getStreamsList() { return streams_; } /** - * - * *
    * List of streams
    * 
@@ -96,13 +72,11 @@ public java.util.List getStreamsList() { * repeated .google.cloud.datastream.v1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
    * List of streams
    * 
@@ -114,8 +88,6 @@ public int getStreamsCount() { return streams_.size(); } /** - * - * *
    * List of streams
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { return streams_.get(index); } /** - * - * *
    * List of streams
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { * repeated .google.cloud.datastream.v1.Stream streams = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( + int index) { return streams_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -241,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, streams_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamsResponse other = - (com.google.cloud.datastream.v1.ListStreamsResponse) obj; + com.google.cloud.datastream.v1.ListStreamsResponse other = (com.google.cloud.datastream.v1.ListStreamsResponse) obj; - if (!getStreamsList().equals(other.getStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,135 +307,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for listing streams.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamsResponse) com.google.cloud.datastream.v1.ListStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsResponse.class, - com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamsResponse.class, com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -495,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override @@ -516,18 +469,14 @@ public com.google.cloud.datastream.v1.ListStreamsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamsResponse buildPartial() { - com.google.cloud.datastream.v1.ListStreamsResponse result = - new com.google.cloud.datastream.v1.ListStreamsResponse(this); + com.google.cloud.datastream.v1.ListStreamsResponse result = new com.google.cloud.datastream.v1.ListStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ListStreamsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListStreamsResponse result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -555,39 +504,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamsResponse re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamsResponse)other); } else { super.mergeFrom(other); return this; @@ -595,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsResponse other) { - if (other == com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance()) return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -615,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsResponse othe streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -665,39 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.Stream m = - input.readMessage( - com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.Stream m = + input.readMessage( + com.google.cloud.datastream.v1.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -707,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> - streamsBuilder_; + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamsBuilder_; /** - * - * *
      * List of streams
      * 
@@ -743,8 +679,6 @@ public java.util.List getStreamsList() { } } /** - * - * *
      * List of streams
      * 
@@ -759,8 +693,6 @@ public int getStreamsCount() { } } /** - * - * *
      * List of streams
      * 
@@ -775,15 +707,14 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder setStreams(int index, com.google.cloud.datastream.v1.Stream value) { + public Builder setStreams( + int index, com.google.cloud.datastream.v1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -797,8 +728,6 @@ public Builder setStreams(int index, com.google.cloud.datastream.v1.Stream value return this; } /** - * - * *
      * List of streams
      * 
@@ -817,8 +746,6 @@ public Builder setStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -839,15 +766,14 @@ public Builder addStreams(com.google.cloud.datastream.v1.Stream value) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder addStreams(int index, com.google.cloud.datastream.v1.Stream value) { + public Builder addStreams( + int index, com.google.cloud.datastream.v1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -861,15 +787,14 @@ public Builder addStreams(int index, com.google.cloud.datastream.v1.Stream value return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder addStreams(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder addStreams( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(builderForValue.build()); @@ -880,8 +805,6 @@ public Builder addStreams(com.google.cloud.datastream.v1.Stream.Builder builderF return this; } /** - * - * *
      * List of streams
      * 
@@ -900,8 +823,6 @@ public Builder addStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -912,7 +833,8 @@ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -920,8 +842,6 @@ public Builder addAllStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -939,8 +859,6 @@ public Builder clearStreams() { return this; } /** - * - * *
      * List of streams
      * 
@@ -958,44 +876,39 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.Stream.Builder getStreamsBuilder(int index) { + public com.google.cloud.datastream.v1.Stream.Builder getStreamsBuilder( + int index) { return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( + int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -1003,8 +916,6 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int in } } /** - * - * *
      * List of streams
      * 
@@ -1012,47 +923,42 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int in * repeated .google.cloud.datastream.v1.Stream streams = 1; */ public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder(int index) { - return getStreamsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Stream.getDefaultInstance()); + public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder( + int index) { + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public java.util.List getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder>( - streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; @@ -1060,21 +966,19 @@ public java.util.List getStreamsB private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1083,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1106,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1146,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1169,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1222,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1315,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1348,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamsResponse) private static final com.google.cloud.datastream.v1.ListStreamsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamsResponse(); } @@ -1362,27 +1226,27 @@ public static com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1397,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java index 81f14af846c1..1ed1443cc9df 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamsResponseOrBuilder - extends +public interface ListStreamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
    * List of streams
    * 
@@ -44,8 +25,6 @@ public interface ListStreamsResponseOrBuilder */ com.google.cloud.datastream.v1.Stream getStreams(int index); /** - * - * *
    * List of streams
    * 
@@ -54,102 +33,84 @@ public interface ListStreamsResponseOrBuilder */ int getStreamsCount(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index); + com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java similarity index 59% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java index fadd25ed4030..51e28fa69a99 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for looking up a specific stream object by its source object
  * identifier.
@@ -28,61 +11,53 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest}
  */
-public final class LookupStreamObjectRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LookupStreamObjectRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.LookupStreamObjectRequest)
     LookupStreamObjectRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LookupStreamObjectRequest.newBuilder() to construct.
   private LookupStreamObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LookupStreamObjectRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LookupStreamObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamProto
-        .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamProto
-        .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.LookupStreamObjectRequest.class,
-            com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
+            com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
-   *
-   *
    * 
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -126,16 +99,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int SOURCE_OBJECT_IDENTIFIER_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObjectIdentifier_; /** - * - * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceObjectIdentifier field is set. */ @java.lang.Override @@ -143,45 +111,30 @@ public boolean hasSourceObjectIdentifier() { return sourceObjectIdentifier_ != null; } /** - * - * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceObjectIdentifier. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { - return sourceObjectIdentifier_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; } /** - * - * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder - getSourceObjectIdentifierOrBuilder() { - return sourceObjectIdentifier_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObjectIdentifier_; + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder() { + return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -193,7 +146,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -213,8 +167,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceObjectIdentifier_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSourceObjectIdentifier()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSourceObjectIdentifier()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -224,18 +178,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.LookupStreamObjectRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.LookupStreamObjectRequest other = - (com.google.cloud.datastream.v1.LookupStreamObjectRequest) obj; + com.google.cloud.datastream.v1.LookupStreamObjectRequest other = (com.google.cloud.datastream.v1.LookupStreamObjectRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasSourceObjectIdentifier() != other.hasSourceObjectIdentifier()) return false; if (hasSourceObjectIdentifier()) { - if (!getSourceObjectIdentifier().equals(other.getSourceObjectIdentifier())) return false; + if (!getSourceObjectIdentifier() + .equals(other.getSourceObjectIdentifier())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -260,104 +215,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.LookupStreamObjectRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.LookupStreamObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for looking up a specific stream object by its source object
    * identifier.
@@ -365,32 +312,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.LookupStreamObjectRequest)
       com.google.cloud.datastream.v1.LookupStreamObjectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.LookupStreamObjectRequest.class,
-              com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
+              com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.LookupStreamObjectRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -405,9 +353,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -426,11 +374,8 @@ public com.google.cloud.datastream.v1.LookupStreamObjectRequest build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.LookupStreamObjectRequest buildPartial() {
-      com.google.cloud.datastream.v1.LookupStreamObjectRequest result =
-          new com.google.cloud.datastream.v1.LookupStreamObjectRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1.LookupStreamObjectRequest result = new com.google.cloud.datastream.v1.LookupStreamObjectRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -441,10 +386,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.LookupStreamObjectRequ
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.sourceObjectIdentifier_ =
-            sourceObjectIdentifierBuilder_ == null
-                ? sourceObjectIdentifier_
-                : sourceObjectIdentifierBuilder_.build();
+        result.sourceObjectIdentifier_ = sourceObjectIdentifierBuilder_ == null
+            ? sourceObjectIdentifier_
+            : sourceObjectIdentifierBuilder_.build();
       }
     }
 
@@ -452,39 +396,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.LookupStreamObjectRequ
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.LookupStreamObjectRequest) {
-        return mergeFrom((com.google.cloud.datastream.v1.LookupStreamObjectRequest) other);
+        return mergeFrom((com.google.cloud.datastream.v1.LookupStreamObjectRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -492,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.LookupStreamObjectRequest other) {
-      if (other == com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance()) return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -528,26 +470,24 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                parent_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(
-                    getSourceObjectIdentifierFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              parent_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSourceObjectIdentifierFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -557,27 +497,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -586,23 +521,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -610,39 +542,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -652,23 +573,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -678,61 +593,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObjectIdentifier_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> - sourceObjectIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> sourceObjectIdentifierBuilder_; /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceObjectIdentifier field is set. */ public boolean hasSourceObjectIdentifier() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceObjectIdentifier. */ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { if (sourceObjectIdentifierBuilder_ == null) { - return sourceObjectIdentifier_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; } else { return sourceObjectIdentifierBuilder_.getMessage(); } } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setSourceObjectIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + public Builder setSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -746,15 +641,11 @@ public Builder setSourceObjectIdentifier( return this; } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceObjectIdentifier( com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) { @@ -768,23 +659,17 @@ public Builder setSourceObjectIdentifier( return this; } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeSourceObjectIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + public Builder mergeSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectIdentifierBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && sourceObjectIdentifier_ != null - && sourceObjectIdentifier_ - != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + sourceObjectIdentifier_ != null && + sourceObjectIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { getSourceObjectIdentifierBuilder().mergeFrom(value); } else { sourceObjectIdentifier_ = value; @@ -797,15 +682,11 @@ public Builder mergeSourceObjectIdentifier( return this; } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSourceObjectIdentifier() { bitField0_ = (bitField0_ & ~0x00000002); @@ -818,73 +699,55 @@ public Builder clearSourceObjectIdentifier() { return this; } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder - getSourceObjectIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceObjectIdentifierBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceObjectIdentifierFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder - getSourceObjectIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder() { if (sourceObjectIdentifierBuilder_ != null) { return sourceObjectIdentifierBuilder_.getMessageOrBuilder(); } else { - return sourceObjectIdentifier_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null ? + com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; } } /** - * - * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> getSourceObjectIdentifierFieldBuilder() { if (sourceObjectIdentifierBuilder_ == null) { - sourceObjectIdentifierBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( - getSourceObjectIdentifier(), getParentForChildren(), isClean()); + sourceObjectIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( + getSourceObjectIdentifier(), + getParentForChildren(), + isClean()); sourceObjectIdentifier_ = null; } return sourceObjectIdentifierBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.LookupStreamObjectRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.LookupStreamObjectRequest) private static final com.google.cloud.datastream.v1.LookupStreamObjectRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.LookupStreamObjectRequest(); } @@ -908,27 +771,27 @@ public static com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupStreamObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupStreamObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -943,4 +806,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java new file mode 100644 index 000000000000..fb7a4690900b --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface LookupStreamObjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.LookupStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the sourceObjectIdentifier field is set. + */ + boolean hasSourceObjectIdentifier(); + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The sourceObjectIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java index 0e93e426cef6..54be20a98b2c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlColumn} */ -public final class MysqlColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlColumn) MysqlColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlColumn.newBuilder() to construct. private MysqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlColumn() { column_ = ""; dataType_ = ""; @@ -45,43 +27,38 @@ private MysqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlColumn.class, - com.google.cloud.datastream.v1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1.MysqlColumn.class, com.google.cloud.datastream.v1.MysqlColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -121,19 +98,15 @@ public com.google.protobuf.ByteString getColumnBytes() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The dataType. */ @java.lang.Override @@ -142,30 +115,30 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -176,14 +149,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -192,18 +162,14 @@ public int getLength() { } public static final int COLLATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object collation_ = ""; /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The collation. */ @java.lang.Override @@ -212,29 +178,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -245,14 +211,11 @@ public com.google.protobuf.ByteString getCollationBytes() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_ = false; /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; - * * @return The primaryKey. */ @java.lang.Override @@ -263,14 +226,11 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_ = false; /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; - * * @return The nullable. */ @java.lang.Override @@ -281,14 +241,11 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_ = 0; /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ @java.lang.Override @@ -297,7 +254,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -347,19 +304,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -369,21 +330,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlColumn other = - (com.google.cloud.datastream.v1.MysqlColumn) obj; - - if (!getColumn().equals(other.getColumn())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (!getCollation().equals(other.getCollation())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.MysqlColumn other = (com.google.cloud.datastream.v1.MysqlColumn) obj; + + if (!getColumn() + .equals(other.getColumn())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (!getCollation() + .equals(other.getCollation())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,9 +371,11 @@ public int hashCode() { hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -414,136 +383,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlColumn} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlColumn) com.google.cloud.datastream.v1.MysqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlColumn.class, - com.google.cloud.datastream.v1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1.MysqlColumn.class, com.google.cloud.datastream.v1.MysqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlColumn.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override @@ -580,11 +543,8 @@ public com.google.cloud.datastream.v1.MysqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlColumn buildPartial() { - com.google.cloud.datastream.v1.MysqlColumn result = - new com.google.cloud.datastream.v1.MysqlColumn(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.MysqlColumn result = new com.google.cloud.datastream.v1.MysqlColumn(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -618,39 +578,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlColumn result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlColumn) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlColumn)other); } else { super.mergeFrom(other); return this; @@ -712,55 +671,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - collation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - nullable_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + nullable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -770,25 +721,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object column_ = ""; /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -797,21 +745,20 @@ public java.lang.String getColumn() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The bytes for column. */ - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -819,35 +766,28 @@ public com.google.protobuf.ByteString getColumnBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return This builder for chaining. */ public Builder clearColumn() { @@ -857,21 +797,17 @@ public Builder clearColumn() { return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -881,21 +817,19 @@ public Builder setColumnBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -904,22 +838,21 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -927,37 +860,30 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return This builder for chaining. */ public Builder clearDataType() { @@ -967,22 +893,18 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -990,16 +912,13 @@ public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int length_; + private int length_ ; /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -1007,33 +926,27 @@ public int getLength() { return length_; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1045,20 +958,18 @@ public Builder clearLength() { private java.lang.Object collation_ = ""; /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -1067,21 +978,20 @@ public java.lang.String getCollation() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The bytes for collation. */ - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -1089,35 +999,28 @@ public com.google.protobuf.ByteString getCollationBytes() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } collation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return This builder for chaining. */ public Builder clearCollation() { @@ -1127,21 +1030,17 @@ public Builder clearCollation() { return this; } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collation_ = value; bitField0_ |= 0x00000008; @@ -1149,16 +1048,13 @@ public Builder setCollationBytes(com.google.protobuf.ByteString value) { return this; } - private boolean primaryKey_; + private boolean primaryKey_ ; /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @return The primaryKey. */ @java.lang.Override @@ -1166,33 +1062,27 @@ public boolean getPrimaryKey() { return primaryKey_; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1202,16 +1092,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @return The nullable. */ @java.lang.Override @@ -1219,33 +1106,27 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1255,16 +1136,13 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_; + private int ordinalPosition_ ; /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ @java.lang.Override @@ -1272,33 +1150,27 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1307,9 +1179,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1319,12 +1191,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlColumn) private static final com.google.cloud.datastream.v1.MysqlColumn DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlColumn(); } @@ -1333,27 +1205,27 @@ public static com.google.cloud.datastream.v1.MysqlColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1368,4 +1240,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java index e99731d1f489..56a7195e6127 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java @@ -1,153 +1,110 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlColumnOrBuilder - extends +public interface MysqlColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ java.lang.String getColumn(); /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ - com.google.protobuf.ByteString getColumnBytes(); + com.google.protobuf.ByteString + getColumnBytes(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The collation. */ java.lang.String getCollation(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The bytes for collation. */ - com.google.protobuf.ByteString getCollationBytes(); + com.google.protobuf.ByteString + getCollationBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java index db8824f4bfd8..6cce2361f24c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL database.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlDatabase} */ -public final class MysqlDatabase extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlDatabase extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlDatabase) MysqlDatabaseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlDatabase.newBuilder() to construct. private MysqlDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlDatabase() { database_ = ""; mysqlTables_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private MysqlDatabase() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlDatabase(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlDatabase.class, - com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1.MysqlDatabase.class, com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
    * Database name.
    * 
* * string database = 1; - * * @return The database. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * *
    * Database name.
    * 
* * string database = 1; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } public static final int MYSQL_TABLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List mysqlTables_; /** - * - * *
    * Tables in the database.
    * 
@@ -137,8 +111,6 @@ public java.util.List getMysqlTablesL return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -146,13 +118,11 @@ public java.util.List getMysqlTablesL * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlTablesOrBuilderList() { return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -164,8 +134,6 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** - * - * *
    * Tables in the database.
    * 
@@ -177,8 +145,6 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { return mysqlTables_.get(index); } /** - * - * *
    * Tables in the database.
    * 
@@ -186,12 +152,12 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index) { + public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( + int index) { return mysqlTables_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } for (int i = 0; i < mysqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, mysqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlDatabase)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlDatabase other = - (com.google.cloud.datastream.v1.MysqlDatabase) obj; + com.google.cloud.datastream.v1.MysqlDatabase other = (com.google.cloud.datastream.v1.MysqlDatabase) obj; - if (!getDatabase().equals(other.getDatabase())) return false; - if (!getMysqlTablesList().equals(other.getMysqlTablesList())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getMysqlTablesList() + .equals(other.getMysqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlDatabase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlDatabase} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlDatabase) com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlDatabase.class, - com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1.MysqlDatabase.class, com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlDatabase.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override @@ -432,12 +395,9 @@ public com.google.cloud.datastream.v1.MysqlDatabase build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlDatabase buildPartial() { - com.google.cloud.datastream.v1.MysqlDatabase result = - new com.google.cloud.datastream.v1.MysqlDatabase(this); + com.google.cloud.datastream.v1.MysqlDatabase result = new com.google.cloud.datastream.v1.MysqlDatabase(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlDatabase result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlDatabase) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlDatabase) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlDatabase)other); } else { super.mergeFrom(other); return this; @@ -529,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlDatabase other) { mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlTablesFieldBuilder() - : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlTablesFieldBuilder() : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -564,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.MysqlTable m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlTable.parser(), extensionRegistry); - if (mysqlTablesBuilder_ == null) { - ensureMysqlTablesIsMutable(); - mysqlTables_.add(m); - } else { - mysqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.MysqlTable m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlTable.parser(), + extensionRegistry); + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(m); + } else { + mysqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,25 +555,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * *
      * Database name.
      * 
* * string database = 1; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -626,21 +579,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
      * Database name.
      * 
* * string database = 1; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -648,35 +600,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
      * Database name.
      * 
* * string database = 1; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Database name.
      * 
* * string database = 1; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -686,21 +631,17 @@ public Builder clearDatabase() { return this; } /** - * - * *
      * Database name.
      * 
* * string database = 1; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -709,25 +650,18 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlTables_ = - new java.util.ArrayList(mysqlTables_); + mysqlTables_ = new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, - com.google.cloud.datastream.v1.MysqlTable.Builder, - com.google.cloud.datastream.v1.MysqlTableOrBuilder> - mysqlTablesBuilder_; + com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder> mysqlTablesBuilder_; /** - * - * *
      * Tables in the database.
      * 
@@ -742,8 +676,6 @@ public java.util.List getMysqlTablesL } } /** - * - * *
      * Tables in the database.
      * 
@@ -758,8 +690,6 @@ public int getMysqlTablesCount() { } } /** - * - * *
      * Tables in the database.
      * 
@@ -774,15 +704,14 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { } } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public Builder setMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTable value) { + public Builder setMysqlTables( + int index, com.google.cloud.datastream.v1.MysqlTable value) { if (mysqlTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -796,8 +725,6 @@ public Builder setMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTab return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -816,8 +743,6 @@ public Builder setMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -838,15 +763,14 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1.MysqlTable value) { return this; } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public Builder addMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTable value) { + public Builder addMysqlTables( + int index, com.google.cloud.datastream.v1.MysqlTable value) { if (mysqlTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -860,8 +784,6 @@ public Builder addMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTab return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -880,8 +802,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -900,8 +820,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -912,7 +830,8 @@ public Builder addAllMysqlTables( java.lang.Iterable values) { if (mysqlTablesBuilder_ == null) { ensureMysqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlTables_); onChanged(); } else { mysqlTablesBuilder_.addAllMessages(values); @@ -920,8 +839,6 @@ public Builder addAllMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -939,8 +856,6 @@ public Builder clearMysqlTables() { return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -958,44 +873,39 @@ public Builder removeMysqlTables(int index) { return this; } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTable.Builder getMysqlTablesBuilder(int index) { + public com.google.cloud.datastream.v1.MysqlTable.Builder getMysqlTablesBuilder( + int index) { return getMysqlTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index) { + public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( + int index) { if (mysqlTablesBuilder_ == null) { - return mysqlTables_.get(index); - } else { + return mysqlTables_.get(index); } else { return mysqlTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesOrBuilderList() { + public java.util.List + getMysqlTablesOrBuilderList() { if (mysqlTablesBuilder_ != null) { return mysqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1003,8 +913,6 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde } } /** - * - * *
      * Tables in the database.
      * 
@@ -1012,55 +920,49 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder() { - return getMysqlTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder(int index) { - return getMysqlTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); + public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder( + int index) { + return getMysqlTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesBuilderList() { + public java.util.List + getMysqlTablesBuilderList() { return getMysqlTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, - com.google.cloud.datastream.v1.MysqlTable.Builder, - com.google.cloud.datastream.v1.MysqlTableOrBuilder> + com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder> getMysqlTablesFieldBuilder() { if (mysqlTablesBuilder_ == null) { - mysqlTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, - com.google.cloud.datastream.v1.MysqlTable.Builder, - com.google.cloud.datastream.v1.MysqlTableOrBuilder>( - mysqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + mysqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder>( + mysqlTables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); mysqlTables_ = null; } return mysqlTablesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1070,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlDatabase) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlDatabase) private static final com.google.cloud.datastream.v1.MysqlDatabase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlDatabase(); } @@ -1084,27 +986,27 @@ public static com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlDatabase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlDatabase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java index ab3edfc2da4b..95613a1ad18b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlDatabaseOrBuilder - extends +public interface MysqlDatabaseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlDatabase) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Database name.
    * 
* * string database = 1; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
    * Database name.
    * 
* * string database = 1; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - java.util.List getMysqlTablesList(); + java.util.List + getMysqlTablesList(); /** - * - * *
    * Tables in the database.
    * 
@@ -69,8 +45,6 @@ public interface MysqlDatabaseOrBuilder */ com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index); /** - * - * *
    * Tables in the database.
    * 
@@ -79,24 +53,21 @@ public interface MysqlDatabaseOrBuilder */ int getMysqlTablesCount(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - java.util.List + java.util.List getMysqlTablesOrBuilderList(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index); + com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java index 11421931ef78..0a0e7bd13252 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} */ -public final class MysqlProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlProfile) MysqlProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlProfile.newBuilder() to construct. private MysqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlProfile() { hostname_ = ""; username_ = ""; @@ -45,43 +27,38 @@ private MysqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlProfile.class, - com.google.cloud.datastream.v1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1.MysqlProfile.class, com.google.cloud.datastream.v1.MysqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -123,14 +100,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -139,18 +113,14 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -159,29 +129,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -190,20 +160,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -212,31 +176,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -247,14 +209,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int SSL_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datastream.v1.MysqlSslConfig sslConfig_; /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -262,25 +221,18 @@ public boolean hasSslConfig() { return sslConfig_ != null; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { - return sslConfig_ == null - ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
@@ -289,13 +241,10 @@ public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null - ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +256,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -336,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -345,7 +296,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (sslConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSslConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSslConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,21 +307,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlProfile other = - (com.google.cloud.datastream.v1.MysqlProfile) obj; + com.google.cloud.datastream.v1.MysqlProfile other = (com.google.cloud.datastream.v1.MysqlProfile) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (hasSslConfig() != other.hasSslConfig()) return false; if (hasSslConfig()) { - if (!getSslConfig().equals(other.getSslConfig())) return false; + if (!getSslConfig() + .equals(other.getSslConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -399,136 +355,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlProfile) com.google.cloud.datastream.v1.MysqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlProfile.class, - com.google.cloud.datastream.v1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1.MysqlProfile.class, com.google.cloud.datastream.v1.MysqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override @@ -567,11 +517,8 @@ public com.google.cloud.datastream.v1.MysqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfile buildPartial() { - com.google.cloud.datastream.v1.MysqlProfile result = - new com.google.cloud.datastream.v1.MysqlProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.MysqlProfile result = new com.google.cloud.datastream.v1.MysqlProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -591,7 +538,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlProfile result) { result.password_ = password_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); + result.sslConfig_ = sslConfigBuilder_ == null + ? sslConfig_ + : sslConfigBuilder_.build(); } } @@ -599,39 +548,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlProfile result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlProfile) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlProfile)other); } else { super.mergeFrom(other); return this; @@ -687,43 +635,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getSslConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,25 +677,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -760,21 +701,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -782,35 +722,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -820,21 +753,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -842,16 +771,13 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -859,33 +785,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -897,20 +817,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -919,21 +837,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -941,35 +858,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -979,21 +889,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1003,22 +909,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1027,23 +929,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1051,39 +950,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { @@ -1093,23 +981,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1119,47 +1001,34 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.MysqlSslConfig sslConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, - com.google.cloud.datastream.v1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> - sslConfigBuilder_; + com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> sslConfigBuilder_; /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ public boolean hasSslConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { if (sslConfigBuilder_ == null) { - return sslConfig_ == null - ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } else { return sslConfigBuilder_.getMessage(); } } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1180,8 +1049,6 @@ public Builder setSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1200,8 +1067,6 @@ public Builder setSslConfig( return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1210,9 +1075,9 @@ public Builder setSslConfig( */ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) { if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && sslConfig_ != null - && sslConfig_ != com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + sslConfig_ != null && + sslConfig_ != com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) { getSslConfigBuilder().mergeFrom(value); } else { sslConfig_ = value; @@ -1225,8 +1090,6 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig valu return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1244,8 +1107,6 @@ public Builder clearSslConfig() { return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1258,8 +1119,6 @@ public com.google.cloud.datastream.v1.MysqlSslConfig.Builder getSslConfigBuilder return getSslConfigFieldBuilder().getBuilder(); } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1270,14 +1129,11 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil if (sslConfigBuilder_ != null) { return sslConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null - ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? + com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1285,24 +1141,21 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, - com.google.cloud.datastream.v1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> + com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> getSslConfigFieldBuilder() { if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, - com.google.cloud.datastream.v1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder>( - getSslConfig(), getParentForChildren(), isClean()); + sslConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder>( + getSslConfig(), + getParentForChildren(), + isClean()); sslConfig_ = null; } return sslConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1312,12 +1165,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlProfile) private static final com.google.cloud.datastream.v1.MysqlProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlProfile(); } @@ -1326,27 +1179,27 @@ public static com.google.cloud.datastream.v1.MysqlProfile getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1361,4 +1214,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java index 389974a267b2..588bbd088e73 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java @@ -1,147 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlProfileOrBuilder - extends +public interface MysqlProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ boolean hasSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java index fa7651656591..cbb6a7e26a0b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL database structure
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlRdbms} */ -public final class MysqlRdbms extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlRdbms extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlRdbms) MysqlRdbmsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlRdbms.newBuilder() to construct. private MysqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlRdbms() { mysqlDatabases_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlRdbms.class, - com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1.MysqlRdbms.class, com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); } public static final int MYSQL_DATABASES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List mysqlDatabases_; /** - * - * *
    * Mysql databases on the server
    * 
@@ -85,8 +63,6 @@ public java.util.List getMysqlData return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -94,13 +70,11 @@ public java.util.List getMysqlData * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlDatabasesOrBuilderList() { return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -112,8 +86,6 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) return mysqlDatabases_.get(index); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -140,7 +110,6 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -166,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mysqlDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mysqlDatabases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, mysqlDatabases_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlRdbms other = - (com.google.cloud.datastream.v1.MysqlRdbms) obj; + com.google.cloud.datastream.v1.MysqlRdbms other = (com.google.cloud.datastream.v1.MysqlRdbms) obj; - if (!getMysqlDatabasesList().equals(other.getMysqlDatabasesList())) return false; + if (!getMysqlDatabasesList() + .equals(other.getMysqlDatabasesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,136 +176,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database structure
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlRdbms} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlRdbms) com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlRdbms.class, - com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1.MysqlRdbms.class, com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlRdbms.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override @@ -371,12 +336,9 @@ public com.google.cloud.datastream.v1.MysqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms buildPartial() { - com.google.cloud.datastream.v1.MysqlRdbms result = - new com.google.cloud.datastream.v1.MysqlRdbms(this); + com.google.cloud.datastream.v1.MysqlRdbms result = new com.google.cloud.datastream.v1.MysqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -401,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlRdbms result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms)other); } else { super.mergeFrom(other); return this; @@ -460,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlRdbms other) { mysqlDatabasesBuilder_ = null; mysqlDatabases_ = other.mysqlDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlDatabasesFieldBuilder() - : null; + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlDatabasesFieldBuilder() : null; } else { mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); } @@ -495,26 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.MysqlDatabase m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlDatabase.parser(), extensionRegistry); - if (mysqlDatabasesBuilder_ == null) { - ensureMysqlDatabasesIsMutable(); - mysqlDatabases_.add(m); - } else { - mysqlDatabasesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.MysqlDatabase m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlDatabase.parser(), + extensionRegistry); + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(m); + } else { + mysqlDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -524,29 +483,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List mysqlDatabases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = - new java.util.ArrayList(mysqlDatabases_); + mysqlDatabases_ = new java.util.ArrayList(mysqlDatabases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, - com.google.cloud.datastream.v1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> - mysqlDatabasesBuilder_; + com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> mysqlDatabasesBuilder_; /** - * - * *
      * Mysql databases on the server
      * 
@@ -561,8 +512,6 @@ public java.util.List getMysqlData } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -577,8 +526,6 @@ public int getMysqlDatabasesCount() { } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -593,8 +540,6 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -616,8 +561,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -636,8 +579,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -658,8 +599,6 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1.MysqlDatabase va return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -681,8 +620,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -701,8 +638,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -721,8 +656,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -733,7 +666,8 @@ public Builder addAllMysqlDatabases( java.lang.Iterable values) { if (mysqlDatabasesBuilder_ == null) { ensureMysqlDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlDatabases_); onChanged(); } else { mysqlDatabasesBuilder_.addAllMessages(values); @@ -741,8 +675,6 @@ public Builder addAllMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -760,8 +692,6 @@ public Builder clearMysqlDatabases() { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -779,8 +709,6 @@ public Builder removeMysqlDatabases(int index) { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -792,8 +720,6 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -803,22 +729,19 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( int index) { if (mysqlDatabasesBuilder_ == null) { - return mysqlDatabases_.get(index); - } else { + return mysqlDatabases_.get(index); } else { return mysqlDatabasesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesOrBuilderList() { + public java.util.List + getMysqlDatabasesOrBuilderList() { if (mysqlDatabasesBuilder_ != null) { return mysqlDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -826,8 +749,6 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -835,12 +756,10 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBuilder() { - return getMysqlDatabasesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -849,34 +768,26 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBui */ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBuilder( int index) { - return getMysqlDatabasesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesBuilderList() { + public java.util.List + getMysqlDatabasesBuilderList() { return getMysqlDatabasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, - com.google.cloud.datastream.v1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> + com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> getMysqlDatabasesFieldBuilder() { if (mysqlDatabasesBuilder_ == null) { - mysqlDatabasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, - com.google.cloud.datastream.v1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder>( + mysqlDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder>( mysqlDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -885,9 +796,9 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBui } return mysqlDatabasesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -897,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlRdbms) private static final com.google.cloud.datastream.v1.MysqlRdbms DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlRdbms(); } @@ -911,27 +822,27 @@ public static com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -946,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java similarity index 62% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java index 3ede5e208825..b9ba684bb8b5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlRdbmsOrBuilder - extends +public interface MysqlRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - java.util.List getMysqlDatabasesList(); + java.util.List + getMysqlDatabasesList(); /** - * - * *
    * Mysql databases on the server
    * 
@@ -44,8 +25,6 @@ public interface MysqlRdbmsOrBuilder */ com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index); /** - * - * *
    * Mysql databases on the server
    * 
@@ -54,24 +33,21 @@ public interface MysqlRdbmsOrBuilder */ int getMysqlDatabasesCount(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - java.util.List + java.util.List getMysqlDatabasesOrBuilderList(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder(int index); + com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index c3a42f63e924..51d0cd1b5111 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} */ -public final class MysqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlSourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSourceConfig) MysqlSourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlSourceConfig.newBuilder() to construct. private MysqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MysqlSourceConfig() {} + private MysqlSourceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSourceConfig.class, - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSourceConfig.class, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -110,22 +82,17 @@ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.MysqlRdbms excludeObjects_; /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -133,25 +100,18 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
@@ -160,23 +120,18 @@ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; } public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; private int maxConcurrentCdcTasks_ = 0; /** - * - * *
    * Maximum number of concurrent CDC tasks. The number should be non negative.
    * If not set (or set to 0), the system's default value will be used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -184,8 +139,24 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } - private byte memoizedIsInitialized = -1; + public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; + private int maxConcurrentBackfillTasks_ = 0; + /** + *
+   * Maximum number of concurrent backfill tasks. The number should be non
+   * negative. If not set (or set to 0), the system's default value will be
+   * used.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +168,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -207,6 +179,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentCdcTasks_ != 0) { output.writeInt32(3, maxConcurrentCdcTasks_); } + if (maxConcurrentBackfillTasks_ != 0) { + output.writeInt32(4, maxConcurrentBackfillTasks_); + } getUnknownFields().writeTo(output); } @@ -217,13 +192,20 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExcludeObjects()); } if (maxConcurrentCdcTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxConcurrentCdcTasks_); + } + if (maxConcurrentBackfillTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxConcurrentBackfillTasks_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,23 +215,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlSourceConfig other = - (com.google.cloud.datastream.v1.MysqlSourceConfig) obj; + com.google.cloud.datastream.v1.MysqlSourceConfig other = (com.google.cloud.datastream.v1.MysqlSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects() + .equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + if (!getExcludeObjects() + .equals(other.getExcludeObjects())) return false; } - if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentCdcTasks() + != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() + != other.getMaxConcurrentBackfillTasks()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -271,141 +257,137 @@ public int hashCode() { } hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentCdcTasks(); + hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentBackfillTasks(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSourceConfig) com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSourceConfig.class, - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSourceConfig.class, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,13 +403,14 @@ public Builder clear() { excludeObjectsBuilder_ = null; } maxConcurrentCdcTasks_ = 0; + maxConcurrentBackfillTasks_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override @@ -446,11 +429,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1.MysqlSourceConfig result = - new com.google.cloud.datastream.v1.MysqlSourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.MysqlSourceConfig result = new com.google.cloud.datastream.v1.MysqlSourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -458,55 +438,59 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.MysqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = - includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + result.includeObjects_ = includeObjectsBuilder_ == null + ? includeObjects_ + : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = - excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + result.excludeObjects_ = excludeObjectsBuilder_ == null + ? excludeObjects_ + : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig)other); } else { super.mergeFrom(other); return this; @@ -514,8 +498,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -525,6 +508,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) if (other.getMaxConcurrentCdcTasks() != 0) { setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); } + if (other.getMaxConcurrentBackfillTasks() != 0) { + setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -551,31 +537,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxConcurrentCdcTasks_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getIncludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExcludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -585,52 +576,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> - includeObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> includeObjectsBuilder_; /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return The includeObjects. */ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -651,8 +628,6 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -671,8 +646,6 @@ public Builder setIncludeObjects( return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -681,9 +654,9 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && includeObjects_ != null - && includeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + includeObjects_ != null && + includeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -696,8 +669,6 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -715,8 +686,6 @@ public Builder clearIncludeObjects() { return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -729,8 +698,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getIncludeObjectsBuilde return getIncludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -741,14 +708,11 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? + com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; } } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -756,17 +720,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( - getIncludeObjects(), getParentForChildren(), isClean()); + includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + getIncludeObjects(), + getParentForChildren(), + isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -774,47 +735,34 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui private com.google.cloud.datastream.v1.MysqlRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> - excludeObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> excludeObjectsBuilder_; /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -835,8 +783,6 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -855,8 +801,6 @@ public Builder setExcludeObjects( return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -865,9 +809,9 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && excludeObjects_ != null - && excludeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + excludeObjects_ != null && + excludeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -880,8 +824,6 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -899,8 +841,6 @@ public Builder clearExcludeObjects() { return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -913,8 +853,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getExcludeObjectsBuilde return getExcludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -925,14 +863,11 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? + com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; } } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -940,33 +875,27 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( - getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + getExcludeObjects(), + getParentForChildren(), + isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; } - private int maxConcurrentCdcTasks_; + private int maxConcurrentCdcTasks_ ; /** - * - * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -974,35 +903,29 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } /** - * - * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @param value The maxConcurrentCdcTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentCdcTasks(int value) { - + maxConcurrentCdcTasks_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return This builder for chaining. */ public Builder clearMaxConcurrentCdcTasks() { @@ -1012,8 +935,58 @@ public Builder clearMaxConcurrentCdcTasks() { return this; } + private int maxConcurrentBackfillTasks_ ; + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @param value The maxConcurrentBackfillTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentBackfillTasks(int value) { + + maxConcurrentBackfillTasks_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentBackfillTasks() { + bitField0_ = (bitField0_ & ~0x00000008); + maxConcurrentBackfillTasks_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1023,12 +996,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSourceConfig) private static final com.google.cloud.datastream.v1.MysqlSourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSourceConfig(); } @@ -1037,27 +1010,27 @@ public static com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1072,4 +1045,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index a547dbbf4e9c..59c7ae213b36 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlSourceConfigOrBuilder - extends +public interface MysqlSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; - * * @return The includeObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -59,32 +35,24 @@ public interface MysqlSourceConfigOrBuilder com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
@@ -94,16 +62,25 @@ public interface MysqlSourceConfigOrBuilder com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** - * - * *
    * Maximum number of concurrent CDC tasks. The number should be non negative.
    * If not set (or set to 0), the system's default value will be used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ int getMaxConcurrentCdcTasks(); + + /** + *
+   * Maximum number of concurrent backfill tasks. The number should be non
+   * negative. If not set (or set to 0), the system's default value will be
+   * used.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ + int getMaxConcurrentBackfillTasks(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java index 3c5b0cb2c9d7..e118815d52c5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig} */ -public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlSslConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSslConfig) MysqlSslConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlSslConfig.newBuilder() to construct. private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlSslConfig() { clientKey_ = ""; clientCertificate_ = ""; @@ -45,37 +27,33 @@ private MysqlSslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlSslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSslConfig.class, - com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSslConfig.class, com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); } public static final int CLIENT_KEY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object clientKey_ = ""; /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -108,15 +84,16 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -127,14 +104,11 @@ public com.google.protobuf.ByteString getClientKeyBytes() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 2; private boolean clientKeySet_ = false; /** - * - * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ @java.lang.Override @@ -143,12 +117,9 @@ public boolean getClientKeySet() { } public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object clientCertificate_ = ""; /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -156,7 +127,6 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ @java.lang.Override @@ -165,15 +135,14 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -181,15 +150,16 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 4; private boolean clientCertificateSet_ = false; /** - * - * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ @java.lang.Override @@ -216,19 +183,15 @@ public boolean getClientCertificateSet() { } public static final int CA_CERTIFICATE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object caCertificate_ = ""; /** - * - * *
-   * Input only. PEM-encoded certificate of the CA that signed the source database
-   * server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ @java.lang.Override @@ -237,30 +200,30 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** - * - * *
-   * Input only. PEM-encoded certificate of the CA that signed the source database
-   * server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -271,14 +234,11 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 6; private boolean caCertificateSet_ = false; /** - * - * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ @java.lang.Override @@ -287,7 +247,6 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +258,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientKey_); } @@ -331,19 +291,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientKey_); } if (clientKeySet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientKeySet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, clientKeySet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientCertificate_); } if (clientCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, clientCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, clientCertificateSet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, caCertificate_); } if (caCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, caCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, caCertificateSet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -353,20 +316,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlSslConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlSslConfig other = - (com.google.cloud.datastream.v1.MysqlSslConfig) obj; - - if (!getClientKey().equals(other.getClientKey())) return false; - if (getClientKeySet() != other.getClientKeySet()) return false; - if (!getClientCertificate().equals(other.getClientCertificate())) return false; - if (getClientCertificateSet() != other.getClientCertificateSet()) return false; - if (!getCaCertificate().equals(other.getCaCertificate())) return false; - if (getCaCertificateSet() != other.getCaCertificateSet()) return false; + com.google.cloud.datastream.v1.MysqlSslConfig other = (com.google.cloud.datastream.v1.MysqlSslConfig) obj; + + if (!getClientKey() + .equals(other.getClientKey())) return false; + if (getClientKeySet() + != other.getClientKeySet()) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; + if (getClientCertificateSet() + != other.getClientCertificateSet()) return false; + if (!getCaCertificate() + .equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() + != other.getCaCertificateSet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,150 +349,147 @@ public int hashCode() { hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; hash = (53 * hash) + getClientKey().hashCode(); hash = (37 * hash) + CLIENT_KEY_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientKeySet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientKeySet()); hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getClientCertificate().hashCode(); hash = (37 * hash) + CLIENT_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientCertificateSet()); hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCaCertificate().hashCode(); hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaCertificateSet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlSslConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSslConfig) com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSslConfig.class, - com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSslConfig.class, com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override @@ -560,11 +525,8 @@ public com.google.cloud.datastream.v1.MysqlSslConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfig buildPartial() { - com.google.cloud.datastream.v1.MysqlSslConfig result = - new com.google.cloud.datastream.v1.MysqlSslConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.MysqlSslConfig result = new com.google.cloud.datastream.v1.MysqlSslConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -595,39 +557,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlSslConfig result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlSslConfig) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlSslConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlSslConfig)other); } else { super.mergeFrom(other); return this; @@ -686,49 +647,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - clientKeySet_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - clientCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - caCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - caCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + clientKeySet_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + clientCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + caCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -738,13 +692,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object clientKey_ = ""; /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -752,13 +703,13 @@ public Builder mergeFrom(
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -767,8 +718,6 @@ public java.lang.String getClientKey() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -776,14 +725,15 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -791,8 +741,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -800,22 +748,18 @@ public com.google.protobuf.ByteString getClientKeyBytes() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clientKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -823,7 +767,6 @@ public Builder setClientKey(java.lang.String value) {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKey() { @@ -833,8 +776,6 @@ public Builder clearClientKey() { return this; } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -842,14 +783,12 @@ public Builder clearClientKey() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientKey_ = value; bitField0_ |= 0x00000001; @@ -857,16 +796,13 @@ public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { return this; } - private boolean clientKeySet_; + private boolean clientKeySet_ ; /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ @java.lang.Override @@ -874,33 +810,27 @@ public boolean getClientKeySet() { return clientKeySet_; } /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clientKeySet to set. * @return This builder for chaining. */ public Builder setClientKeySet(boolean value) { - + clientKeySet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKeySet() { @@ -912,8 +842,6 @@ public Builder clearClientKeySet() { private java.lang.Object clientCertificate_ = ""; /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -921,13 +849,13 @@ public Builder clearClientKeySet() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -936,8 +864,6 @@ public java.lang.String getClientCertificate() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -945,14 +871,15 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -960,8 +887,6 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -969,22 +894,18 @@ public com.google.protobuf.ByteString getClientCertificateBytes() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientCertificate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clientCertificate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -992,7 +913,6 @@ public Builder setClientCertificate(java.lang.String value) {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificate() { @@ -1002,8 +922,6 @@ public Builder clearClientCertificate() { return this; } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -1011,14 +929,12 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientCertificate_ = value; bitField0_ |= 0x00000004; @@ -1026,16 +942,13 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { return this; } - private boolean clientCertificateSet_; + private boolean clientCertificateSet_ ; /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ @java.lang.Override @@ -1043,33 +956,27 @@ public boolean getClientCertificateSet() { return clientCertificateSet_; } /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clientCertificateSet to set. * @return This builder for chaining. */ public Builder setClientCertificateSet(boolean value) { - + clientCertificateSet_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificateSet() { @@ -1081,21 +988,19 @@ public Builder clearClientCertificateSet() { private java.lang.Object caCertificate_ = ""; /** - * - * *
-     * Input only. PEM-encoded certificate of the CA that signed the source database
-     * server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1104,22 +1009,21 @@ public java.lang.String getCaCertificate() { } } /** - * - * *
-     * Input only. PEM-encoded certificate of the CA that signed the source database
-     * server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1127,37 +1031,30 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { } } /** - * - * *
-     * Input only. PEM-encoded certificate of the CA that signed the source database
-     * server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCaCertificate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } caCertificate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
-     * Input only. PEM-encoded certificate of the CA that signed the source database
-     * server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCaCertificate() { @@ -1167,22 +1064,18 @@ public Builder clearCaCertificate() { return this; } /** - * - * *
-     * Input only. PEM-encoded certificate of the CA that signed the source database
-     * server's certificate.
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCaCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); caCertificate_ = value; bitField0_ |= 0x00000010; @@ -1190,16 +1083,13 @@ public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caCertificateSet_; + private boolean caCertificateSet_ ; /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ @java.lang.Override @@ -1207,33 +1097,27 @@ public boolean getCaCertificateSet() { return caCertificateSet_; } /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The caCertificateSet to set. * @return This builder for chaining. */ public Builder setCaCertificateSet(boolean value) { - + caCertificateSet_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCaCertificateSet() { @@ -1242,9 +1126,9 @@ public Builder clearCaCertificateSet() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1254,12 +1138,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlSslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSslConfig) private static final com.google.cloud.datastream.v1.MysqlSslConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSslConfig(); } @@ -1268,27 +1152,27 @@ public static com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1303,4 +1187,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java similarity index 75% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java index 19562b09cb5f..907d40853502 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlSslConfigOrBuilder - extends +public interface MysqlSslConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSslConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -33,13 +15,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ java.lang.String getClientKey(); /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -47,27 +26,22 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString getClientKeyBytes(); + com.google.protobuf.ByteString + getClientKeyBytes(); /** - * - * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ boolean getClientKeySet(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -75,13 +49,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -89,60 +60,49 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString getClientCertificateBytes(); + com.google.protobuf.ByteString + getClientCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ boolean getClientCertificateSet(); /** - * - * *
-   * Input only. PEM-encoded certificate of the CA that signed the source database
-   * server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** - * - * *
-   * Input only. PEM-encoded certificate of the CA that signed the source database
-   * server's certificate.
+   * Input only. PEM-encoded certificate of the CA that signed the source
+   * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString getCaCertificateBytes(); + com.google.protobuf.ByteString + getCaCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ boolean getCaCertificateSet(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index 5188a6485852..11b2df81aa33 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * MySQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlTable} */ -public final class MysqlTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlTable) MysqlTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlTable.newBuilder() to construct. private MysqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlTable() { table_ = ""; mysqlColumns_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private MysqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlTable.class, - com.google.cloud.datastream.v1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1.MysqlTable.class, com.google.cloud.datastream.v1.MysqlTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List mysqlColumns_; /** - * - * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -139,8 +113,6 @@ public java.util.List getMysqlColumn
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -150,13 +122,11 @@ public java.util.List getMysqlColumn
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMysqlColumnsOrBuilderList() {
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -170,8 +140,6 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -185,8 +153,6 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
     return mysqlColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -196,12 +162,12 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index) {
+  public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
+      int index) {
     return mysqlColumns_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,7 +179,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -233,7 +200,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < mysqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, mysqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -243,16 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.MysqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.MysqlTable other =
-        (com.google.cloud.datastream.v1.MysqlTable) obj;
+    com.google.cloud.datastream.v1.MysqlTable other = (com.google.cloud.datastream.v1.MysqlTable) obj;
 
-    if (!getTable().equals(other.getTable())) return false;
-    if (!getMysqlColumnsList().equals(other.getMysqlColumnsList())) return false;
+    if (!getTable()
+        .equals(other.getTable())) return false;
+    if (!getMysqlColumnsList()
+        .equals(other.getMysqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -275,136 +244,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.MysqlTable parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * MySQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlTable} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlTable) com.google.cloud.datastream.v1.MysqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlTable.class, - com.google.cloud.datastream.v1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1.MysqlTable.class, com.google.cloud.datastream.v1.MysqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlTable.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override @@ -442,12 +405,9 @@ public com.google.cloud.datastream.v1.MysqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlTable buildPartial() { - com.google.cloud.datastream.v1.MysqlTable result = - new com.google.cloud.datastream.v1.MysqlTable(this); + com.google.cloud.datastream.v1.MysqlTable result = new com.google.cloud.datastream.v1.MysqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -475,39 +435,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlTable result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlTable) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlTable) other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlTable)other); } else { super.mergeFrom(other); return this; @@ -539,10 +498,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlTable other) { mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlColumnsFieldBuilder() - : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlColumnsFieldBuilder() : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -574,32 +532,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.MysqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlColumn.parser(), extensionRegistry); - if (mysqlColumnsBuilder_ == null) { - ensureMysqlColumnsIsMutable(); - mysqlColumns_.add(m); - } else { - mysqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.MysqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlColumn.parser(), + extensionRegistry); + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(m); + } else { + mysqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,25 +565,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -636,21 +589,20 @@ public java.lang.String getTable() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -658,35 +610,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -696,21 +641,17 @@ public Builder clearTable() { return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -719,25 +660,18 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlColumns_ = - new java.util.ArrayList(mysqlColumns_); + mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlColumn, - com.google.cloud.datastream.v1.MysqlColumn.Builder, - com.google.cloud.datastream.v1.MysqlColumnOrBuilder> - mysqlColumnsBuilder_; + com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder> mysqlColumnsBuilder_; /** - * - * *
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -754,8 +688,6 @@ public java.util.List getMysqlColumn
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -772,8 +704,6 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -790,8 +720,6 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -800,7 +728,8 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public Builder setMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlColumn value) {
+    public Builder setMysqlColumns(
+        int index, com.google.cloud.datastream.v1.MysqlColumn value) {
       if (mysqlColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -814,8 +743,6 @@ public Builder setMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -836,8 +763,6 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -860,8 +785,6 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value)
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -870,7 +793,8 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value)
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public Builder addMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlColumn value) {
+    public Builder addMysqlColumns(
+        int index, com.google.cloud.datastream.v1.MysqlColumn value) {
       if (mysqlColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -884,8 +808,6 @@ public Builder addMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlCo
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -906,8 +828,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -928,8 +848,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -942,7 +860,8 @@ public Builder addAllMysqlColumns(
         java.lang.Iterable values) {
       if (mysqlColumnsBuilder_ == null) {
         ensureMysqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, mysqlColumns_);
         onChanged();
       } else {
         mysqlColumnsBuilder_.addAllMessages(values);
@@ -950,8 +869,6 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -971,8 +888,6 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -992,8 +907,6 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1002,12 +915,11 @@ public Builder removeMysqlColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder(int index) {
+    public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder(
+        int index) {
       return getMysqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1016,16 +928,14 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index) {
+    public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
+        int index) {
       if (mysqlColumnsBuilder_ == null) {
-        return mysqlColumns_.get(index);
-      } else {
+        return mysqlColumns_.get(index);  } else {
         return mysqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1034,8 +944,8 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List
-        getMysqlColumnsOrBuilderList() {
+    public java.util.List 
+         getMysqlColumnsOrBuilderList() {
       if (mysqlColumnsBuilder_ != null) {
         return mysqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1043,8 +953,6 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1054,12 +962,10 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
     public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder() {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1068,13 +974,12 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder(int index) {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
+    public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder(
+        int index) {
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1083,30 +988,27 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List
-        getMysqlColumnsBuilderList() {
+    public java.util.List 
+         getMysqlColumnsBuilderList() {
       return getMysqlColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.MysqlColumn,
-            com.google.cloud.datastream.v1.MysqlColumn.Builder,
-            com.google.cloud.datastream.v1.MysqlColumnOrBuilder>
+        com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder> 
         getMysqlColumnsFieldBuilder() {
       if (mysqlColumnsBuilder_ == null) {
-        mysqlColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1.MysqlColumn,
-                com.google.cloud.datastream.v1.MysqlColumn.Builder,
-                com.google.cloud.datastream.v1.MysqlColumnOrBuilder>(
-                mysqlColumns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        mysqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder>(
+                mysqlColumns_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         mysqlColumns_ = null;
       }
       return mysqlColumnsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1116,12 +1018,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlTable)
   private static final com.google.cloud.datastream.v1.MysqlTable DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlTable();
   }
@@ -1130,27 +1032,27 @@ public static com.google.cloud.datastream.v1.MysqlTable getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public MysqlTable parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public MysqlTable parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1165,4 +1067,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
similarity index 70%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
index 06dcb4c21a77..7933dfcaece0 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface MysqlTableOrBuilder
-    extends
+public interface MysqlTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -59,10 +36,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List getMysqlColumnsList();
+  java.util.List 
+      getMysqlColumnsList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -73,8 +49,6 @@ public interface MysqlTableOrBuilder
    */
   com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index);
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -85,8 +59,6 @@ public interface MysqlTableOrBuilder
    */
   int getMysqlColumnsCount();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -95,11 +67,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getMysqlColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -108,5 +78,6 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
similarity index 67%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
index b27109694984..33104ab53740 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
- *
- *
  * 
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OperationMetadata.class, - com.google.cloud.datastream.v1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1.OperationMetadata.class, com.google.cloud.datastream.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,17 +271,15 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +288,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +304,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -396,16 +337,11 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int VALIDATION_RESULT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1.ValidationResult validationResult_; /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ @java.lang.Override @@ -413,44 +349,30 @@ public boolean hasValidationResult() { return validationResult_ != null; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationResult getValidationResult() { - return validationResult_ == null - ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder() { - return validationResult_ == null - ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -462,7 +384,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -497,10 +420,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -512,13 +437,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (validationResult_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValidationResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getValidationResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -528,30 +455,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OperationMetadata other = - (com.google.cloud.datastream.v1.OperationMetadata) obj; + com.google.cloud.datastream.v1.OperationMetadata other = (com.google.cloud.datastream.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (hasValidationResult() != other.hasValidationResult()) return false; if (hasValidationResult()) { - if (!getValidationResult().equals(other.getValidationResult())) return false; + if (!getValidationResult() + .equals(other.getValidationResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -579,7 +513,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasValidationResult()) { @@ -591,136 +526,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OperationMetadata) com.google.cloud.datastream.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OperationMetadata.class, - com.google.cloud.datastream.v1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1.OperationMetadata.class, com.google.cloud.datastream.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.datastream.v1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -749,9 +678,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -770,11 +699,8 @@ public com.google.cloud.datastream.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.datastream.v1.OperationMetadata buildPartial() { - com.google.cloud.datastream.v1.OperationMetadata result = - new com.google.cloud.datastream.v1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.OperationMetadata result = new com.google.cloud.datastream.v1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -782,10 +708,14 @@ public com.google.cloud.datastream.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -803,8 +733,9 @@ private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata resu result.apiVersion_ = apiVersion_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.validationResult_ = - validationResultBuilder_ == null ? validationResult_ : validationResultBuilder_.build(); + result.validationResult_ = validationResultBuilder_ == null + ? validationResult_ + : validationResultBuilder_.build(); } } @@ -812,39 +743,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.datastream.v1.OperationMetadata) other); + return mergeFrom((com.google.cloud.datastream.v1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -852,8 +782,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.OperationMetadata other) { - if (other == com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -912,62 +841,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getValidationResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getValidationResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -977,63 +902,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1049,17 +954,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1070,21 +972,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1097,15 +995,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1118,15 +1012,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1134,48 +1024,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1183,35 +1061,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1222,14 +1089,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1245,16 +1109,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1265,20 +1127,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1291,14 +1150,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1311,14 +1167,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1326,44 +1179,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1371,20 +1216,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1393,21 +1236,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1415,35 +1257,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1453,21 +1288,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1477,20 +1308,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1499,21 +1328,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1521,35 +1349,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1559,21 +1380,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1583,20 +1400,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1605,21 +1420,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1627,35 +1441,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1665,21 +1472,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1687,19 +1490,17 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1707,39 +1508,35 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
+     * have [Operation.error][] value with a
+     * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+     * `Code.CANCELLED`.
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1751,20 +1548,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1773,21 +1568,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1795,35 +1589,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1833,21 +1620,17 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; @@ -1857,58 +1640,39 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.ValidationResult validationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, - com.google.cloud.datastream.v1.ValidationResult.Builder, - com.google.cloud.datastream.v1.ValidationResultOrBuilder> - validationResultBuilder_; + com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder> validationResultBuilder_; /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ public boolean hasValidationResult() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ public com.google.cloud.datastream.v1.ValidationResult getValidationResult() { if (validationResultBuilder_ == null) { - return validationResult_ == null - ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; } else { return validationResultBuilder_.getMessage(); } } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationResult(com.google.cloud.datastream.v1.ValidationResult value) { if (validationResultBuilder_ == null) { @@ -1924,15 +1688,11 @@ public Builder setValidationResult(com.google.cloud.datastream.v1.ValidationResu return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationResult( com.google.cloud.datastream.v1.ValidationResult.Builder builderForValue) { @@ -1946,22 +1706,17 @@ public Builder setValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeValidationResult(com.google.cloud.datastream.v1.ValidationResult value) { if (validationResultBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && validationResult_ != null - && validationResult_ - != com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + validationResult_ != null && + validationResult_ != com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) { getValidationResultBuilder().mergeFrom(value); } else { validationResult_ = value; @@ -1974,15 +1729,11 @@ public Builder mergeValidationResult(com.google.cloud.datastream.v1.ValidationRe return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValidationResult() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1995,15 +1746,11 @@ public Builder clearValidationResult() { return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.ValidationResult.Builder getValidationResultBuilder() { bitField0_ |= 0x00000080; @@ -2011,55 +1758,43 @@ public com.google.cloud.datastream.v1.ValidationResult.Builder getValidationResu return getValidationResultFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder() { if (validationResultBuilder_ != null) { return validationResultBuilder_.getMessageOrBuilder(); } else { - return validationResult_ == null - ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? + com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; } } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, - com.google.cloud.datastream.v1.ValidationResult.Builder, - com.google.cloud.datastream.v1.ValidationResultOrBuilder> + com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder> getValidationResultFieldBuilder() { if (validationResultBuilder_ == null) { - validationResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, - com.google.cloud.datastream.v1.ValidationResult.Builder, - com.google.cloud.datastream.v1.ValidationResultOrBuilder>( - getValidationResult(), getParentForChildren(), isClean()); + validationResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder>( + getValidationResult(), + getParentForChildren(), + isClean()); validationResult_ = null; } return validationResultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2069,12 +1804,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OperationMetadata) private static final com.google.cloud.datastream.v1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OperationMetadata(); } @@ -2083,27 +1818,27 @@ public static com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2118,4 +1853,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java index fd0a674fad61..4702c86bcb6b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java @@ -1,258 +1,184 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
+   * have [Operation.error][] value with a
+   * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+   * `Code.CANCELLED`.
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ boolean hasValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ com.google.cloud.datastream.v1.ValidationResult getValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java index c598e7814596..25a3875548d9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleColumn} */ -public final class OracleColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleColumn) OracleColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleColumn.newBuilder() to construct. private OracleColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleColumn() { column_ = ""; dataType_ = ""; @@ -45,43 +27,38 @@ private OracleColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleColumn.class, - com.google.cloud.datastream.v1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1.OracleColumn.class, com.google.cloud.datastream.v1.OracleColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -121,18 +98,14 @@ public com.google.protobuf.ByteString getColumnBytes() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ @java.lang.Override @@ -141,29 +114,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -174,14 +147,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -192,14 +162,11 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -210,14 +177,11 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -226,18 +190,14 @@ public int getScale() { } public static final int ENCODING_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The encoding. */ @java.lang.Override @@ -246,29 +206,29 @@ public java.lang.String getEncoding() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The bytes for encoding. */ @java.lang.Override - public com.google.protobuf.ByteString getEncodingBytes() { + public com.google.protobuf.ByteString + getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encoding_ = b; return b; } else { @@ -279,14 +239,11 @@ public com.google.protobuf.ByteString getEncodingBytes() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -297,14 +254,11 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -315,14 +269,11 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -331,7 +282,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -387,25 +338,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encoding_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -415,23 +372,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleColumn other = - (com.google.cloud.datastream.v1.OracleColumn) obj; - - if (!getColumn().equals(other.getColumn())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (getPrecision() != other.getPrecision()) return false; - if (getScale() != other.getScale()) return false; - if (!getEncoding().equals(other.getEncoding())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.OracleColumn other = (com.google.cloud.datastream.v1.OracleColumn) obj; + + if (!getColumn() + .equals(other.getColumn())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!getEncoding() + .equals(other.getEncoding())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -456,9 +421,11 @@ public int hashCode() { hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -466,136 +433,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleColumn} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleColumn) com.google.cloud.datastream.v1.OracleColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleColumn.class, - com.google.cloud.datastream.v1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1.OracleColumn.class, com.google.cloud.datastream.v1.OracleColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleColumn.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +574,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override @@ -634,11 +595,8 @@ public com.google.cloud.datastream.v1.OracleColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleColumn buildPartial() { - com.google.cloud.datastream.v1.OracleColumn result = - new com.google.cloud.datastream.v1.OracleColumn(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.OracleColumn result = new com.google.cloud.datastream.v1.OracleColumn(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -678,39 +636,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleColumn result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleColumn) { - return mergeFrom((com.google.cloud.datastream.v1.OracleColumn) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleColumn)other); } else { super.mergeFrom(other); return this; @@ -778,67 +735,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - encoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - nullable_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + encoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + nullable_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -848,25 +795,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object column_ = ""; /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -875,21 +819,20 @@ public java.lang.String getColumn() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The bytes for column. */ - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -897,35 +840,28 @@ public com.google.protobuf.ByteString getColumnBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return This builder for chaining. */ public Builder clearColumn() { @@ -935,21 +871,17 @@ public Builder clearColumn() { return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -959,20 +891,18 @@ public Builder setColumnBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -981,21 +911,20 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -1003,35 +932,28 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return This builder for chaining. */ public Builder clearDataType() { @@ -1041,21 +963,17 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -1063,16 +981,13 @@ public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int length_; + private int length_ ; /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -1080,33 +995,27 @@ public int getLength() { return length_; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1116,16 +1025,13 @@ public Builder clearLength() { return this; } - private int precision_; + private int precision_ ; /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -1133,33 +1039,27 @@ public int getPrecision() { return precision_; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -1169,16 +1069,13 @@ public Builder clearPrecision() { return this; } - private int scale_; + private int scale_ ; /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -1186,33 +1083,27 @@ public int getScale() { return scale_; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return This builder for chaining. */ public Builder clearScale() { @@ -1224,20 +1115,18 @@ public Builder clearScale() { private java.lang.Object encoding_ = ""; /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; @@ -1246,21 +1135,20 @@ public java.lang.String getEncoding() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - public com.google.protobuf.ByteString getEncodingBytes() { + public com.google.protobuf.ByteString + getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encoding_ = b; return b; } else { @@ -1268,35 +1156,28 @@ public com.google.protobuf.ByteString getEncodingBytes() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncoding( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encoding_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -1306,21 +1187,17 @@ public Builder clearEncoding() { return this; } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @param value The bytes for encoding to set. * @return This builder for chaining. */ - public Builder setEncodingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncodingBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encoding_ = value; bitField0_ |= 0x00000020; @@ -1328,16 +1205,13 @@ public Builder setEncodingBytes(com.google.protobuf.ByteString value) { return this; } - private boolean primaryKey_; + private boolean primaryKey_ ; /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -1345,33 +1219,27 @@ public boolean getPrimaryKey() { return primaryKey_; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1381,16 +1249,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -1398,33 +1263,27 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1434,16 +1293,13 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_; + private int ordinalPosition_ ; /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -1451,33 +1307,27 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1486,9 +1336,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1498,12 +1348,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleColumn) private static final com.google.cloud.datastream.v1.OracleColumn DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleColumn(); } @@ -1512,27 +1362,27 @@ public static com.google.cloud.datastream.v1.OracleColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1547,4 +1397,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java index ca7797618541..6e4f0635a1e2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java @@ -1,177 +1,128 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleColumnOrBuilder - extends +public interface OracleColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ java.lang.String getColumn(); /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ - com.google.protobuf.ByteString getColumnBytes(); + com.google.protobuf.ByteString + getColumnBytes(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ int getPrecision(); /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ int getScale(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The encoding. */ java.lang.String getEncoding(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - com.google.protobuf.ByteString getEncodingBytes(); + com.google.protobuf.ByteString + getEncodingBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java index 53f58fb679ef..25c53feacf52 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} */ -public final class OracleProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleProfile) OracleProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleProfile.newBuilder() to construct. private OracleProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleProfile() { hostname_ = ""; username_ = ""; @@ -46,54 +28,50 @@ private OracleProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleProfile.class, - com.google.cloud.datastream.v1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1.OracleProfile.class, com.google.cloud.datastream.v1.OracleProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -102,29 +80,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -135,14 +113,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -151,18 +126,14 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -171,29 +142,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -202,18 +173,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ @java.lang.Override @@ -222,29 +189,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -253,18 +220,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object databaseService_ = ""; /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ @java.lang.Override @@ -273,29 +236,29 @@ public java.lang.String getDatabaseService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; } } /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseServiceBytes() { + public com.google.protobuf.ByteString + getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseService_ = b; return b; } else { @@ -304,36 +267,32 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; - private static final class ConnectionAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } - public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** - * - * *
    * Connection string attributes
    * 
@@ -341,21 +300,20 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** Use {@link #getConnectionAttributesMap()} instead. */ + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** - * - * *
    * Connection string attributes
    * 
@@ -367,8 +325,6 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** - * - * *
    * Connection string attributes
    * 
@@ -376,20 +332,17 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Connection string attributes
    * 
@@ -397,10 +350,9 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -410,7 +362,6 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,7 +373,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -438,7 +390,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, @@ -456,7 +409,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -467,15 +421,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseService_); } - for (java.util.Map.Entry entry : - internalGetConnectionAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry connectionAttributes__ = - ConnectionAttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); + for (java.util.Map.Entry entry + : internalGetConnectionAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + connectionAttributes__ = ConnectionAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, connectionAttributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -485,21 +439,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleProfile other = - (com.google.cloud.datastream.v1.OracleProfile) obj; - - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getDatabaseService().equals(other.getDatabaseService())) return false; - if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) - return false; + com.google.cloud.datastream.v1.OracleProfile other = (com.google.cloud.datastream.v1.OracleProfile) obj; + + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getDatabaseService() + .equals(other.getDatabaseService())) return false; + if (!internalGetConnectionAttributes().equals( + other.internalGetConnectionAttributes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -530,156 +488,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleProfile) com.google.cloud.datastream.v1.OracleProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleProfile.class, - com.google.cloud.datastream.v1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1.OracleProfile.class, com.google.cloud.datastream.v1.OracleProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -694,9 +648,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @java.lang.Override @@ -715,11 +669,8 @@ public com.google.cloud.datastream.v1.OracleProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleProfile buildPartial() { - com.google.cloud.datastream.v1.OracleProfile result = - new com.google.cloud.datastream.v1.OracleProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.OracleProfile result = new com.google.cloud.datastream.v1.OracleProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -751,39 +702,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleProfile result) public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleProfile) { - return mergeFrom((com.google.cloud.datastream.v1.OracleProfile) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleProfile)other); } else { super.mergeFrom(other); return this; @@ -815,7 +765,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleProfile other) { bitField0_ |= 0x00000010; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom( + other.internalGetConnectionAttributes()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -843,56 +794,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - databaseService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - connectionAttributes__ = - input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableConnectionAttributes() - .getMutableMap() - .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + databaseService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + connectionAttributes__ = input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConnectionAttributes().getMutableMap().put( + connectionAttributes__.getKey(), connectionAttributes__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -902,25 +843,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -929,21 +867,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -951,35 +888,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -989,21 +919,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -1011,16 +937,13 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -1028,33 +951,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -1066,20 +983,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1088,21 +1003,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1110,35 +1024,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1148,21 +1055,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1172,20 +1075,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1194,21 +1095,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1216,35 +1116,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1254,21 +1147,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1278,20 +1167,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseService_ = ""; /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ public java.lang.String getDatabaseService() { java.lang.Object ref = databaseService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; @@ -1300,21 +1187,20 @@ public java.lang.String getDatabaseService() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - public com.google.protobuf.ByteString getDatabaseServiceBytes() { + public com.google.protobuf.ByteString + getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseService_ = b; return b; } else { @@ -1322,35 +1208,28 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseService_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatabaseService() { @@ -1360,21 +1239,17 @@ public Builder clearDatabaseService() { return this; } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseService_ = value; bitField0_ |= 0x00000010; @@ -1382,8 +1257,8 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField internalGetConnectionAttributes() { if (connectionAttributes_ == null) { @@ -1392,13 +1267,11 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { } return connectionAttributes_; } - private com.google.protobuf.MapField internalGetMutableConnectionAttributes() { if (connectionAttributes_ == null) { - connectionAttributes_ = - com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); + connectionAttributes_ = com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); } if (!connectionAttributes_.isMutable()) { connectionAttributes_ = connectionAttributes_.copy(); @@ -1407,13 +1280,10 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { onChanged(); return connectionAttributes_; } - public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1421,21 +1291,20 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** Use {@link #getConnectionAttributesMap()} instead. */ + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1447,8 +1316,6 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1456,20 +1323,17 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Connection string attributes
      * 
@@ -1477,10 +1341,9 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1488,57 +1351,53 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearConnectionAttributes() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableConnectionAttributes().getMutableMap().clear(); + internalGetMutableConnectionAttributes().getMutableMap() + .clear(); return this; } /** - * - * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder removeConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableConnectionAttributes().getMutableMap().remove(key); + public Builder removeConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableConnectionAttributes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableConnectionAttributes() { + public java.util.Map + getMutableConnectionAttributes() { bitField0_ |= 0x00000020; return internalGetMutableConnectionAttributes().getMutableMap(); } /** - * - * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableConnectionAttributes().getMutableMap().put(key, value); + public Builder putConnectionAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableConnectionAttributes().getMutableMap() + .put(key, value); bitField0_ |= 0x00000020; return this; } /** - * - * *
      * Connection string attributes
      * 
@@ -1547,13 +1406,14 @@ public Builder putConnectionAttributes(java.lang.String key, java.lang.String va */ public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap().putAll(values); + internalGetMutableConnectionAttributes().getMutableMap() + .putAll(values); bitField0_ |= 0x00000020; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1563,12 +1423,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleProfile) private static final com.google.cloud.datastream.v1.OracleProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleProfile(); } @@ -1577,27 +1437,27 @@ public static com.google.cloud.datastream.v1.OracleProfile getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1612,4 +1472,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java index 018df6b7b936..34ac1481d3d9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java @@ -1,144 +1,103 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleProfileOrBuilder - extends +public interface OracleProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ java.lang.String getDatabaseService(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - com.google.protobuf.ByteString getDatabaseServiceBytes(); + com.google.protobuf.ByteString + getDatabaseServiceBytes(); /** - * - * *
    * Connection string attributes
    * 
@@ -147,31 +106,30 @@ public interface OracleProfileOrBuilder */ int getConnectionAttributesCount(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - boolean containsConnectionAttributes(java.lang.String key); - /** Use {@link #getConnectionAttributesMap()} instead. */ + boolean containsConnectionAttributes( + java.lang.String key); + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getConnectionAttributes(); + java.util.Map + getConnectionAttributes(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.util.Map getConnectionAttributesMap(); + java.util.Map + getConnectionAttributesMap(); /** - * - * *
    * Connection string attributes
    * 
@@ -179,18 +137,17 @@ public interface OracleProfileOrBuilder * map<string, string> connection_attributes = 6; */ /* nullable */ - java.lang.String getConnectionAttributesOrDefault( +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrThrow(java.lang.String key); + java.lang.String getConnectionAttributesOrThrow( + java.lang.String key); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java index bb1f4b6c8441..3e8a447ea096 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleRdbms} */ -public final class OracleRdbms extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleRdbms extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleRdbms) OracleRdbmsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleRdbms.newBuilder() to construct. private OracleRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleRdbms() { oracleSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleRdbms.class, - com.google.cloud.datastream.v1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1.OracleRdbms.class, com.google.cloud.datastream.v1.OracleRdbms.Builder.class); } public static final int ORACLE_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List oracleSchemas_; /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -85,8 +63,6 @@ public java.util.List getOracleSche return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -94,13 +70,11 @@ public java.util.List getOracleSche * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getOracleSchemasOrBuilderList() { return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -112,8 +86,6 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { return oracleSchemas_.get(index); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -134,12 +104,12 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index) { + public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( + int index) { return oracleSchemas_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -165,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < oracleSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, oracleSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, oracleSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleRdbms other = - (com.google.cloud.datastream.v1.OracleRdbms) obj; + com.google.cloud.datastream.v1.OracleRdbms other = (com.google.cloud.datastream.v1.OracleRdbms) obj; - if (!getOracleSchemasList().equals(other.getOracleSchemasList())) return false; + if (!getOracleSchemasList() + .equals(other.getOracleSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -204,136 +176,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleRdbms} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleRdbms) com.google.cloud.datastream.v1.OracleRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleRdbms.class, - com.google.cloud.datastream.v1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1.OracleRdbms.class, com.google.cloud.datastream.v1.OracleRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleRdbms.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override @@ -370,12 +336,9 @@ public com.google.cloud.datastream.v1.OracleRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms buildPartial() { - com.google.cloud.datastream.v1.OracleRdbms result = - new com.google.cloud.datastream.v1.OracleRdbms(this); + com.google.cloud.datastream.v1.OracleRdbms result = new com.google.cloud.datastream.v1.OracleRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -400,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleRdbms result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleRdbms)other); } else { super.mergeFrom(other); return this; @@ -459,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleRdbms other) { oracleSchemasBuilder_ = null; oracleSchemas_ = other.oracleSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - oracleSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleSchemasFieldBuilder() - : null; + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleSchemasFieldBuilder() : null; } else { oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); } @@ -494,26 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.OracleSchema m = - input.readMessage( - com.google.cloud.datastream.v1.OracleSchema.parser(), extensionRegistry); - if (oracleSchemasBuilder_ == null) { - ensureOracleSchemasIsMutable(); - oracleSchemas_.add(m); - } else { - oracleSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.OracleSchema m = + input.readMessage( + com.google.cloud.datastream.v1.OracleSchema.parser(), + extensionRegistry); + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(m); + } else { + oracleSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -523,29 +483,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List oracleSchemas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = - new java.util.ArrayList(oracleSchemas_); + oracleSchemas_ = new java.util.ArrayList(oracleSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, - com.google.cloud.datastream.v1.OracleSchema.Builder, - com.google.cloud.datastream.v1.OracleSchemaOrBuilder> - oracleSchemasBuilder_; + com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder> oracleSchemasBuilder_; /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -560,8 +512,6 @@ public java.util.List getOracleSche } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -576,8 +526,6 @@ public int getOracleSchemasCount() { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -592,15 +540,14 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public Builder setOracleSchemas(int index, com.google.cloud.datastream.v1.OracleSchema value) { + public Builder setOracleSchemas( + int index, com.google.cloud.datastream.v1.OracleSchema value) { if (oracleSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -614,8 +561,6 @@ public Builder setOracleSchemas(int index, com.google.cloud.datastream.v1.Oracle return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -634,8 +579,6 @@ public Builder setOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -656,15 +599,14 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1.OracleSchema valu return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public Builder addOracleSchemas(int index, com.google.cloud.datastream.v1.OracleSchema value) { + public Builder addOracleSchemas( + int index, com.google.cloud.datastream.v1.OracleSchema value) { if (oracleSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -678,8 +620,6 @@ public Builder addOracleSchemas(int index, com.google.cloud.datastream.v1.Oracle return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -698,8 +638,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -718,8 +656,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -730,7 +666,8 @@ public Builder addAllOracleSchemas( java.lang.Iterable values) { if (oracleSchemasBuilder_ == null) { ensureOracleSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleSchemas_); onChanged(); } else { oracleSchemasBuilder_.addAllMessages(values); @@ -738,8 +675,6 @@ public Builder addAllOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -757,8 +692,6 @@ public Builder clearOracleSchemas() { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -776,20 +709,17 @@ public Builder removeOracleSchemas(int index) { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuilder(int index) { + public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuilder( + int index) { return getOracleSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -799,22 +729,19 @@ public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuild public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( int index) { if (oracleSchemasBuilder_ == null) { - return oracleSchemas_.get(index); - } else { + return oracleSchemas_.get(index); } else { return oracleSchemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasOrBuilderList() { + public java.util.List + getOracleSchemasOrBuilderList() { if (oracleSchemasBuilder_ != null) { return oracleSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -822,8 +749,6 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -831,47 +756,38 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder() { - return getOracleSchemasFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder(int index) { - return getOracleSchemasFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); + public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder( + int index) { + return getOracleSchemasFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasBuilderList() { + public java.util.List + getOracleSchemasBuilderList() { return getOracleSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, - com.google.cloud.datastream.v1.OracleSchema.Builder, - com.google.cloud.datastream.v1.OracleSchemaOrBuilder> + com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder> getOracleSchemasFieldBuilder() { if (oracleSchemasBuilder_ == null) { - oracleSchemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, - com.google.cloud.datastream.v1.OracleSchema.Builder, - com.google.cloud.datastream.v1.OracleSchemaOrBuilder>( + oracleSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder>( oracleSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -880,9 +796,9 @@ public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuild } return oracleSchemasBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -892,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleRdbms) private static final com.google.cloud.datastream.v1.OracleRdbms DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleRdbms(); } @@ -906,27 +822,27 @@ public static com.google.cloud.datastream.v1.OracleRdbms getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java index d5a46d0e27bc..edefd8e8eb06 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleRdbmsOrBuilder - extends +public interface OracleRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - java.util.List getOracleSchemasList(); + java.util.List + getOracleSchemasList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -44,8 +25,6 @@ public interface OracleRdbmsOrBuilder */ com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -54,24 +33,21 @@ public interface OracleRdbmsOrBuilder */ int getOracleSchemasCount(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - java.util.List + java.util.List getOracleSchemasOrBuilderList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index); + com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java index 531b034ae221..59716a1b745e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSchema} */ -public final class OracleSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSchema) OracleSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleSchema.newBuilder() to construct. private OracleSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleSchema() { schema_ = ""; oracleTables_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private OracleSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSchema.class, - com.google.cloud.datastream.v1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1.OracleSchema.class, com.google.cloud.datastream.v1.OracleSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The schema. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int ORACLE_TABLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List oracleTables_; /** - * - * *
    * Tables in the schema.
    * 
@@ -137,8 +111,6 @@ public java.util.List getOracleTable return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -146,13 +118,11 @@ public java.util.List getOracleTable * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getOracleTablesOrBuilderList() { return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -164,8 +134,6 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** - * - * *
    * Tables in the schema.
    * 
@@ -177,8 +145,6 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { return oracleTables_.get(index); } /** - * - * *
    * Tables in the schema.
    * 
@@ -186,12 +152,12 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index) { + public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( + int index) { return oracleTables_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -223,7 +190,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } for (int i = 0; i < oracleTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, oracleTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -233,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSchema other = - (com.google.cloud.datastream.v1.OracleSchema) obj; + com.google.cloud.datastream.v1.OracleSchema other = (com.google.cloud.datastream.v1.OracleSchema) obj; - if (!getSchema().equals(other.getSchema())) return false; - if (!getOracleTablesList().equals(other.getOracleTablesList())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getOracleTablesList() + .equals(other.getOracleTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +234,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSchema) com.google.cloud.datastream.v1.OracleSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSchema.class, - com.google.cloud.datastream.v1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1.OracleSchema.class, com.google.cloud.datastream.v1.OracleSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -411,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override @@ -432,12 +395,9 @@ public com.google.cloud.datastream.v1.OracleSchema build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleSchema buildPartial() { - com.google.cloud.datastream.v1.OracleSchema result = - new com.google.cloud.datastream.v1.OracleSchema(this); + com.google.cloud.datastream.v1.OracleSchema result = new com.google.cloud.datastream.v1.OracleSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -465,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleSchema result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSchema) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSchema) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSchema)other); } else { super.mergeFrom(other); return this; @@ -529,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSchema other) { oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000002); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleTablesFieldBuilder() - : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleTablesFieldBuilder() : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -564,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.OracleTable m = - input.readMessage( - com.google.cloud.datastream.v1.OracleTable.parser(), extensionRegistry); - if (oracleTablesBuilder_ == null) { - ensureOracleTablesIsMutable(); - oracleTables_.add(m); - } else { - oracleTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.OracleTable m = + input.readMessage( + com.google.cloud.datastream.v1.OracleTable.parser(), + extensionRegistry); + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(m); + } else { + oracleTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -599,25 +555,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -626,21 +579,20 @@ public java.lang.String getSchema() { } } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -648,35 +600,28 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -686,21 +631,17 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -709,25 +650,18 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleTables_ = - new java.util.ArrayList(oracleTables_); + oracleTables_ = new java.util.ArrayList(oracleTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, - com.google.cloud.datastream.v1.OracleTable.Builder, - com.google.cloud.datastream.v1.OracleTableOrBuilder> - oracleTablesBuilder_; + com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder> oracleTablesBuilder_; /** - * - * *
      * Tables in the schema.
      * 
@@ -742,8 +676,6 @@ public java.util.List getOracleTable } } /** - * - * *
      * Tables in the schema.
      * 
@@ -758,8 +690,6 @@ public int getOracleTablesCount() { } } /** - * - * *
      * Tables in the schema.
      * 
@@ -774,15 +704,14 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { } } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public Builder setOracleTables(int index, com.google.cloud.datastream.v1.OracleTable value) { + public Builder setOracleTables( + int index, com.google.cloud.datastream.v1.OracleTable value) { if (oracleTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -796,8 +725,6 @@ public Builder setOracleTables(int index, com.google.cloud.datastream.v1.OracleT return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -816,8 +743,6 @@ public Builder setOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -838,15 +763,14 @@ public Builder addOracleTables(com.google.cloud.datastream.v1.OracleTable value) return this; } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public Builder addOracleTables(int index, com.google.cloud.datastream.v1.OracleTable value) { + public Builder addOracleTables( + int index, com.google.cloud.datastream.v1.OracleTable value) { if (oracleTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -860,8 +784,6 @@ public Builder addOracleTables(int index, com.google.cloud.datastream.v1.OracleT return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -880,8 +802,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -900,8 +820,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -912,7 +830,8 @@ public Builder addAllOracleTables( java.lang.Iterable values) { if (oracleTablesBuilder_ == null) { ensureOracleTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleTables_); onChanged(); } else { oracleTablesBuilder_.addAllMessages(values); @@ -920,8 +839,6 @@ public Builder addAllOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -939,8 +856,6 @@ public Builder clearOracleTables() { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -958,44 +873,39 @@ public Builder removeOracleTables(int index) { return this; } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTable.Builder getOracleTablesBuilder(int index) { + public com.google.cloud.datastream.v1.OracleTable.Builder getOracleTablesBuilder( + int index) { return getOracleTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index) { + public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( + int index) { if (oracleTablesBuilder_ == null) { - return oracleTables_.get(index); - } else { + return oracleTables_.get(index); } else { return oracleTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesOrBuilderList() { + public java.util.List + getOracleTablesOrBuilderList() { if (oracleTablesBuilder_ != null) { return oracleTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1003,8 +913,6 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil } } /** - * - * *
      * Tables in the schema.
      * 
@@ -1012,55 +920,49 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder() { - return getOracleTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder(int index) { - return getOracleTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); + public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder( + int index) { + return getOracleTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesBuilderList() { + public java.util.List + getOracleTablesBuilderList() { return getOracleTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, - com.google.cloud.datastream.v1.OracleTable.Builder, - com.google.cloud.datastream.v1.OracleTableOrBuilder> + com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder> getOracleTablesFieldBuilder() { if (oracleTablesBuilder_ == null) { - oracleTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, - com.google.cloud.datastream.v1.OracleTable.Builder, - com.google.cloud.datastream.v1.OracleTableOrBuilder>( - oracleTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + oracleTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder>( + oracleTables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); oracleTables_ = null; } return oracleTablesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1070,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSchema) private static final com.google.cloud.datastream.v1.OracleSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSchema(); } @@ -1084,27 +986,27 @@ public static com.google.cloud.datastream.v1.OracleSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java index 955e55b41db4..4518baf5d832 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleSchemaOrBuilder - extends +public interface OracleSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - java.util.List getOracleTablesList(); + java.util.List + getOracleTablesList(); /** - * - * *
    * Tables in the schema.
    * 
@@ -69,8 +45,6 @@ public interface OracleSchemaOrBuilder */ com.google.cloud.datastream.v1.OracleTable getOracleTables(int index); /** - * - * *
    * Tables in the schema.
    * 
@@ -79,24 +53,21 @@ public interface OracleSchemaOrBuilder */ int getOracleTablesCount(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - java.util.List + java.util.List getOracleTablesOrBuilderList(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index); + com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java similarity index 62% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index d057a866c1ce..32c735cd71ef 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -1,123 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} */ -public final class OracleSourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleSourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig) OracleSourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleSourceConfig.newBuilder() to construct. private OracleSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OracleSourceConfig() {} + private OracleSourceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } - public interface DropLargeObjectsOrBuilder - extends + public interface DropLargeObjectsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + } /** - * - * *
    * Configuration to drop large object values.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - public static final class DropLargeObjects extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class DropLargeObjects extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) DropLargeObjectsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DropLargeObjects.newBuilder() to construct. private DropLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DropLargeObjects() {} + private DropLargeObjects() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DropLargeObjects(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -129,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -147,13 +126,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -172,95 +150,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -270,42 +240,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration to drop large object values.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -313,16 +280,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance(); + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } @java.lang.Override @@ -336,8 +301,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects build( @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = - new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); onBuilt(); return result; } @@ -346,53 +310,46 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) { - return mergeFrom( - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { - if (other - == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -419,13 +376,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -435,7 +391,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -448,44 +403,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - getDefaultInstance() { + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DropLargeObjects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -497,65 +449,61 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface StreamLargeObjectsOrBuilder - extends + public interface StreamLargeObjectsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + } /** - * - * *
    * Configuration to stream large object values.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class StreamLargeObjects extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class StreamLargeObjects extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) StreamLargeObjectsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamLargeObjects.newBuilder() to construct. private StreamLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamLargeObjects() {} + private StreamLargeObjects() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamLargeObjects(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -567,7 +515,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -585,13 +534,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -610,95 +558,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -708,42 +648,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Configuration to stream large object values.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -751,22 +688,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects build() { - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = - buildPartial(); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -775,8 +709,7 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buil @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = - new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); onBuilt(); return result; } @@ -785,53 +718,46 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buil public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) { - return mergeFrom( - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { - if (other - == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -858,13 +784,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -874,7 +799,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -887,44 +811,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - getDefaultInstance() { + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamLargeObjects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,24 +857,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int largeObjectsHandlingCase_ = 0; private java.lang.Object largeObjectsHandling_; - public enum LargeObjectsHandlingCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DROP_LARGE_OBJECTS(100), STREAM_LARGE_OBJECTS(102), LARGEOBJECTSHANDLING_NOT_SET(0); private final int value; - private LargeObjectsHandlingCase(int value) { this.value = value; } @@ -969,37 +887,31 @@ public static LargeObjectsHandlingCase valueOf(int value) { public static LargeObjectsHandlingCase forNumber(int value) { switch (value) { - case 100: - return DROP_LARGE_OBJECTS; - case 102: - return STREAM_LARGE_OBJECTS; - case 0: - return LARGEOBJECTSHANDLING_NOT_SET; - default: - return null; + case 100: return DROP_LARGE_OBJECTS; + case 102: return STREAM_LARGE_OBJECTS; + case 0: return LARGEOBJECTSHANDLING_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { - return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + public LargeObjectsHandlingCase + getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber( + largeObjectsHandlingCase_); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -1007,25 +919,18 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -1034,22 +939,17 @@ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -1057,25 +957,18 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
@@ -1084,23 +977,18 @@ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; } public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; private int maxConcurrentCdcTasks_ = 0; /** - * - * *
-   * Maximum number of concurrent CDC tasks. The number should be non negative.
-   * If not set (or set to 0), the system's default value will be used.
+   * Maximum number of concurrent CDC tasks. The number should be non-negative.
+   * If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -1108,17 +996,29 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } - public static final int DROP_LARGE_OBJECTS_FIELD_NUMBER = 100; + public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; + private int maxConcurrentBackfillTasks_ = 0; /** + *
+   * Maximum number of concurrent backfill tasks. The number should be
+   * non-negative. If not set (or set to 0), the system's default value is used.
+   * 
* - * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + + public static final int DROP_LARGE_OBJECTS_FIELD_NUMBER = 100; + /** *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return Whether the dropLargeObjects field is set. */ @java.lang.Override @@ -1126,57 +1026,42 @@ public boolean hasDropLargeObjects() { return largeObjectsHandlingCase_ == 100; } /** - * - * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return The dropLargeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; } return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } /** - * - * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder - getDropLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder() { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; } return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } public static final int STREAM_LARGE_OBJECTS_FIELD_NUMBER = 102; /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return Whether the streamLargeObjects field is set. */ @java.lang.Override @@ -1184,52 +1069,36 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return The streamLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - getStreamLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects() { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder - getStreamLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder() { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1241,7 +1110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -1251,17 +1121,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentCdcTasks_ != 0) { output.writeInt32(3, maxConcurrentCdcTasks_); } + if (maxConcurrentBackfillTasks_ != 0) { + output.writeInt32(4, maxConcurrentBackfillTasks_); + } if (largeObjectsHandlingCase_ == 100) { - output.writeMessage( - 100, - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_); + output.writeMessage(100, (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_); } if (largeObjectsHandlingCase_ == 102) { - output.writeMessage( - 102, - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_); + output.writeMessage(102, (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); } getUnknownFields().writeTo(output); } @@ -1273,27 +1140,28 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExcludeObjects()); } if (maxConcurrentCdcTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxConcurrentCdcTasks_); + } + if (maxConcurrentBackfillTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxConcurrentBackfillTasks_); } if (largeObjectsHandlingCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_); } if (largeObjectsHandlingCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1303,30 +1171,36 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig other = - (com.google.cloud.datastream.v1.OracleSourceConfig) obj; + com.google.cloud.datastream.v1.OracleSourceConfig other = (com.google.cloud.datastream.v1.OracleSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects() + .equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + if (!getExcludeObjects() + .equals(other.getExcludeObjects())) return false; } - if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentCdcTasks() + != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() + != other.getMaxConcurrentBackfillTasks()) return false; if (!getLargeObjectsHandlingCase().equals(other.getLargeObjectsHandlingCase())) return false; switch (largeObjectsHandlingCase_) { case 100: - if (!getDropLargeObjects().equals(other.getDropLargeObjects())) return false; + if (!getDropLargeObjects() + .equals(other.getDropLargeObjects())) return false; break; case 102: - if (!getStreamLargeObjects().equals(other.getStreamLargeObjects())) return false; + if (!getStreamLargeObjects() + .equals(other.getStreamLargeObjects())) return false; break; case 0: default: @@ -1352,6 +1226,8 @@ public int hashCode() { } hash = (37 * hash) + MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentCdcTasks(); + hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentBackfillTasks(); switch (largeObjectsHandlingCase_) { case 100: hash = (37 * hash) + DROP_LARGE_OBJECTS_FIELD_NUMBER; @@ -1370,135 +1246,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1514,6 +1384,7 @@ public Builder clear() { excludeObjectsBuilder_ = null; } maxConcurrentCdcTasks_ = 0; + maxConcurrentBackfillTasks_ = 0; if (dropLargeObjectsBuilder_ != null) { dropLargeObjectsBuilder_.clear(); } @@ -1526,9 +1397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override @@ -1547,11 +1418,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig result = - new com.google.cloud.datastream.v1.OracleSourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.OracleSourceConfig result = new com.google.cloud.datastream.v1.OracleSourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1560,25 +1428,32 @@ public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.OracleSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = - includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + result.includeObjects_ = includeObjectsBuilder_ == null + ? includeObjects_ + : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = - excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + result.excludeObjects_ = excludeObjectsBuilder_ == null + ? excludeObjects_ + : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; + } } private void buildPartialOneofs(com.google.cloud.datastream.v1.OracleSourceConfig result) { result.largeObjectsHandlingCase_ = largeObjectsHandlingCase_; result.largeObjectsHandling_ = this.largeObjectsHandling_; - if (largeObjectsHandlingCase_ == 100 && dropLargeObjectsBuilder_ != null) { + if (largeObjectsHandlingCase_ == 100 && + dropLargeObjectsBuilder_ != null) { result.largeObjectsHandling_ = dropLargeObjectsBuilder_.build(); } - if (largeObjectsHandlingCase_ == 102 && streamLargeObjectsBuilder_ != null) { + if (largeObjectsHandlingCase_ == 102 && + streamLargeObjectsBuilder_ != null) { result.largeObjectsHandling_ = streamLargeObjectsBuilder_.build(); } } @@ -1587,39 +1462,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.OracleSourceConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig)other); } else { super.mergeFrom(other); return this; @@ -1627,8 +1501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -1638,21 +1511,21 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other if (other.getMaxConcurrentCdcTasks() != 0) { setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); } + if (other.getMaxConcurrentBackfillTasks() != 0) { + setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); + } switch (other.getLargeObjectsHandlingCase()) { - case DROP_LARGE_OBJECTS: - { - mergeDropLargeObjects(other.getDropLargeObjects()); - break; - } - case STREAM_LARGE_OBJECTS: - { - mergeStreamLargeObjects(other.getStreamLargeObjects()); - break; - } - case LARGEOBJECTSHANDLING_NOT_SET: - { - break; - } + case DROP_LARGE_OBJECTS: { + mergeDropLargeObjects(other.getDropLargeObjects()); + break; + } + case STREAM_LARGE_OBJECTS: { + mergeStreamLargeObjects(other.getStreamLargeObjects()); + break; + } + case LARGEOBJECTSHANDLING_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1680,45 +1553,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - maxConcurrentCdcTasks_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 802: - { - input.readMessage( - getDropLargeObjectsFieldBuilder().getBuilder(), extensionRegistry); - largeObjectsHandlingCase_ = 100; - break; - } // case 802 - case 818: - { - input.readMessage( - getStreamLargeObjectsFieldBuilder().getBuilder(), extensionRegistry); - largeObjectsHandlingCase_ = 102; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getIncludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExcludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 802: { + input.readMessage( + getDropLargeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + largeObjectsHandlingCase_ = 100; + break; + } // case 802 + case 818: { + input.readMessage( + getStreamLargeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + largeObjectsHandlingCase_ = 102; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1728,12 +1606,12 @@ public Builder mergeFrom( } // finally return this; } - private int largeObjectsHandlingCase_ = 0; private java.lang.Object largeObjectsHandling_; - - public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { - return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); + public LargeObjectsHandlingCase + getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber( + largeObjectsHandlingCase_); } public Builder clearLargeObjectsHandling() { @@ -1747,47 +1625,34 @@ public Builder clearLargeObjectsHandling() { private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - includeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> includeObjectsBuilder_; /** - * - * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return The includeObjects. */ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1808,8 +1673,6 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1828,8 +1691,6 @@ public Builder setIncludeObjects( return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1838,9 +1699,9 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && includeObjects_ != null - && includeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + includeObjects_ != null && + includeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -1853,8 +1714,6 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1872,8 +1731,6 @@ public Builder clearIncludeObjects() { return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1886,8 +1743,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuild return getIncludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1898,14 +1753,11 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? + com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; } } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -1913,17 +1765,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getIncludeObjects(), getParentForChildren(), isClean()); + includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getIncludeObjects(), + getParentForChildren(), + isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -1931,47 +1780,34 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> - excludeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> excludeObjectsBuilder_; /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1992,8 +1828,6 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2012,8 +1846,6 @@ public Builder setExcludeObjects( return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2022,9 +1854,9 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && excludeObjects_ != null - && excludeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + excludeObjects_ != null && + excludeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -2037,8 +1869,6 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2056,8 +1886,6 @@ public Builder clearExcludeObjects() { return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2070,8 +1898,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuild return getExcludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2082,14 +1908,11 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? + com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; } } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -2097,33 +1920,27 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getExcludeObjects(), + getParentForChildren(), + isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; } - private int maxConcurrentCdcTasks_; + private int maxConcurrentCdcTasks_ ; /** - * - * *
-     * Maximum number of concurrent CDC tasks. The number should be non negative.
-     * If not set (or set to 0), the system's default value will be used.
+     * Maximum number of concurrent CDC tasks. The number should be non-negative.
+     * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -2131,35 +1948,29 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } /** - * - * *
-     * Maximum number of concurrent CDC tasks. The number should be non negative.
-     * If not set (or set to 0), the system's default value will be used.
+     * Maximum number of concurrent CDC tasks. The number should be non-negative.
+     * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @param value The maxConcurrentCdcTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentCdcTasks(int value) { - + maxConcurrentCdcTasks_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Maximum number of concurrent CDC tasks. The number should be non negative.
-     * If not set (or set to 0), the system's default value will be used.
+     * Maximum number of concurrent CDC tasks. The number should be non-negative.
+     * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return This builder for chaining. */ public Builder clearMaxConcurrentCdcTasks() { @@ -2169,22 +1980,61 @@ public Builder clearMaxConcurrentCdcTasks() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> - dropLargeObjectsBuilder_; + private int maxConcurrentBackfillTasks_ ; + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be
+     * non-negative. If not set (or set to 0), the system's default value is used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } /** + *
+     * Maximum number of concurrent backfill tasks. The number should be
+     * non-negative. If not set (or set to 0), the system's default value is used.
+     * 
* + * int32 max_concurrent_backfill_tasks = 4; + * @param value The maxConcurrentBackfillTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentBackfillTasks(int value) { + + maxConcurrentBackfillTasks_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be
+     * non-negative. If not set (or set to 0), the system's default value is used.
+     * 
* + * int32 max_concurrent_backfill_tasks = 4; + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentBackfillTasks() { + bitField0_ = (bitField0_ & ~0x00000008); + maxConcurrentBackfillTasks_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> dropLargeObjectsBuilder_; + /** *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return Whether the dropLargeObjects field is set. */ @java.lang.Override @@ -2192,49 +2042,35 @@ public boolean hasDropLargeObjects() { return largeObjectsHandlingCase_ == 100; } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return The dropLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - getDropLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { if (dropLargeObjectsBuilder_ == null) { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } else { if (largeObjectsHandlingCase_ == 100) { return dropLargeObjectsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ - public Builder setDropLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + public Builder setDropLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { if (dropLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2248,19 +2084,14 @@ public Builder setDropLargeObjects( return this; } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ public Builder setDropLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder - builderForValue) { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder builderForValue) { if (dropLargeObjectsBuilder_ == null) { largeObjectsHandling_ = builderForValue.build(); onChanged(); @@ -2271,29 +2102,18 @@ public Builder setDropLargeObjects( return this; } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ - public Builder mergeDropLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + public Builder mergeDropLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { if (dropLargeObjectsBuilder_ == null) { - if (largeObjectsHandlingCase_ == 100 - && largeObjectsHandling_ - != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance()) { - largeObjectsHandling_ = - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder( - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_) - .mergeFrom(value) - .buildPartial(); + if (largeObjectsHandlingCase_ == 100 && + largeObjectsHandling_ != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance()) { + largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_) + .mergeFrom(value).buildPartial(); } else { largeObjectsHandling_ = value; } @@ -2309,15 +2129,11 @@ public Builder mergeDropLargeObjects( return this; } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ public Builder clearDropLargeObjects() { if (dropLargeObjectsBuilder_ == null) { @@ -2336,74 +2152,50 @@ public Builder clearDropLargeObjects() { return this; } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder - getDropLargeObjectsBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder getDropLargeObjectsBuilder() { return getDropLargeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder - getDropLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder() { if ((largeObjectsHandlingCase_ == 100) && (dropLargeObjectsBuilder_ != null)) { return dropLargeObjectsBuilder_.getMessageOrBuilder(); } else { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } } /** - * - * *
      * Drop large object values.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> getDropLargeObjectsFieldBuilder() { if (dropLargeObjectsBuilder_ == null) { if (!(largeObjectsHandlingCase_ == 100)) { - largeObjectsHandling_ = - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects - .getDefaultInstance(); + largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } - dropLargeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - largeObjectsHandling_, + dropLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_, getParentForChildren(), isClean()); largeObjectsHandling_ = null; @@ -2414,21 +2206,13 @@ public Builder clearDropLargeObjects() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> - streamLargeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> streamLargeObjectsBuilder_; /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return Whether the streamLargeObjects field is set. */ @java.lang.Override @@ -2436,49 +2220,35 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return The streamLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - getStreamLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects() { if (streamLargeObjectsBuilder_ == null) { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } else { if (largeObjectsHandlingCase_ == 102) { return streamLargeObjectsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ - public Builder setStreamLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + public Builder setStreamLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { if (streamLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2492,19 +2262,14 @@ public Builder setStreamLargeObjects( return this; } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ public Builder setStreamLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder - builderForValue) { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder builderForValue) { if (streamLargeObjectsBuilder_ == null) { largeObjectsHandling_ = builderForValue.build(); onChanged(); @@ -2515,29 +2280,18 @@ public Builder setStreamLargeObjects( return this; } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ - public Builder mergeStreamLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + public Builder mergeStreamLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { if (streamLargeObjectsBuilder_ == null) { - if (largeObjectsHandlingCase_ == 102 - && largeObjectsHandling_ - != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance()) { - largeObjectsHandling_ = - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder( - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_) - .mergeFrom(value) - .buildPartial(); + if (largeObjectsHandlingCase_ == 102 && + largeObjectsHandling_ != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance()) { + largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_) + .mergeFrom(value).buildPartial(); } else { largeObjectsHandling_ = value; } @@ -2553,15 +2307,11 @@ public Builder mergeStreamLargeObjects( return this; } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ public Builder clearStreamLargeObjects() { if (streamLargeObjectsBuilder_ == null) { @@ -2580,74 +2330,50 @@ public Builder clearStreamLargeObjects() { return this; } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder - getStreamLargeObjectsBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder getStreamLargeObjectsBuilder() { return getStreamLargeObjectsFieldBuilder().getBuilder(); } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder - getStreamLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder() { if ((largeObjectsHandlingCase_ == 102) && (streamLargeObjectsBuilder_ != null)) { return streamLargeObjectsBuilder_.getMessageOrBuilder(); } else { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } } /** - * - * *
-     * Stream large object values.
+     * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> getStreamLargeObjectsFieldBuilder() { if (streamLargeObjectsBuilder_ == null) { if (!(largeObjectsHandlingCase_ == 102)) { - largeObjectsHandling_ = - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects - .getDefaultInstance(); + largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); } - streamLargeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - largeObjectsHandling_, + streamLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_, getParentForChildren(), isClean()); largeObjectsHandling_ = null; @@ -2656,9 +2382,9 @@ public Builder clearStreamLargeObjects() { onChanged(); return streamLargeObjectsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2668,12 +2394,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig) private static final com.google.cloud.datastream.v1.OracleSourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig(); } @@ -2682,27 +2408,27 @@ public static com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2717,4 +2443,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index f21df17f7bcd..6c662cb862ad 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleSourceConfigOrBuilder - extends +public interface OracleSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; - * * @return The includeObjects. */ com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -59,32 +35,24 @@ public interface OracleSourceConfigOrBuilder com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; - * * @return The excludeObjects. */ com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
@@ -94,100 +62,80 @@ public interface OracleSourceConfigOrBuilder com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** - * - * *
-   * Maximum number of concurrent CDC tasks. The number should be non negative.
-   * If not set (or set to 0), the system's default value will be used.
+   * Maximum number of concurrent CDC tasks. The number should be non-negative.
+   * If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; - * * @return The maxConcurrentCdcTasks. */ int getMaxConcurrentCdcTasks(); /** + *
+   * Maximum number of concurrent backfill tasks. The number should be
+   * non-negative. If not set (or set to 0), the system's default value is used.
+   * 
* - * + * int32 max_concurrent_backfill_tasks = 4; + * @return The maxConcurrentBackfillTasks. + */ + int getMaxConcurrentBackfillTasks(); + + /** *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return Whether the dropLargeObjects field is set. */ boolean hasDropLargeObjects(); /** - * - * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; * @return The dropLargeObjects. */ com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects(); /** - * - * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; - * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; */ - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder - getDropLargeObjectsOrBuilder(); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder(); /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return Whether the streamLargeObjects field is set. */ boolean hasStreamLargeObjects(); /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; * @return The streamLargeObjects. */ com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects(); /** - * - * *
-   * Stream large object values.
+   * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; - * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; */ - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder - getStreamLargeObjectsOrBuilder(); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder(); - public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase - getLargeObjectsHandlingCase(); + public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase getLargeObjectsHandlingCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index 875dc041ddc0..73af57175971 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Oracle table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleTable} */ -public final class OracleTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleTable) OracleTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleTable.newBuilder() to construct. private OracleTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleTable() { table_ = ""; oracleColumns_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private OracleTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleTable.class, - com.google.cloud.datastream.v1.OracleTable.Builder.class); + com.google.cloud.datastream.v1.OracleTable.class, com.google.cloud.datastream.v1.OracleTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List oracleColumns_; /** - * - * *
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -139,8 +113,6 @@ public java.util.List getOracleColu
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -150,13 +122,11 @@ public java.util.List getOracleColu
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getOracleColumnsOrBuilderList() {
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -170,8 +140,6 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -185,8 +153,6 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
     return oracleColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -196,12 +162,12 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index) {
+  public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
+      int index) {
     return oracleColumns_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -213,7 +179,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -233,7 +200,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < oracleColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, oracleColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -243,16 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.OracleTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.OracleTable other =
-        (com.google.cloud.datastream.v1.OracleTable) obj;
+    com.google.cloud.datastream.v1.OracleTable other = (com.google.cloud.datastream.v1.OracleTable) obj;
 
-    if (!getTable().equals(other.getTable())) return false;
-    if (!getOracleColumnsList().equals(other.getOracleColumnsList())) return false;
+    if (!getTable()
+        .equals(other.getTable())) return false;
+    if (!getOracleColumnsList()
+        .equals(other.getOracleColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -275,136 +244,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.OracleTable parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.OracleTable parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1.OracleTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Oracle table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleTable} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleTable) com.google.cloud.datastream.v1.OracleTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleTable.class, - com.google.cloud.datastream.v1.OracleTable.Builder.class); + com.google.cloud.datastream.v1.OracleTable.class, com.google.cloud.datastream.v1.OracleTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleTable.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override @@ -442,12 +405,9 @@ public com.google.cloud.datastream.v1.OracleTable build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleTable buildPartial() { - com.google.cloud.datastream.v1.OracleTable result = - new com.google.cloud.datastream.v1.OracleTable(this); + com.google.cloud.datastream.v1.OracleTable result = new com.google.cloud.datastream.v1.OracleTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -475,39 +435,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleTable result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleTable) { - return mergeFrom((com.google.cloud.datastream.v1.OracleTable) other); + return mergeFrom((com.google.cloud.datastream.v1.OracleTable)other); } else { super.mergeFrom(other); return this; @@ -539,10 +498,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleTable other) { oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000002); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleColumnsFieldBuilder() - : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleColumnsFieldBuilder() : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -574,32 +532,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.OracleColumn m = - input.readMessage( - com.google.cloud.datastream.v1.OracleColumn.parser(), extensionRegistry); - if (oracleColumnsBuilder_ == null) { - ensureOracleColumnsIsMutable(); - oracleColumns_.add(m); - } else { - oracleColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.OracleColumn m = + input.readMessage( + com.google.cloud.datastream.v1.OracleColumn.parser(), + extensionRegistry); + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(m); + } else { + oracleColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -609,25 +565,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -636,21 +589,20 @@ public java.lang.String getTable() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -658,35 +610,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -696,21 +641,17 @@ public Builder clearTable() { return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -719,25 +660,18 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleColumns_ = - new java.util.ArrayList(oracleColumns_); + oracleColumns_ = new java.util.ArrayList(oracleColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleColumn, - com.google.cloud.datastream.v1.OracleColumn.Builder, - com.google.cloud.datastream.v1.OracleColumnOrBuilder> - oracleColumnsBuilder_; + com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder> oracleColumnsBuilder_; /** - * - * *
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -754,8 +688,6 @@ public java.util.List getOracleColu
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -772,8 +704,6 @@ public int getOracleColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -790,8 +720,6 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -800,7 +728,8 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public Builder setOracleColumns(int index, com.google.cloud.datastream.v1.OracleColumn value) {
+    public Builder setOracleColumns(
+        int index, com.google.cloud.datastream.v1.OracleColumn value) {
       if (oracleColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -814,8 +743,6 @@ public Builder setOracleColumns(int index, com.google.cloud.datastream.v1.Oracle
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -836,8 +763,6 @@ public Builder setOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -860,8 +785,6 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -870,7 +793,8 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public Builder addOracleColumns(int index, com.google.cloud.datastream.v1.OracleColumn value) {
+    public Builder addOracleColumns(
+        int index, com.google.cloud.datastream.v1.OracleColumn value) {
       if (oracleColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -884,8 +808,6 @@ public Builder addOracleColumns(int index, com.google.cloud.datastream.v1.Oracle
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -906,8 +828,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -928,8 +848,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -942,7 +860,8 @@ public Builder addAllOracleColumns(
         java.lang.Iterable values) {
       if (oracleColumnsBuilder_ == null) {
         ensureOracleColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, oracleColumns_);
         onChanged();
       } else {
         oracleColumnsBuilder_.addAllMessages(values);
@@ -950,8 +869,6 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -971,8 +888,6 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -992,8 +907,6 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1002,12 +915,11 @@ public Builder removeOracleColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuilder(int index) {
+    public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuilder(
+        int index) {
       return getOracleColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1019,14 +931,11 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuild
     public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
         int index) {
       if (oracleColumnsBuilder_ == null) {
-        return oracleColumns_.get(index);
-      } else {
+        return oracleColumns_.get(index);  } else {
         return oracleColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1035,8 +944,8 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsOrBuilderList() {
+    public java.util.List 
+         getOracleColumnsOrBuilderList() {
       if (oracleColumnsBuilder_ != null) {
         return oracleColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1044,8 +953,6 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1055,12 +962,10 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
     public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder() {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1069,13 +974,12 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder(int index) {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
+    public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder(
+        int index) {
+      return getOracleColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -1084,22 +988,16 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsBuilderList() {
+    public java.util.List 
+         getOracleColumnsBuilderList() {
       return getOracleColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.OracleColumn,
-            com.google.cloud.datastream.v1.OracleColumn.Builder,
-            com.google.cloud.datastream.v1.OracleColumnOrBuilder>
+        com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder> 
         getOracleColumnsFieldBuilder() {
       if (oracleColumnsBuilder_ == null) {
-        oracleColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1.OracleColumn,
-                com.google.cloud.datastream.v1.OracleColumn.Builder,
-                com.google.cloud.datastream.v1.OracleColumnOrBuilder>(
+        oracleColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder>(
                 oracleColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1108,9 +1006,9 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
       }
       return oracleColumnsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1120,12 +1018,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleTable)
   private static final com.google.cloud.datastream.v1.OracleTable DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleTable();
   }
@@ -1134,27 +1032,27 @@ public static com.google.cloud.datastream.v1.OracleTable getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OracleTable parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OracleTable parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1169,4 +1067,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
similarity index 70%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
index 5f9bce0849e5..902a499e4588 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface OracleTableOrBuilder
-    extends
+public interface OracleTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -59,10 +36,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  java.util.List getOracleColumnsList();
+  java.util.List 
+      getOracleColumnsList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -73,8 +49,6 @@ public interface OracleTableOrBuilder
    */
   com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index);
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -85,8 +59,6 @@ public interface OracleTableOrBuilder
    */
   int getOracleColumnsCount();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -95,11 +67,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getOracleColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -108,5 +78,6 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
similarity index 71%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
index 4d489b84b071..e780fef6be1c 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
- *
- *
  * 
  * PostgreSQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} */ -public final class PostgresqlColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlColumn) PostgresqlColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlColumn.newBuilder() to construct. private PostgresqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlColumn() { column_ = ""; dataType_ = ""; @@ -44,43 +26,38 @@ private PostgresqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlColumn.class, - com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + com.google.cloud.datastream.v1.PostgresqlColumn.class, com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -120,18 +97,14 @@ public com.google.protobuf.ByteString getColumnBytes() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** - * - * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ @java.lang.Override @@ -140,29 +113,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** - * - * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -173,14 +146,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -191,14 +161,11 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -209,14 +176,11 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -227,14 +191,11 @@ public int getScale() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -245,14 +206,11 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -263,14 +221,11 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -279,7 +234,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -332,22 +287,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, scale_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -357,22 +318,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlColumn other = - (com.google.cloud.datastream.v1.PostgresqlColumn) obj; - - if (!getColumn().equals(other.getColumn())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (getPrecision() != other.getPrecision()) return false; - if (getScale() != other.getScale()) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.PostgresqlColumn other = (com.google.cloud.datastream.v1.PostgresqlColumn) obj; + + if (!getColumn() + .equals(other.getColumn())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,9 +363,11 @@ public int hashCode() { hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -405,136 +375,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PostgreSQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlColumn) com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlColumn.class, - com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + com.google.cloud.datastream.v1.PostgresqlColumn.class, com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlColumn.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override @@ -572,11 +536,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlColumn buildPartial() { - com.google.cloud.datastream.v1.PostgresqlColumn result = - new com.google.cloud.datastream.v1.PostgresqlColumn(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.PostgresqlColumn result = new com.google.cloud.datastream.v1.PostgresqlColumn(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -613,39 +574,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlColumn resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn)other); } else { super.mergeFrom(other); return this; @@ -653,8 +613,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlColumn other) { - if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) return this; if (!other.getColumn().isEmpty()) { column_ = other.column_; bitField0_ |= 0x00000001; @@ -709,61 +668,52 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 56: - { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: - { - nullable_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 56: { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: { + nullable_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -773,25 +723,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object column_ = ""; /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -800,21 +747,20 @@ public java.lang.String getColumn() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return The bytes for column. */ - public com.google.protobuf.ByteString getColumnBytes() { + public com.google.protobuf.ByteString + getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); column_ = b; return b; } else { @@ -822,35 +768,28 @@ public com.google.protobuf.ByteString getColumnBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumn( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @return This builder for chaining. */ public Builder clearColumn() { @@ -860,21 +799,17 @@ public Builder clearColumn() { return this; } /** - * - * *
      * Column name.
      * 
* * string column = 1; - * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -884,20 +819,18 @@ public Builder setColumnBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -906,21 +839,20 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -928,35 +860,28 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; - * * @return This builder for chaining. */ public Builder clearDataType() { @@ -966,21 +891,17 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; - * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -988,16 +909,13 @@ public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int length_; + private int length_ ; /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -1005,33 +923,27 @@ public int getLength() { return length_; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1041,16 +953,13 @@ public Builder clearLength() { return this; } - private int precision_; + private int precision_ ; /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -1058,33 +967,27 @@ public int getPrecision() { return precision_; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -1094,16 +997,13 @@ public Builder clearPrecision() { return this; } - private int scale_; + private int scale_ ; /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -1111,33 +1011,27 @@ public int getScale() { return scale_; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return This builder for chaining. */ public Builder clearScale() { @@ -1147,16 +1041,13 @@ public Builder clearScale() { return this; } - private boolean primaryKey_; + private boolean primaryKey_ ; /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -1164,33 +1055,27 @@ public boolean getPrimaryKey() { return primaryKey_; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1200,16 +1085,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -1217,33 +1099,27 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1253,16 +1129,13 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_; + private int ordinalPosition_ ; /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -1270,33 +1143,27 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1305,9 +1172,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1317,12 +1184,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlColumn) private static final com.google.cloud.datastream.v1.PostgresqlColumn DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlColumn(); } @@ -1331,27 +1198,27 @@ public static com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,4 +1233,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java index 2bceb7244613..d5efd0d77112 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java @@ -1,152 +1,108 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlColumnOrBuilder - extends +public interface PostgresqlColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The column. */ java.lang.String getColumn(); /** - * - * *
    * Column name.
    * 
* * string column = 1; - * * @return The bytes for column. */ - com.google.protobuf.ByteString getColumnBytes(); + com.google.protobuf.ByteString + getColumnBytes(); /** - * - * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ int getPrecision(); /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ int getScale(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index f7b6d178c019..bd0841fbaddd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * PostgreSQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} */ -public final class PostgresqlProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlProfile) PostgresqlProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlProfile.newBuilder() to construct. private PostgresqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlProfile() { hostname_ = ""; username_ = ""; @@ -46,43 +28,38 @@ private PostgresqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlProfile.class, - com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + com.google.cloud.datastream.v1.PostgresqlProfile.class, com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -91,29 +68,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -124,14 +101,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
    * Port for the PostgreSQL connection, default value is 5432.
    * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -140,18 +114,14 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -160,29 +130,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -191,18 +161,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ @java.lang.Override @@ -211,29 +177,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -242,18 +208,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int DATABASE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ @java.lang.Override @@ -262,29 +224,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -293,7 +255,6 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,7 +266,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -334,7 +296,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -353,19 +316,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlProfile other = - (com.google.cloud.datastream.v1.PostgresqlProfile) obj; - - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getDatabase().equals(other.getDatabase())) return false; + com.google.cloud.datastream.v1.PostgresqlProfile other = (com.google.cloud.datastream.v1.PostgresqlProfile) obj; + + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -392,136 +359,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PostgreSQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlProfile) com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlProfile.class, - com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + com.google.cloud.datastream.v1.PostgresqlProfile.class, com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -535,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override @@ -556,11 +517,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfile buildPartial() { - com.google.cloud.datastream.v1.PostgresqlProfile result = - new com.google.cloud.datastream.v1.PostgresqlProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.PostgresqlProfile result = new com.google.cloud.datastream.v1.PostgresqlProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -588,39 +546,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlProfile resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile)other); } else { super.mergeFrom(other); return this; @@ -628,8 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlProfile other) { - if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -679,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -725,25 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -752,21 +699,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -774,35 +720,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -812,21 +751,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -834,16 +769,13 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -851,33 +783,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -889,20 +815,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -911,21 +835,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -933,35 +856,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -971,21 +887,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -995,20 +907,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1017,21 +927,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1039,35 +948,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1077,21 +979,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1101,20 +999,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object database_ = ""; /** - * - * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -1123,21 +1019,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -1145,35 +1040,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1183,30 +1071,26 @@ public Builder clearDatabase() { return this; } /** - * - * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1216,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlProfile) private static final com.google.cloud.datastream.v1.PostgresqlProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlProfile(); } @@ -1230,27 +1114,27 @@ public static com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1265,4 +1149,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java index 0c8dbafdaf71..523c79a80172 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java @@ -1,138 +1,99 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlProfileOrBuilder - extends +public interface PostgresqlProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the PostgreSQL connection, default value is 5432.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java index 8d9a001e7e5e..8d3f7fafffae 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * PostgreSQL database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} */ -public final class PostgresqlRdbms extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlRdbms extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlRdbms) PostgresqlRdbmsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlRdbms.newBuilder() to construct. private PostgresqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlRdbms() { postgresqlSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlRdbms.class, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + com.google.cloud.datastream.v1.PostgresqlRdbms.class, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); } public static final int POSTGRESQL_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List postgresqlSchemas_; /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -81,13 +59,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ @java.lang.Override - public java.util.List - getPostgresqlSchemasList() { + public java.util.List getPostgresqlSchemasList() { return postgresqlSchemas_; } /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -95,13 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPostgresqlSchemasOrBuilderList() { return postgresqlSchemas_; } /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -113,8 +86,6 @@ public int getPostgresqlSchemasCount() { return postgresqlSchemas_.size(); } /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -126,8 +97,6 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int return postgresqlSchemas_.get(index); } /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -141,7 +110,6 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < postgresqlSchemas_.size(); i++) { output.writeMessage(1, postgresqlSchemas_.get(i)); } @@ -167,8 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < postgresqlSchemas_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, postgresqlSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, postgresqlSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlRdbms other = - (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; + com.google.cloud.datastream.v1.PostgresqlRdbms other = (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; - if (!getPostgresqlSchemasList().equals(other.getPostgresqlSchemasList())) return false; + if (!getPostgresqlSchemasList() + .equals(other.getPostgresqlSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -207,136 +176,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PostgreSQL database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlRdbms) com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlRdbms.class, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + com.google.cloud.datastream.v1.PostgresqlRdbms.class, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override @@ -373,12 +336,9 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms buildPartial() { - com.google.cloud.datastream.v1.PostgresqlRdbms result = - new com.google.cloud.datastream.v1.PostgresqlRdbms(this); + com.google.cloud.datastream.v1.PostgresqlRdbms result = new com.google.cloud.datastream.v1.PostgresqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -403,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlRdbms result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms)other); } else { super.mergeFrom(other); return this; @@ -462,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlRdbms other) { postgresqlSchemasBuilder_ = null; postgresqlSchemas_ = other.postgresqlSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - postgresqlSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPostgresqlSchemasFieldBuilder() - : null; + postgresqlSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPostgresqlSchemasFieldBuilder() : null; } else { postgresqlSchemasBuilder_.addAllMessages(other.postgresqlSchemas_); } @@ -497,27 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.PostgresqlSchema m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlSchema.parser(), - extensionRegistry); - if (postgresqlSchemasBuilder_ == null) { - ensurePostgresqlSchemasIsMutable(); - postgresqlSchemas_.add(m); - } else { - postgresqlSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.PostgresqlSchema m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSchema.parser(), + extensionRegistry); + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(m); + } else { + postgresqlSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,38 +483,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List postgresqlSchemas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePostgresqlSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - postgresqlSchemas_ = - new java.util.ArrayList( - postgresqlSchemas_); + postgresqlSchemas_ = new java.util.ArrayList(postgresqlSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, - com.google.cloud.datastream.v1.PostgresqlSchema.Builder, - com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> - postgresqlSchemasBuilder_; + com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> postgresqlSchemasBuilder_; /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List - getPostgresqlSchemasList() { + public java.util.List getPostgresqlSchemasList() { if (postgresqlSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(postgresqlSchemas_); } else { @@ -566,8 +512,6 @@ private void ensurePostgresqlSchemasIsMutable() { } } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -582,8 +526,6 @@ public int getPostgresqlSchemasCount() { } } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -598,8 +540,6 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int } } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -621,8 +561,6 @@ public Builder setPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -641,8 +579,6 @@ public Builder setPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -663,8 +599,6 @@ public Builder addPostgresqlSchemas(com.google.cloud.datastream.v1.PostgresqlSch return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -686,8 +620,6 @@ public Builder addPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -706,8 +638,6 @@ public Builder addPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -726,8 +656,6 @@ public Builder addPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -738,7 +666,8 @@ public Builder addAllPostgresqlSchemas( java.lang.Iterable values) { if (postgresqlSchemasBuilder_ == null) { ensurePostgresqlSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, postgresqlSchemas_); onChanged(); } else { postgresqlSchemasBuilder_.addAllMessages(values); @@ -746,8 +675,6 @@ public Builder addAllPostgresqlSchemas( return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -765,8 +692,6 @@ public Builder clearPostgresqlSchemas() { return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -784,8 +709,6 @@ public Builder removePostgresqlSchemas(int index) { return this; } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -797,8 +720,6 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSche return getPostgresqlSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -808,22 +729,19 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSche public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( int index) { if (postgresqlSchemasBuilder_ == null) { - return postgresqlSchemas_.get(index); - } else { + return postgresqlSchemas_.get(index); } else { return postgresqlSchemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List - getPostgresqlSchemasOrBuilderList() { + public java.util.List + getPostgresqlSchemasOrBuilderList() { if (postgresqlSchemasBuilder_ != null) { return postgresqlSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -831,8 +749,6 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -840,12 +756,10 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder() { - return getPostgresqlSchemasFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + return getPostgresqlSchemasFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
@@ -854,34 +768,26 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSche */ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder( int index) { - return getPostgresqlSchemasFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + return getPostgresqlSchemasFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); } /** - * - * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List - getPostgresqlSchemasBuilderList() { + public java.util.List + getPostgresqlSchemasBuilderList() { return getPostgresqlSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, - com.google.cloud.datastream.v1.PostgresqlSchema.Builder, - com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> getPostgresqlSchemasFieldBuilder() { if (postgresqlSchemasBuilder_ == null) { - postgresqlSchemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, - com.google.cloud.datastream.v1.PostgresqlSchema.Builder, - com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( + postgresqlSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( postgresqlSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,9 +796,9 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSche } return postgresqlSchemasBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -902,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlRdbms) private static final com.google.cloud.datastream.v1.PostgresqlRdbms DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlRdbms(); } @@ -916,27 +822,27 @@ public static com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -951,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java index 2f2a3d1c3290..96f0141c4279 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlRdbmsOrBuilder - extends +public interface PostgresqlRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - java.util.List getPostgresqlSchemasList(); + java.util.List + getPostgresqlSchemasList(); /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -44,8 +25,6 @@ public interface PostgresqlRdbmsOrBuilder */ com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index); /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
@@ -54,24 +33,21 @@ public interface PostgresqlRdbmsOrBuilder */ int getPostgresqlSchemasCount(); /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - java.util.List + java.util.List getPostgresqlSchemasOrBuilderList(); /** - * - * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder(int index); + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java index 33e2fed62c63..30c79b2014a2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * PostgreSQL schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} */ -public final class PostgresqlSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSchema) PostgresqlSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlSchema.newBuilder() to construct. private PostgresqlSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlSchema() { schema_ = ""; postgresqlTables_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private PostgresqlSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSchema.class, - com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSchema.class, com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The schema. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int POSTGRESQL_TABLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List postgresqlTables_; /** - * - * *
    * Tables in the schema.
    * 
@@ -137,8 +111,6 @@ public java.util.List getPostgre return postgresqlTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -146,13 +118,11 @@ public java.util.List getPostgre * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPostgresqlTablesOrBuilderList() { return postgresqlTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -164,8 +134,6 @@ public int getPostgresqlTablesCount() { return postgresqlTables_.size(); } /** - * - * *
    * Tables in the schema.
    * 
@@ -177,8 +145,6 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in return postgresqlTables_.get(index); } /** - * - * *
    * Tables in the schema.
    * 
@@ -192,7 +158,6 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } for (int i = 0; i < postgresqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, postgresqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlSchema other = - (com.google.cloud.datastream.v1.PostgresqlSchema) obj; + com.google.cloud.datastream.v1.PostgresqlSchema other = (com.google.cloud.datastream.v1.PostgresqlSchema) obj; - if (!getSchema().equals(other.getSchema())) return false; - if (!getPostgresqlTablesList().equals(other.getPostgresqlTablesList())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getPostgresqlTablesList() + .equals(other.getPostgresqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,136 +234,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PostgreSQL schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSchema) com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSchema.class, - com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSchema.class, com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override @@ -433,18 +395,14 @@ public com.google.cloud.datastream.v1.PostgresqlSchema build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSchema buildPartial() { - com.google.cloud.datastream.v1.PostgresqlSchema result = - new com.google.cloud.datastream.v1.PostgresqlSchema(this); + com.google.cloud.datastream.v1.PostgresqlSchema result = new com.google.cloud.datastream.v1.PostgresqlSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.PostgresqlSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.PostgresqlSchema result) { if (postgresqlTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); @@ -467,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSchema resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlSchema) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema)other); } else { super.mergeFrom(other); return this; @@ -507,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) { - if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -532,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) postgresqlTablesBuilder_ = null; postgresqlTables_ = other.postgresqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - postgresqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPostgresqlTablesFieldBuilder() - : null; + postgresqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPostgresqlTablesFieldBuilder() : null; } else { postgresqlTablesBuilder_.addAllMessages(other.postgresqlTables_); } @@ -567,32 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.PostgresqlTable m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry); - if (postgresqlTablesBuilder_ == null) { - ensurePostgresqlTablesIsMutable(); - postgresqlTables_.add(m); - } else { - postgresqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.PostgresqlTable m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlTable.parser(), + extensionRegistry); + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(m); + } else { + postgresqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -602,25 +555,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -629,21 +579,20 @@ public java.lang.String getSchema() { } } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -651,35 +600,28 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -689,21 +631,17 @@ public Builder clearSchema() { return this; } /** - * - * *
      * Schema name.
      * 
* * string schema = 1; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -712,34 +650,25 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { } private java.util.List postgresqlTables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePostgresqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - postgresqlTables_ = - new java.util.ArrayList( - postgresqlTables_); + postgresqlTables_ = new java.util.ArrayList(postgresqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, - com.google.cloud.datastream.v1.PostgresqlTable.Builder, - com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> - postgresqlTablesBuilder_; + com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> postgresqlTablesBuilder_; /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List - getPostgresqlTablesList() { + public java.util.List getPostgresqlTablesList() { if (postgresqlTablesBuilder_ == null) { return java.util.Collections.unmodifiableList(postgresqlTables_); } else { @@ -747,8 +676,6 @@ private void ensurePostgresqlTablesIsMutable() { } } /** - * - * *
      * Tables in the schema.
      * 
@@ -763,8 +690,6 @@ public int getPostgresqlTablesCount() { } } /** - * - * *
      * Tables in the schema.
      * 
@@ -779,8 +704,6 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in } } /** - * - * *
      * Tables in the schema.
      * 
@@ -802,8 +725,6 @@ public Builder setPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -822,8 +743,6 @@ public Builder setPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -844,8 +763,6 @@ public Builder addPostgresqlTables(com.google.cloud.datastream.v1.PostgresqlTabl return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -867,8 +784,6 @@ public Builder addPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -887,8 +802,6 @@ public Builder addPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -907,8 +820,6 @@ public Builder addPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -919,7 +830,8 @@ public Builder addAllPostgresqlTables( java.lang.Iterable values) { if (postgresqlTablesBuilder_ == null) { ensurePostgresqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, postgresqlTables_); onChanged(); } else { postgresqlTablesBuilder_.addAllMessages(values); @@ -927,8 +839,6 @@ public Builder addAllPostgresqlTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -946,8 +856,6 @@ public Builder clearPostgresqlTables() { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -965,8 +873,6 @@ public Builder removePostgresqlTables(int index) { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -978,8 +884,6 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTable return getPostgresqlTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the schema.
      * 
@@ -989,22 +893,19 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTable public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( int index) { if (postgresqlTablesBuilder_ == null) { - return postgresqlTables_.get(index); - } else { + return postgresqlTables_.get(index); } else { return postgresqlTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List - getPostgresqlTablesOrBuilderList() { + public java.util.List + getPostgresqlTablesOrBuilderList() { if (postgresqlTablesBuilder_ != null) { return postgresqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1012,8 +913,6 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } } /** - * - * *
      * Tables in the schema.
      * 
@@ -1021,12 +920,10 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder() { - return getPostgresqlTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + return getPostgresqlTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
@@ -1035,34 +932,26 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTable */ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder( int index) { - return getPostgresqlTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + return getPostgresqlTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List - getPostgresqlTablesBuilderList() { + public java.util.List + getPostgresqlTablesBuilderList() { return getPostgresqlTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, - com.google.cloud.datastream.v1.PostgresqlTable.Builder, - com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> getPostgresqlTablesFieldBuilder() { if (postgresqlTablesBuilder_ == null) { - postgresqlTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, - com.google.cloud.datastream.v1.PostgresqlTable.Builder, - com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( + postgresqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( postgresqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -1071,9 +960,9 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTable } return postgresqlTablesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1083,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSchema) private static final com.google.cloud.datastream.v1.PostgresqlSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSchema(); } @@ -1097,27 +986,27 @@ public static com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java index 3730f8a07e69..379d1256487e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlSchemaOrBuilder - extends +public interface PostgresqlSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
    * Schema name.
    * 
* * string schema = 1; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - java.util.List getPostgresqlTablesList(); + java.util.List + getPostgresqlTablesList(); /** - * - * *
    * Tables in the schema.
    * 
@@ -69,8 +45,6 @@ public interface PostgresqlSchemaOrBuilder */ com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index); /** - * - * *
    * Tables in the schema.
    * 
@@ -79,24 +53,21 @@ public interface PostgresqlSchemaOrBuilder */ int getPostgresqlTablesCount(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - java.util.List + java.util.List getPostgresqlTablesOrBuilderList(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder(int index); + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java index d9d42f296b0b..72a0cedb9947 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * PostgreSQL data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ -public final class PostgresqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlSourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) PostgresqlSourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlSourceConfig.newBuilder() to construct. private PostgresqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlSourceConfig() { replicationSlot_ = ""; publication_ = ""; @@ -44,41 +26,37 @@ private PostgresqlSourceConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -86,25 +64,18 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
@@ -113,22 +84,17 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -136,25 +102,18 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
@@ -163,25 +122,19 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object replicationSlot_ = ""; /** - * - * *
-   * Required. The name of the logical replication slot that's configured with the
-   * pgoutput plugin.
+   * Required. Immutable. The name of the logical replication slot that's
+   * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The replicationSlot. */ @java.lang.Override @@ -190,30 +143,30 @@ public java.lang.String getReplicationSlot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSlot_ = s; return s; } } /** - * - * *
-   * Required. The name of the logical replication slot that's configured with the
-   * pgoutput plugin.
+   * Required. Immutable. The name of the logical replication slot that's
+   * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for replicationSlot. */ @java.lang.Override - public com.google.protobuf.ByteString getReplicationSlotBytes() { + public com.google.protobuf.ByteString + getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replicationSlot_ = b; return b; } else { @@ -222,19 +175,15 @@ public com.google.protobuf.ByteString getReplicationSlotBytes() { } public static final int PUBLICATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object publication_ = ""; /** - * - * *
-   * Required. The name of the publication that includes the set of all tables that are
-   * defined in the stream's include_objects.
+   * Required. The name of the publication that includes the set of all tables
+   * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The publication. */ @java.lang.Override @@ -243,30 +192,30 @@ public java.lang.String getPublication() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publication_ = s; return s; } } /** - * - * *
-   * Required. The name of the publication that includes the set of all tables that are
-   * defined in the stream's include_objects.
+   * Required. The name of the publication that includes the set of all tables
+   * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for publication. */ @java.lang.Override - public com.google.protobuf.ByteString getPublicationBytes() { + public com.google.protobuf.ByteString + getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publication_ = b; return b; } else { @@ -274,8 +223,24 @@ public com.google.protobuf.ByteString getPublicationBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 5; + private int maxConcurrentBackfillTasks_ = 0; + /** + *
+   * Maximum number of concurrent backfill tasks. The number should be non
+   * negative. If not set (or set to 0), the system's default value will be
+   * used.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 5; + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -287,7 +252,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -300,6 +266,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, publication_); } + if (maxConcurrentBackfillTasks_ != 0) { + output.writeInt32(5, maxConcurrentBackfillTasks_); + } getUnknownFields().writeTo(output); } @@ -310,10 +279,12 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExcludeObjects()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, replicationSlot_); @@ -321,6 +292,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(publication_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publication_); } + if (maxConcurrentBackfillTasks_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, maxConcurrentBackfillTasks_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -329,24 +304,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlSourceConfig other = - (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; + com.google.cloud.datastream.v1.PostgresqlSourceConfig other = (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects() + .equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; - } - if (!getReplicationSlot().equals(other.getReplicationSlot())) return false; - if (!getPublication().equals(other.getPublication())) return false; + if (!getExcludeObjects() + .equals(other.getExcludeObjects())) return false; + } + if (!getReplicationSlot() + .equals(other.getReplicationSlot())) return false; + if (!getPublication() + .equals(other.getPublication())) return false; + if (getMaxConcurrentBackfillTasks() + != other.getMaxConcurrentBackfillTasks()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -370,142 +350,137 @@ public int hashCode() { hash = (53 * hash) + getReplicationSlot().hashCode(); hash = (37 * hash) + PUBLICATION_FIELD_NUMBER; hash = (53 * hash) + getPublication().hashCode(); + hash = (37 * hash) + MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER; + hash = (53 * hash) + getMaxConcurrentBackfillTasks(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.PostgresqlSourceConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * PostgreSQL data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -522,13 +497,14 @@ public Builder clear() { } replicationSlot_ = ""; publication_ = ""; + maxConcurrentBackfillTasks_ = 0; return this; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override @@ -547,11 +523,8 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1.PostgresqlSourceConfig result = - new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.PostgresqlSourceConfig result = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -559,12 +532,14 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = - includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); + result.includeObjects_ = includeObjectsBuilder_ == null + ? includeObjects_ + : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = - excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); + result.excludeObjects_ = excludeObjectsBuilder_ == null + ? excludeObjects_ + : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.replicationSlot_ = replicationSlot_; @@ -572,45 +547,47 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSourceConfig if (((from_bitField0_ & 0x00000008) != 0)) { result.publication_ = publication_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxConcurrentBackfillTasks_ = maxConcurrentBackfillTasks_; + } } @java.lang.Override public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig)other); } else { super.mergeFrom(other); return this; @@ -618,8 +595,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -636,6 +612,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSourceConfig o bitField0_ |= 0x00000008; onChanged(); } + if (other.getMaxConcurrentBackfillTasks() != 0) { + setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -662,37 +641,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - replicationSlot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - publication_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getIncludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getExcludeObjectsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + replicationSlot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + publication_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -702,52 +685,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> - includeObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> includeObjectsBuilder_; /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return The includeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -768,8 +737,6 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -788,8 +755,6 @@ public Builder setIncludeObjects( return this; } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -798,10 +763,9 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && includeObjects_ != null - && includeObjects_ - != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + includeObjects_ != null && + includeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -814,8 +778,6 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -833,8 +795,6 @@ public Builder clearIncludeObjects() { return this; } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -847,8 +807,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsB return getIncludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -859,14 +817,11 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : includeObjects_; + return includeObjects_ == null ? + com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; } } /** - * - * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -874,17 +829,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( - getIncludeObjects(), getParentForChildren(), isClean()); + includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getIncludeObjects(), + getParentForChildren(), + isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -892,47 +844,34 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> - excludeObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> excludeObjectsBuilder_; /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -953,8 +892,6 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -973,8 +910,6 @@ public Builder setExcludeObjects( return this; } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -983,10 +918,9 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && excludeObjects_ != null - && excludeObjects_ - != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + excludeObjects_ != null && + excludeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -999,8 +933,6 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -1018,8 +950,6 @@ public Builder clearExcludeObjects() { return this; } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -1032,8 +962,6 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsB return getExcludeObjectsFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -1044,14 +972,11 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null - ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() - : excludeObjects_; + return excludeObjects_ == null ? + com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; } } /** - * - * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -1059,17 +984,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( - getExcludeObjects(), getParentForChildren(), isClean()); + excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getExcludeObjects(), + getParentForChildren(), + isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; @@ -1077,21 +999,19 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects private java.lang.Object replicationSlot_ = ""; /** - * - * *
-     * Required. The name of the logical replication slot that's configured with the
-     * pgoutput plugin.
+     * Required. Immutable. The name of the logical replication slot that's
+     * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The replicationSlot. */ public java.lang.String getReplicationSlot() { java.lang.Object ref = replicationSlot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSlot_ = s; return s; @@ -1100,22 +1020,21 @@ public java.lang.String getReplicationSlot() { } } /** - * - * *
-     * Required. The name of the logical replication slot that's configured with the
-     * pgoutput plugin.
+     * Required. Immutable. The name of the logical replication slot that's
+     * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for replicationSlot. */ - public com.google.protobuf.ByteString getReplicationSlotBytes() { + public com.google.protobuf.ByteString + getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replicationSlot_ = b; return b; } else { @@ -1123,37 +1042,30 @@ public com.google.protobuf.ByteString getReplicationSlotBytes() { } } /** - * - * *
-     * Required. The name of the logical replication slot that's configured with the
-     * pgoutput plugin.
+     * Required. Immutable. The name of the logical replication slot that's
+     * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlot(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplicationSlot( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } replicationSlot_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
-     * Required. The name of the logical replication slot that's configured with the
-     * pgoutput plugin.
+     * Required. Immutable. The name of the logical replication slot that's
+     * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearReplicationSlot() { @@ -1163,22 +1075,18 @@ public Builder clearReplicationSlot() { return this; } /** - * - * *
-     * Required. The name of the logical replication slot that's configured with the
-     * pgoutput plugin.
+     * Required. Immutable. The name of the logical replication slot that's
+     * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReplicationSlotBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); replicationSlot_ = value; bitField0_ |= 0x00000004; @@ -1188,21 +1096,19 @@ public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { private java.lang.Object publication_ = ""; /** - * - * *
-     * Required. The name of the publication that includes the set of all tables that are
-     * defined in the stream's include_objects.
+     * Required. The name of the publication that includes the set of all tables
+     * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The publication. */ public java.lang.String getPublication() { java.lang.Object ref = publication_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publication_ = s; return s; @@ -1211,22 +1117,21 @@ public java.lang.String getPublication() { } } /** - * - * *
-     * Required. The name of the publication that includes the set of all tables that are
-     * defined in the stream's include_objects.
+     * Required. The name of the publication that includes the set of all tables
+     * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for publication. */ - public com.google.protobuf.ByteString getPublicationBytes() { + public com.google.protobuf.ByteString + getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); publication_ = b; return b; } else { @@ -1234,37 +1139,30 @@ public com.google.protobuf.ByteString getPublicationBytes() { } } /** - * - * *
-     * Required. The name of the publication that includes the set of all tables that are
-     * defined in the stream's include_objects.
+     * Required. The name of the publication that includes the set of all tables
+     * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The publication to set. * @return This builder for chaining. */ - public Builder setPublication(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublication( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } publication_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Required. The name of the publication that includes the set of all tables that are
-     * defined in the stream's include_objects.
+     * Required. The name of the publication that includes the set of all tables
+     * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPublication() { @@ -1274,22 +1172,18 @@ public Builder clearPublication() { return this; } /** - * - * *
-     * Required. The name of the publication that includes the set of all tables that are
-     * defined in the stream's include_objects.
+     * Required. The name of the publication that includes the set of all tables
+     * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for publication to set. * @return This builder for chaining. */ - public Builder setPublicationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPublicationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); publication_ = value; bitField0_ |= 0x00000008; @@ -1297,8 +1191,58 @@ public Builder setPublicationBytes(com.google.protobuf.ByteString value) { return this; } + private int maxConcurrentBackfillTasks_ ; + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 5; + * @return The maxConcurrentBackfillTasks. + */ + @java.lang.Override + public int getMaxConcurrentBackfillTasks() { + return maxConcurrentBackfillTasks_; + } + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 5; + * @param value The maxConcurrentBackfillTasks to set. + * @return This builder for chaining. + */ + public Builder setMaxConcurrentBackfillTasks(int value) { + + maxConcurrentBackfillTasks_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Maximum number of concurrent backfill tasks. The number should be non
+     * negative. If not set (or set to 0), the system's default value will be
+     * used.
+     * 
+ * + * int32 max_concurrent_backfill_tasks = 5; + * @return This builder for chaining. + */ + public Builder clearMaxConcurrentBackfillTasks() { + bitField0_ = (bitField0_ & ~0x00000010); + maxConcurrentBackfillTasks_ = 0; + onChanged(); + return this; + } @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1308,12 +1252,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) private static final com.google.cloud.datastream.v1.PostgresqlSourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(); } @@ -1322,27 +1266,27 @@ public static com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1357,4 +1301,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java index 392de3dc37b2..2b7a768b6c8a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlSourceConfigOrBuilder - extends +public interface PostgresqlSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; - * * @return The includeObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects(); /** - * - * *
    * PostgreSQL objects to include in the stream.
    * 
@@ -59,32 +35,24 @@ public interface PostgresqlSourceConfigOrBuilder com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; - * * @return The excludeObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects(); /** - * - * *
    * PostgreSQL objects to exclude from the stream.
    * 
@@ -94,56 +62,58 @@ public interface PostgresqlSourceConfigOrBuilder com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** - * - * *
-   * Required. The name of the logical replication slot that's configured with the
-   * pgoutput plugin.
+   * Required. Immutable. The name of the logical replication slot that's
+   * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The replicationSlot. */ java.lang.String getReplicationSlot(); /** - * - * *
-   * Required. The name of the logical replication slot that's configured with the
-   * pgoutput plugin.
+   * Required. Immutable. The name of the logical replication slot that's
+   * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for replicationSlot. */ - com.google.protobuf.ByteString getReplicationSlotBytes(); + com.google.protobuf.ByteString + getReplicationSlotBytes(); /** - * - * *
-   * Required. The name of the publication that includes the set of all tables that are
-   * defined in the stream's include_objects.
+   * Required. The name of the publication that includes the set of all tables
+   * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The publication. */ java.lang.String getPublication(); /** - * - * *
-   * Required. The name of the publication that includes the set of all tables that are
-   * defined in the stream's include_objects.
+   * Required. The name of the publication that includes the set of all tables
+   * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for publication. */ - com.google.protobuf.ByteString getPublicationBytes(); + com.google.protobuf.ByteString + getPublicationBytes(); + + /** + *
+   * Maximum number of concurrent backfill tasks. The number should be non
+   * negative. If not set (or set to 0), the system's default value will be
+   * used.
+   * 
+ * + * int32 max_concurrent_backfill_tasks = 5; + * @return The maxConcurrentBackfillTasks. + */ + int getMaxConcurrentBackfillTasks(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java similarity index 75% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java index f01d5fb4fa8b..4e17f11b5f8c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * PostgreSQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} */ -public final class PostgresqlTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PostgresqlTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlTable) PostgresqlTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PostgresqlTable.newBuilder() to construct. private PostgresqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlTable() { table_ = ""; postgresqlColumns_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private PostgresqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlTable.class, - com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + com.google.cloud.datastream.v1.PostgresqlTable.class, com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTableBytes() { } public static final int POSTGRESQL_COLUMNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List postgresqlColumns_; /** - * - * *
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -135,13 +109,10 @@ public com.google.protobuf.ByteString getTableBytes() {
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getPostgresqlColumnsList() {
+  public java.util.List getPostgresqlColumnsList() {
     return postgresqlColumns_;
   }
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -151,13 +122,11 @@ public com.google.protobuf.ByteString getTableBytes() {
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPostgresqlColumnsOrBuilderList() {
     return postgresqlColumns_;
   }
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -171,8 +140,6 @@ public int getPostgresqlColumnsCount() {
     return postgresqlColumns_.size();
   }
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -186,8 +153,6 @@ public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int
     return postgresqlColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -203,7 +168,6 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -215,7 +179,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -235,8 +200,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < postgresqlColumns_.size(); i++) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, postgresqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -246,16 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.PostgresqlTable other =
-        (com.google.cloud.datastream.v1.PostgresqlTable) obj;
+    com.google.cloud.datastream.v1.PostgresqlTable other = (com.google.cloud.datastream.v1.PostgresqlTable) obj;
 
-    if (!getTable().equals(other.getTable())) return false;
-    if (!getPostgresqlColumnsList().equals(other.getPostgresqlColumnsList())) return false;
+    if (!getTable()
+        .equals(other.getTable())) return false;
+    if (!getPostgresqlColumnsList()
+        .equals(other.getPostgresqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -278,136 +244,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * PostgreSQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlTable) com.google.cloud.datastream.v1.PostgresqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlTable.class, - com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + com.google.cloud.datastream.v1.PostgresqlTable.class, com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlTable.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override @@ -445,12 +405,9 @@ public com.google.cloud.datastream.v1.PostgresqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlTable buildPartial() { - com.google.cloud.datastream.v1.PostgresqlTable result = - new com.google.cloud.datastream.v1.PostgresqlTable(this); + com.google.cloud.datastream.v1.PostgresqlTable result = new com.google.cloud.datastream.v1.PostgresqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -478,39 +435,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlTable result public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlTable) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable) other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable)other); } else { super.mergeFrom(other); return this; @@ -542,10 +498,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlTable other) { postgresqlColumnsBuilder_ = null; postgresqlColumns_ = other.postgresqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - postgresqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPostgresqlColumnsFieldBuilder() - : null; + postgresqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPostgresqlColumnsFieldBuilder() : null; } else { postgresqlColumnsBuilder_.addAllMessages(other.postgresqlColumns_); } @@ -577,33 +532,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1.PostgresqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlColumn.parser(), - extensionRegistry); - if (postgresqlColumnsBuilder_ == null) { - ensurePostgresqlColumnsIsMutable(); - postgresqlColumns_.add(m); - } else { - postgresqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1.PostgresqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlColumn.parser(), + extensionRegistry); + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(m); + } else { + postgresqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,25 +565,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object table_ = ""; /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -640,21 +589,20 @@ public java.lang.String getTable() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -662,35 +610,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -700,21 +641,17 @@ public Builder clearTable() { return this; } /** - * - * *
      * Table name.
      * 
* * string table = 1; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -723,26 +660,18 @@ public Builder setTableBytes(com.google.protobuf.ByteString value) { } private java.util.List postgresqlColumns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePostgresqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - postgresqlColumns_ = - new java.util.ArrayList( - postgresqlColumns_); + postgresqlColumns_ = new java.util.ArrayList(postgresqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlColumn, - com.google.cloud.datastream.v1.PostgresqlColumn.Builder, - com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> - postgresqlColumnsBuilder_; + com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> postgresqlColumnsBuilder_; /** - * - * *
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -751,8 +680,7 @@ private void ensurePostgresqlColumnsIsMutable() {
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List
-        getPostgresqlColumnsList() {
+    public java.util.List getPostgresqlColumnsList() {
       if (postgresqlColumnsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(postgresqlColumns_);
       } else {
@@ -760,8 +688,6 @@ private void ensurePostgresqlColumnsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -778,8 +704,6 @@ public int getPostgresqlColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -796,8 +720,6 @@ public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int
       }
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -821,8 +743,6 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -843,8 +763,6 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -867,8 +785,6 @@ public Builder addPostgresqlColumns(com.google.cloud.datastream.v1.PostgresqlCol
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -892,8 +808,6 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -914,8 +828,6 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -936,8 +848,6 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -950,7 +860,8 @@ public Builder addAllPostgresqlColumns(
         java.lang.Iterable values) {
       if (postgresqlColumnsBuilder_ == null) {
         ensurePostgresqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, postgresqlColumns_);
         onChanged();
       } else {
         postgresqlColumnsBuilder_.addAllMessages(values);
@@ -958,8 +869,6 @@ public Builder addAllPostgresqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -979,8 +888,6 @@ public Builder clearPostgresqlColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1000,8 +907,6 @@ public Builder removePostgresqlColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1015,8 +920,6 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColu
       return getPostgresqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1028,14 +931,11 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColu
     public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(
         int index) {
       if (postgresqlColumnsBuilder_ == null) {
-        return postgresqlColumns_.get(index);
-      } else {
+        return postgresqlColumns_.get(index);  } else {
         return postgresqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1044,8 +944,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List
-        getPostgresqlColumnsOrBuilderList() {
+    public java.util.List 
+         getPostgresqlColumnsOrBuilderList() {
       if (postgresqlColumnsBuilder_ != null) {
         return postgresqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1053,8 +953,6 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
       }
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1064,12 +962,10 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
     public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder() {
-      return getPostgresqlColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
+      return getPostgresqlColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1080,12 +976,10 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
      */
     public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder(
         int index) {
-      return getPostgresqlColumnsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
+      return getPostgresqlColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -1094,22 +988,16 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List
-        getPostgresqlColumnsBuilderList() {
+    public java.util.List 
+         getPostgresqlColumnsBuilderList() {
       return getPostgresqlColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.PostgresqlColumn,
-            com.google.cloud.datastream.v1.PostgresqlColumn.Builder,
-            com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>
+        com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> 
         getPostgresqlColumnsFieldBuilder() {
       if (postgresqlColumnsBuilder_ == null) {
-        postgresqlColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1.PostgresqlColumn,
-                com.google.cloud.datastream.v1.PostgresqlColumn.Builder,
-                com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>(
+        postgresqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>(
                 postgresqlColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1118,9 +1006,9 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
       }
       return postgresqlColumnsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1130,12 +1018,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlTable)
   private static final com.google.cloud.datastream.v1.PostgresqlTable DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlTable();
   }
@@ -1144,27 +1032,27 @@ public static com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public PostgresqlTable parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public PostgresqlTable parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1179,4 +1067,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
similarity index 72%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
index fb3ec0685526..6511bf82a274 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface PostgresqlTableOrBuilder
-    extends
+public interface PostgresqlTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table = 1; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
    * Table name.
    * 
* * string table = 1; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); /** - * - * *
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -59,10 +36,9 @@ public interface PostgresqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  java.util.List getPostgresqlColumnsList();
+  java.util.List 
+      getPostgresqlColumnsList();
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -73,8 +49,6 @@ public interface PostgresqlTableOrBuilder
    */
   com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index);
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -85,8 +59,6 @@ public interface PostgresqlTableOrBuilder
    */
   int getPostgresqlColumnsCount();
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -95,11 +67,9 @@ public interface PostgresqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getPostgresqlColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -108,5 +78,6 @@ public interface PostgresqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
similarity index 64%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
index 064647101b3e..cd9b9f1681b7 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
- *
- *
  * 
  * The PrivateConnection resource is used to establish private connectivity
  * between Datastream and a customer's network.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection}
  */
-public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PrivateConnection extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PrivateConnection)
     PrivateConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PrivateConnection.newBuilder() to construct.
   private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PrivateConnection() {
     name_ = "";
     displayName_ = "";
@@ -46,54 +28,51 @@ private PrivateConnection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PrivateConnection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.PrivateConnection.class,
-            com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
+            com.google.cloud.datastream.v1.PrivateConnection.class, com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Private Connection state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.PrivateConnection.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -102,8 +81,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The private connection is in creation state - creating resources.
      * 
@@ -112,8 +89,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The private connection has been created with all of its resources.
      * 
@@ -122,8 +97,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(2), /** - * - * *
      * The private connection creation has failed.
      * 
@@ -132,8 +105,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(3), /** - * - * *
      * The private connection is being deleted.
      * 
@@ -142,8 +113,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ DELETING(4), /** - * - * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -155,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.
      * 
@@ -165,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The private connection is in creation state - creating resources.
      * 
@@ -175,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The private connection has been created with all of its resources.
      * 
@@ -185,8 +148,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 2; /** - * - * *
      * The private connection creation has failed.
      * 
@@ -195,8 +156,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; /** - * - * *
      * The private connection is being deleted.
      * 
@@ -205,8 +164,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; /** - * - * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -215,6 +172,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_TO_DELETE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -239,55 +197,52 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return CREATED; - case 3: - return FAILED; - case 4: - return DELETING; - case 5: - return FAILED_TO_DELETE; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return CREATED; + case 3: return FAILED; + case 4: return DELETING; + case 5: return FAILED_TO_DELETE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.PrivateConnection.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -305,18 +260,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -325,29 +276,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -358,15 +309,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -374,15 +321,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -390,14 +333,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -407,15 +347,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -423,15 +359,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -439,14 +371,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -454,34 +383,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -489,21 +416,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -515,8 +441,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -524,19 +448,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -544,11 +466,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -556,18 +478,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -576,29 +494,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -609,56 +527,38 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1.PrivateConnection.State result = - com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection.State getState() { + com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.Error error_; /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ @java.lang.Override @@ -666,15 +566,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ @java.lang.Override @@ -682,14 +579,12 @@ public com.google.cloud.datastream.v1.Error getError() { return error_ == null ? com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; } /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { @@ -699,14 +594,11 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { public static final int VPC_PEERING_CONFIG_FIELD_NUMBER = 100; private com.google.cloud.datastream.v1.VpcPeeringConfig vpcPeeringConfig_; /** - * - * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ @java.lang.Override @@ -714,25 +606,18 @@ public boolean hasVpcPeeringConfig() { return vpcPeeringConfig_ != null; } /** - * - * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } /** - * - * *
    * VPC Peering Config.
    * 
@@ -741,13 +626,10 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -759,7 +641,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -769,13 +652,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (error_ != null) { @@ -797,33 +683,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } if (vpcPeeringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getVpcPeeringConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getVpcPeeringConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -833,33 +723,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PrivateConnection)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PrivateConnection other = - (com.google.cloud.datastream.v1.PrivateConnection) obj; + com.google.cloud.datastream.v1.PrivateConnection other = (com.google.cloud.datastream.v1.PrivateConnection) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; if (hasVpcPeeringConfig()) { - if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; + if (!getVpcPeeringConfig() + .equals(other.getVpcPeeringConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -903,104 +799,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PrivateConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The PrivateConnection resource is used to establish private connectivity
    * between Datastream and a customer's network.
@@ -1008,52 +897,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PrivateConnection)
       com.google.cloud.datastream.v1.PrivateConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.PrivateConnection.class,
-              com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
+              com.google.cloud.datastream.v1.PrivateConnection.class, com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.PrivateConnection.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1086,9 +978,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
     }
 
     @java.lang.Override
@@ -1107,11 +999,8 @@ public com.google.cloud.datastream.v1.PrivateConnection build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.PrivateConnection buildPartial() {
-      com.google.cloud.datastream.v1.PrivateConnection result =
-          new com.google.cloud.datastream.v1.PrivateConnection(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1.PrivateConnection result = new com.google.cloud.datastream.v1.PrivateConnection(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1122,10 +1011,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1138,11 +1031,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.vpcPeeringConfig_ =
-            vpcPeeringConfigBuilder_ == null ? vpcPeeringConfig_ : vpcPeeringConfigBuilder_.build();
+        result.vpcPeeringConfig_ = vpcPeeringConfigBuilder_ == null
+            ? vpcPeeringConfig_
+            : vpcPeeringConfigBuilder_.build();
       }
     }
 
@@ -1150,39 +1046,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.PrivateConnection) {
-        return mergeFrom((com.google.cloud.datastream.v1.PrivateConnection) other);
+        return mergeFrom((com.google.cloud.datastream.v1.PrivateConnection)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1190,8 +1085,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnection other) {
-      if (other == com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1203,7 +1097,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnection other)
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1245,68 +1140,64 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 802:
-              {
-                input.readMessage(
-                    getVpcPeeringConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 802
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 802: {
+              input.readMessage(
+                  getVpcPeeringConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 802
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1316,25 +1207,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1343,21 +1231,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1365,35 +1252,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1403,21 +1283,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1427,58 +1303,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1494,17 +1351,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1515,21 +1369,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1542,15 +1392,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1563,15 +1409,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1579,48 +1421,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1628,58 +1458,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1695,17 +1506,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1716,21 +1524,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1743,15 +1547,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1764,15 +1564,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1780,66 +1576,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1848,13 +1634,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -1862,21 +1645,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -1888,8 +1670,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1897,19 +1677,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1917,95 +1695,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2014,21 +1788,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2036,35 +1809,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2074,21 +1840,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2098,33 +1860,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2135,37 +1886,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1.PrivateConnection.State result = - com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2179,16 +1917,11 @@ public Builder setState(com.google.cloud.datastream.v1.PrivateConnection.State v return this; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2200,37 +1933,26 @@ public Builder clearState() { private com.google.cloud.datastream.v1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> - errorBuilder_; + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorBuilder_; /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ public com.google.cloud.datastream.v1.Error getError() { @@ -2241,15 +1963,12 @@ public com.google.cloud.datastream.v1.Error getError() { } } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.cloud.datastream.v1.Error value) { if (errorBuilder_ == null) { @@ -2265,17 +1984,15 @@ public Builder setError(com.google.cloud.datastream.v1.Error value) { return this; } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder setError( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -2286,21 +2003,18 @@ public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForV return this; } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && error_ != null - && error_ != com.google.cloud.datastream.v1.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + error_ != null && + error_ != com.google.cloud.datastream.v1.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -2313,15 +2027,12 @@ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { return this; } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2334,15 +2045,12 @@ public Builder clearError() { return this; } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -2350,46 +2058,38 @@ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; + return error_ == null ? + com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; } } /** - * - * *
-     * Output only. In case of error, the details of the error in a user-friendly format.
+     * Output only. In case of error, the details of the error in a user-friendly
+     * format.
      * 
* - * - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder>( - getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -2397,47 +2097,34 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { private com.google.cloud.datastream.v1.VpcPeeringConfig vpcPeeringConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, - com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> - vpcPeeringConfigBuilder_; + com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> vpcPeeringConfigBuilder_; /** - * - * *
      * VPC Peering Config.
      * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ public boolean hasVpcPeeringConfig() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * VPC Peering Config.
      * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { if (vpcPeeringConfigBuilder_ == null) { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } else { return vpcPeeringConfigBuilder_.getMessage(); } } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2458,8 +2145,6 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConf return this; } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2478,8 +2163,6 @@ public Builder setVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2488,10 +2171,9 @@ public Builder setVpcPeeringConfig( */ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && vpcPeeringConfig_ != null - && vpcPeeringConfig_ - != com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + vpcPeeringConfig_ != null && + vpcPeeringConfig_ != com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) { getVpcPeeringConfigBuilder().mergeFrom(value); } else { vpcPeeringConfig_ = value; @@ -2504,8 +2186,6 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringCo return this; } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2523,8 +2203,6 @@ public Builder clearVpcPeeringConfig() { return this; } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2537,8 +2215,6 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig.Builder getVpcPeeringConf return getVpcPeeringConfigFieldBuilder().getBuilder(); } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2549,14 +2225,11 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon if (vpcPeeringConfigBuilder_ != null) { return vpcPeeringConfigBuilder_.getMessageOrBuilder(); } else { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? + com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } } /** - * - * *
      * VPC Peering Config.
      * 
@@ -2564,24 +2237,21 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, - com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> + com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> getVpcPeeringConfigFieldBuilder() { if (vpcPeeringConfigBuilder_ == null) { - vpcPeeringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, - com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder>( - getVpcPeeringConfig(), getParentForChildren(), isClean()); + vpcPeeringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder>( + getVpcPeeringConfig(), + getParentForChildren(), + isClean()); vpcPeeringConfig_ = null; } return vpcPeeringConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2591,12 +2261,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PrivateConnection) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PrivateConnection) private static final com.google.cloud.datastream.v1.PrivateConnection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PrivateConnection(); } @@ -2605,27 +2275,27 @@ public static com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2640,4 +2310,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index 224e89bfe1af..722a471dbf2d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PrivateConnectionOrBuilder - extends +public interface PrivateConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface PrivateConnectionOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,140 +121,108 @@ public interface PrivateConnectionOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.datastream.v1.PrivateConnection.State getState(); /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ com.google.cloud.datastream.v1.Error getError(); /** - * - * *
-   * Output only. In case of error, the details of the error in a user-friendly format.
+   * Output only. In case of error, the details of the error in a user-friendly
+   * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder(); /** - * - * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ boolean hasVpcPeeringConfig(); /** - * - * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig(); /** - * - * *
    * VPC Peering Config.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java index a3a252d4e6fb..e4339c098c29 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java @@ -1,88 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Private Connectivity
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PrivateConnectivity} */ -public final class PrivateConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PrivateConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PrivateConnectivity) PrivateConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PrivateConnectivity.newBuilder() to construct. private PrivateConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivateConnectivity() { privateConnection_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivateConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PrivateConnectivity.class, - com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1.PrivateConnectivity.class, com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); } public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object privateConnection_ = ""; /** - * - * *
    * Required. A reference to a private connection resource.
    * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
    * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The privateConnection. */ @java.lang.Override @@ -91,32 +66,30 @@ public java.lang.String getPrivateConnection() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnection_ = s; return s; } } /** - * - * *
    * Required. A reference to a private connection resource.
    * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
    * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for privateConnection. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateConnectionBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionBytes() { java.lang.Object ref = privateConnection_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnection_ = b; return b; } else { @@ -125,7 +98,6 @@ public com.google.protobuf.ByteString getPrivateConnectionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -137,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnection_); } @@ -161,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PrivateConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PrivateConnectivity other = - (com.google.cloud.datastream.v1.PrivateConnectivity) obj; + com.google.cloud.datastream.v1.PrivateConnectivity other = (com.google.cloud.datastream.v1.PrivateConnectivity) obj; - if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection() + .equals(other.getPrivateConnection())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -189,135 +162,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PrivateConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Private Connectivity
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PrivateConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PrivateConnectivity) com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PrivateConnectivity.class, - com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1.PrivateConnectivity.class, com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override @@ -348,11 +315,8 @@ public com.google.cloud.datastream.v1.PrivateConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectivity buildPartial() { - com.google.cloud.datastream.v1.PrivateConnectivity result = - new com.google.cloud.datastream.v1.PrivateConnectivity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.PrivateConnectivity result = new com.google.cloud.datastream.v1.PrivateConnectivity(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnectivity re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PrivateConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1.PrivateConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1.PrivateConnectivity)other); } else { super.mergeFrom(other); return this; @@ -408,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnectivity other) { - if (other == com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) return this; if (!other.getPrivateConnection().isEmpty()) { privateConnection_ = other.privateConnection_; bitField0_ |= 0x00000001; @@ -441,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - privateConnection_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + privateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -463,28 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object privateConnection_ = ""; /** - * - * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The privateConnection. */ public java.lang.String getPrivateConnection() { java.lang.Object ref = privateConnection_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnection_ = s; return s; @@ -493,24 +448,21 @@ public java.lang.String getPrivateConnection() { } } /** - * - * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for privateConnection. */ - public com.google.protobuf.ByteString getPrivateConnectionBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionBytes() { java.lang.Object ref = privateConnection_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnection_ = b; return b; } else { @@ -518,41 +470,30 @@ public com.google.protobuf.ByteString getPrivateConnectionBytes() { } } /** - * - * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The privateConnection to set. * @return This builder for chaining. */ - public Builder setPrivateConnection(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnection( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } privateConnection_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPrivateConnection() { @@ -562,33 +503,27 @@ public Builder clearPrivateConnection() { return this; } /** - * - * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for privateConnection to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateConnection_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -598,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PrivateConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PrivateConnectivity) private static final com.google.cloud.datastream.v1.PrivateConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PrivateConnectivity(); } @@ -612,27 +547,27 @@ public static com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -647,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java new file mode 100644 index 000000000000..7cf685c4d13e --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PrivateConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The privateConnection. + */ + java.lang.String getPrivateConnection(); + /** + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for privateConnection. + */ + com.google.protobuf.ByteString + getPrivateConnectionBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java index b68ebdaad30a..37e52effdb87 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * The route resource is the child of the private connection resource,
  * used for defining a route for a private connection.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.Route}
  */
-public final class Route extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Route extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Route)
     RouteOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Route() {
     name_ = "";
     displayName_ = "";
@@ -46,54 +28,50 @@ private Route() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Route();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_Route_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.Route.class,
-            com.google.cloud.datastream.v1.Route.Builder.class);
+            com.google.cloud.datastream.v1.Route.class, com.google.cloud.datastream.v1.Route.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -102,29 +80,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -135,15 +113,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -151,15 +125,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -167,14 +137,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,15 +151,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,15 +163,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -216,14 +175,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -231,34 +187,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -266,21 +220,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -292,8 +245,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -301,19 +252,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -321,11 +270,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -333,18 +282,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -353,29 +298,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -384,18 +329,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object destinationAddress_ = ""; /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ @java.lang.Override @@ -404,29 +345,29 @@ public java.lang.String getDestinationAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; } } /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationAddressBytes() { + public com.google.protobuf.ByteString + getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -437,14 +378,11 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_ = 0; /** - * - * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ @java.lang.Override @@ -453,7 +391,6 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,7 +402,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -475,8 +413,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -499,20 +441,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -521,7 +465,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, destinationPort_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -531,26 +476,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Route)) { return super.equals(obj); } com.google.cloud.datastream.v1.Route other = (com.google.cloud.datastream.v1.Route) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDestinationAddress().equals(other.getDestinationAddress())) return false; - if (getDestinationPort() != other.getDestinationPort()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDestinationAddress() + .equals(other.getDestinationAddress())) return false; + if (getDestinationPort() + != other.getDestinationPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -587,103 +539,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Route parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Route parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Route parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Route parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.datastream.v1.Route parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Route parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Route parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Route parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Route parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Route parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The route resource is the child of the private connection resource,
    * used for defining a route for a private connection.
@@ -691,52 +637,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.Route}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Route)
       com.google.cloud.datastream.v1.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.Route.class,
-              com.google.cloud.datastream.v1.Route.Builder.class);
+              com.google.cloud.datastream.v1.Route.class, com.google.cloud.datastream.v1.Route.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.Route.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -760,9 +709,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_Route_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
     }
 
     @java.lang.Override
@@ -782,9 +731,7 @@ public com.google.cloud.datastream.v1.Route build() {
     @java.lang.Override
     public com.google.cloud.datastream.v1.Route buildPartial() {
       com.google.cloud.datastream.v1.Route result = new com.google.cloud.datastream.v1.Route(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -795,10 +742,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.Route result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -819,39 +770,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.Route result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.Route) {
-        return mergeFrom((com.google.cloud.datastream.v1.Route) other);
+        return mergeFrom((com.google.cloud.datastream.v1.Route)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -871,7 +821,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Route other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -912,61 +863,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                destinationAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 56:
-              {
-                destinationPort_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              destinationAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 56: {
+              destinationPort_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -976,25 +921,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1003,21 +945,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1025,35 +966,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1063,21 +997,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1087,58 +1017,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1154,17 +1065,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1175,21 +1083,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1202,15 +1106,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1223,15 +1123,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1239,48 +1135,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1288,58 +1172,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1355,17 +1220,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1376,21 +1238,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1403,15 +1261,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1424,15 +1278,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1440,66 +1290,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1508,13 +1348,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -1522,21 +1359,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -1548,8 +1384,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1557,19 +1391,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1577,95 +1409,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1674,21 +1502,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1696,35 +1523,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1734,21 +1554,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1758,20 +1574,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationAddress_ = ""; /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ public java.lang.String getDestinationAddress() { java.lang.Object ref = destinationAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; @@ -1780,21 +1594,20 @@ public java.lang.String getDestinationAddress() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ - public com.google.protobuf.ByteString getDestinationAddressBytes() { + public com.google.protobuf.ByteString + getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -1802,35 +1615,28 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationAddress_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestinationAddress() { @@ -1840,21 +1646,17 @@ public Builder clearDestinationAddress() { return this; } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationAddress_ = value; bitField0_ |= 0x00000020; @@ -1862,16 +1664,13 @@ public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) return this; } - private int destinationPort_; + private int destinationPort_ ; /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ @java.lang.Override @@ -1879,33 +1678,27 @@ public int getDestinationPort() { return destinationPort_; } /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @return This builder for chaining. */ public Builder clearDestinationPort() { @@ -1914,9 +1707,9 @@ public Builder clearDestinationPort() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1926,12 +1719,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Route) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Route) private static final com.google.cloud.datastream.v1.Route DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Route(); } @@ -1940,27 +1733,27 @@ public static com.google.cloud.datastream.v1.Route getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1975,4 +1768,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java index 4fa669870cd2..27ffcfce6c3e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface RouteOrBuilder - extends +public interface RouteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Route) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface RouteOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,80 +121,66 @@ public interface RouteOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ java.lang.String getDestinationAddress(); /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ - com.google.protobuf.ByteString getDestinationAddressBytes(); + com.google.protobuf.ByteString + getDestinationAddressBytes(); /** - * - * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ int getDestinationPort(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index 72bf77beadb7..7c6adccc4fcc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -1,85 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * The configuration of the stream source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceConfig} */ -public final class SourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceConfig) SourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SourceConfig.newBuilder() to construct. private SourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceConfig() { sourceConnectionProfile_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceConfig.class, - com.google.cloud.datastream.v1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1.SourceConfig.class, com.google.cloud.datastream.v1.SourceConfig.Builder.class); } private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - public enum SourceStreamConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), POSTGRESQL_SOURCE_CONFIG(102), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; - private SourceStreamConfigCase(int value) { this.value = value; } @@ -95,44 +73,34 @@ public static SourceStreamConfigCase valueOf(int value) { public static SourceStreamConfigCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_SOURCE_CONFIG; - case 101: - return MYSQL_SOURCE_CONFIG; - case 102: - return POSTGRESQL_SOURCE_CONFIG; - case 0: - return SOURCESTREAMCONFIG_NOT_SET; - default: - return null; + case 100: return ORACLE_SOURCE_CONFIG; + case 101: return MYSQL_SOURCE_CONFIG; + case 102: return POSTGRESQL_SOURCE_CONFIG; + case 0: return SOURCESTREAMCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceStreamConfigCase getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); + public SourceStreamConfigCase + getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber( + sourceStreamConfigCase_); } public static final int SOURCE_CONNECTION_PROFILE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceConnectionProfile_ = ""; /** - * - * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceConnectionProfile. */ @java.lang.Override @@ -141,32 +109,30 @@ public java.lang.String getSourceConnectionProfile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfile_ = s; return s; } } /** - * - * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceConnectionProfile. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileBytes() { java.lang.Object ref = sourceConnectionProfile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfile_ = b; return b; } else { @@ -176,14 +142,11 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER = 100; /** - * - * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -191,26 +154,21 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } /** - * - * *
    * Oracle data source configuration.
    * 
@@ -218,24 +176,20 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER = 101; /** - * - * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -243,26 +197,21 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } /** - * - * *
    * MySQL data source configuration.
    * 
@@ -272,21 +221,18 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } public static final int POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER = 102; /** - * - * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * * @return Whether the postgresqlSourceConfig field is set. */ @java.lang.Override @@ -294,26 +240,21 @@ public boolean hasPostgresqlSourceConfig() { return sourceStreamConfigCase_ == 102; } /** - * - * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * * @return The postgresqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { if (sourceStreamConfigCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } /** - * - * *
    * PostgreSQL data source configuration.
    * 
@@ -321,16 +262,14 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSource * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder - getPostgresqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,21 +281,19 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceConnectionProfile_); } if (sourceStreamConfigCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } getUnknownFields().writeTo(output); } @@ -371,19 +308,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfile_); } if (sourceStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -393,25 +327,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.SourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceConfig other = - (com.google.cloud.datastream.v1.SourceConfig) obj; + com.google.cloud.datastream.v1.SourceConfig other = (com.google.cloud.datastream.v1.SourceConfig) obj; - if (!getSourceConnectionProfile().equals(other.getSourceConnectionProfile())) return false; + if (!getSourceConnectionProfile() + .equals(other.getSourceConnectionProfile())) return false; if (!getSourceStreamConfigCase().equals(other.getSourceStreamConfigCase())) return false; switch (sourceStreamConfigCase_) { case 100: - if (!getOracleSourceConfig().equals(other.getOracleSourceConfig())) return false; + if (!getOracleSourceConfig() + .equals(other.getOracleSourceConfig())) return false; break; case 101: - if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; + if (!getMysqlSourceConfig() + .equals(other.getMysqlSourceConfig())) return false; break; case 102: - if (!getPostgresqlSourceConfig().equals(other.getPostgresqlSourceConfig())) return false; + if (!getPostgresqlSourceConfig() + .equals(other.getPostgresqlSourceConfig())) return false; break; case 0: default: @@ -450,136 +387,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.SourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the stream source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceConfig) com.google.cloud.datastream.v1.SourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceConfig.class, - com.google.cloud.datastream.v1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1.SourceConfig.class, com.google.cloud.datastream.v1.SourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.SourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -600,9 +531,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override @@ -621,11 +552,8 @@ public com.google.cloud.datastream.v1.SourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.SourceConfig buildPartial() { - com.google.cloud.datastream.v1.SourceConfig result = - new com.google.cloud.datastream.v1.SourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.SourceConfig result = new com.google.cloud.datastream.v1.SourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -641,13 +569,16 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceConfig result) { private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig result) { result.sourceStreamConfigCase_ = sourceStreamConfigCase_; result.sourceStreamConfig_ = this.sourceStreamConfig_; - if (sourceStreamConfigCase_ == 100 && oracleSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 100 && + oracleSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = oracleSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 101 && mysqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 101 && + mysqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 102 && postgresqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 102 && + postgresqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = postgresqlSourceConfigBuilder_.build(); } } @@ -656,39 +587,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.SourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.SourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1.SourceConfig)other); } else { super.mergeFrom(other); return this; @@ -703,25 +633,21 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { onChanged(); } switch (other.getSourceStreamConfigCase()) { - case ORACLE_SOURCE_CONFIG: - { - mergeOracleSourceConfig(other.getOracleSourceConfig()); - break; - } - case MYSQL_SOURCE_CONFIG: - { - mergeMysqlSourceConfig(other.getMysqlSourceConfig()); - break; - } - case POSTGRESQL_SOURCE_CONFIG: - { - mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); - break; - } - case SOURCESTREAMCONFIG_NOT_SET: - { - break; - } + case ORACLE_SOURCE_CONFIG: { + mergeOracleSourceConfig(other.getOracleSourceConfig()); + break; + } + case MYSQL_SOURCE_CONFIG: { + mergeMysqlSourceConfig(other.getMysqlSourceConfig()); + break; + } + case POSTGRESQL_SOURCE_CONFIG: { + mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); + break; + } + case SOURCESTREAMCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -749,40 +675,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceConnectionProfile_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: - { - input.readMessage( - getOracleSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - sourceStreamConfigCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage( - getMysqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - sourceStreamConfigCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage( - getPostgresqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - sourceStreamConfigCase_ = 102; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceConnectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: { + input.readMessage( + getOracleSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getPostgresqlSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 102; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -792,12 +716,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - - public SourceStreamConfigCase getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); + public SourceStreamConfigCase + getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber( + sourceStreamConfigCase_); } public Builder clearSourceStreamConfig() { @@ -811,23 +735,19 @@ public Builder clearSourceStreamConfig() { private java.lang.Object sourceConnectionProfile_ = ""; /** - * - * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceConnectionProfile. */ public java.lang.String getSourceConnectionProfile() { java.lang.Object ref = sourceConnectionProfile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfile_ = s; return s; @@ -836,24 +756,21 @@ public java.lang.String getSourceConnectionProfile() { } } /** - * - * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceConnectionProfile. */ - public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileBytes() { java.lang.Object ref = sourceConnectionProfile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfile_ = b; return b; } else { @@ -861,41 +778,30 @@ public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { } } /** - * - * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The sourceConnectionProfile to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfile(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceConnectionProfile( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceConnectionProfile_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearSourceConnectionProfile() { @@ -905,24 +811,18 @@ public Builder clearSourceConnectionProfile() { return this; } /** - * - * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for sourceConnectionProfile to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceConnectionProfileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceConnectionProfile_ = value; bitField0_ |= 0x00000001; @@ -931,19 +831,13 @@ public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString va } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> - oracleSourceConfigBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> oracleSourceConfigBuilder_; /** - * - * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -951,14 +845,11 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override @@ -976,8 +867,6 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() } } /** - * - * *
      * Oracle data source configuration.
      * 
@@ -998,8 +887,6 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource return this; } /** - * - * *
      * Oracle data source configuration.
      * 
@@ -1018,25 +905,18 @@ public Builder setOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ - public Builder mergeOracleSourceConfig( - com.google.cloud.datastream.v1.OracleSourceConfig value) { + public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 100 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder( - (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 100 && + sourceStreamConfig_ != com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1052,8 +932,6 @@ public Builder mergeOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration.
      * 
@@ -1077,21 +955,16 @@ public Builder clearOracleSourceConfig() { return this; } /** - * - * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ - public com.google.cloud.datastream.v1.OracleSourceConfig.Builder - getOracleSourceConfigBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { return getOracleSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle data source configuration.
      * 
@@ -1099,8 +972,7 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { return oracleSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1111,8 +983,6 @@ public Builder clearOracleSourceConfig() { } } /** - * - * *
      * Oracle data source configuration.
      * 
@@ -1120,20 +990,14 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> getOracleSourceConfigFieldBuilder() { if (oracleSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 100)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } - oracleSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, - com.google.cloud.datastream.v1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder>( + oracleSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1145,19 +1009,13 @@ public Builder clearOracleSourceConfig() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> - mysqlSourceConfigBuilder_; + com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> mysqlSourceConfigBuilder_; /** - * - * *
      * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -1165,14 +1023,11 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
      * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override @@ -1190,8 +1045,6 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { } } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1212,8 +1065,6 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo return this; } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1232,8 +1083,6 @@ public Builder setMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1242,14 +1091,10 @@ public Builder setMysqlSourceConfig( */ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 101 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder( - (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 101 && + sourceStreamConfig_ != com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1265,8 +1110,6 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource return this; } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1290,8 +1133,6 @@ public Builder clearMysqlSourceConfig() { return this; } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1302,8 +1143,6 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1311,8 +1150,7 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder - getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { return mysqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1323,8 +1161,6 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo } } /** - * - * *
      * MySQL data source configuration.
      * 
@@ -1332,20 +1168,14 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> getMysqlSourceConfigFieldBuilder() { if (mysqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 101)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } - mysqlSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder>( + mysqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1357,20 +1187,13 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, - com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> - postgresqlSourceConfigBuilder_; + com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> postgresqlSourceConfigBuilder_; /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; * @return Whether the postgresqlSourceConfig field is set. */ @java.lang.Override @@ -1378,15 +1201,11 @@ public boolean hasPostgresqlSourceConfig() { return sourceStreamConfigCase_ == 102; } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; * @return The postgresqlSourceConfig. */ @java.lang.Override @@ -1404,17 +1223,13 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSource } } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ - public Builder setPostgresqlSourceConfig( - com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + public Builder setPostgresqlSourceConfig(com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { if (postgresqlSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1428,14 +1243,11 @@ public Builder setPostgresqlSourceConfig( return this; } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ public Builder setPostgresqlSourceConfig( com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder builderForValue) { @@ -1449,26 +1261,18 @@ public Builder setPostgresqlSourceConfig( return this; } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ - public Builder mergePostgresqlSourceConfig( - com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + public Builder mergePostgresqlSourceConfig(com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { if (postgresqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 102 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder( - (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 102 && + sourceStreamConfig_ != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1484,14 +1288,11 @@ public Builder mergePostgresqlSourceConfig( return this; } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ public Builder clearPostgresqlSourceConfig() { if (postgresqlSourceConfigBuilder_ == null) { @@ -1510,32 +1311,24 @@ public Builder clearPostgresqlSourceConfig() { return this; } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ - public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder - getPostgresqlSourceConfigBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder getPostgresqlSourceConfigBuilder() { return getPostgresqlSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder - getPostgresqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 102) && (postgresqlSourceConfigBuilder_ != null)) { return postgresqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1546,30 +1339,21 @@ public Builder clearPostgresqlSourceConfig() { } } /** - * - * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, - com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> getPostgresqlSourceConfigFieldBuilder() { if (postgresqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 102)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } - postgresqlSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, - com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( + postgresqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1579,9 +1363,9 @@ public Builder clearPostgresqlSourceConfig() { onChanged(); return postgresqlSourceConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1591,12 +1375,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceConfig) private static final com.google.cloud.datastream.v1.SourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceConfig(); } @@ -1605,27 +1389,27 @@ public static com.google.cloud.datastream.v1.SourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1640,4 +1424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index bf914fd298dd..23688e593279 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface SourceConfigOrBuilder - extends +public interface SourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The sourceConnectionProfile. */ java.lang.String getSourceConnectionProfile(); /** - * - * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for sourceConnectionProfile. */ - com.google.protobuf.ByteString getSourceConnectionProfileBytes(); + com.google.protobuf.ByteString + getSourceConnectionProfileBytes(); /** - * - * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ boolean hasOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration.
    * 
@@ -90,32 +57,24 @@ public interface SourceConfigOrBuilder com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder(); /** - * - * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ boolean hasMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration.
    * 
@@ -125,41 +84,31 @@ public interface SourceConfigOrBuilder com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); /** - * - * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * * @return Whether the postgresqlSourceConfig field is set. */ boolean hasPostgresqlSourceConfig(); /** - * - * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; - * * @return The postgresqlSourceConfig. */ com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig(); /** - * - * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ - com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder - getPostgresqlSourceConfigOrBuilder(); + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder(); - public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase - getSourceStreamConfigCase(); + public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java similarity index 59% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index cbafe1a9285c..a3dc4c7cc0b6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -1,144 +1,112 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Represents an identifier of an object in the data source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier} */ -public final class SourceObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SourceObjectIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier) SourceObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SourceObjectIdentifier.newBuilder() to construct. private SourceObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SourceObjectIdentifier() {} + private SourceObjectIdentifier() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); } - public interface OracleObjectIdentifierOrBuilder - extends + public interface OracleObjectIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); } /** - * - * *
    * Oracle data source object identifier.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} */ - public static final class OracleObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class OracleObjectIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) OracleObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleObjectIdentifier.newBuilder() to construct. private OracleObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleObjectIdentifier() { schema_ = ""; table_ = ""; @@ -146,44 +114,38 @@ private OracleObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -192,29 +154,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -223,18 +185,14 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int TABLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -243,29 +201,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -274,7 +232,6 @@ public com.google.protobuf.ByteString getTableBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -286,7 +243,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -316,18 +274,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)) { + if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other = - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) obj; - if (!getSchema().equals(other.getSchema())) return false; - if (!getTable().equals(other.getTable())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,101 +305,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -452,44 +396,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} + * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -500,22 +439,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = - buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -523,19 +459,14 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result) { + private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -549,55 +480,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { - return mergeFrom( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); + if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { - if (other - == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -634,25 +556,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -662,25 +581,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -689,21 +605,20 @@ public java.lang.String getSchema() { } } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -711,35 +626,28 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -749,21 +657,17 @@ public Builder clearSchema() { return this; } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -773,20 +677,18 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -795,21 +697,20 @@ public java.lang.String getTable() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -817,35 +718,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -855,28 +749,23 @@ public Builder clearTable() { return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -889,46 +778,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier - .OracleObjectIdentifier - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -940,88 +824,72 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface PostgresqlObjectIdentifierOrBuilder - extends + public interface PostgresqlObjectIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ java.lang.String getSchema(); /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ - com.google.protobuf.ByteString getSchemaBytes(); + com.google.protobuf.ByteString + getSchemaBytes(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); } /** - * - * *
    * PostgreSQL data source object identifier.
    * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} */ - public static final class PostgresqlObjectIdentifier - extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class PostgresqlObjectIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) PostgresqlObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlObjectIdentifier.newBuilder() to construct. private PostgresqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PostgresqlObjectIdentifier() { schema_ = ""; table_ = ""; @@ -1029,45 +897,38 @@ private PostgresqlObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PostgresqlObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ @java.lang.Override @@ -1076,29 +937,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** - * - * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -1107,18 +968,14 @@ public com.google.protobuf.ByteString getSchemaBytes() { } public static final int TABLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -1127,29 +984,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -1158,7 +1015,6 @@ public com.google.protobuf.ByteString getTableBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1170,7 +1026,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -1200,18 +1057,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { + if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; - if (!getSchema().equals(other.getSchema())) return false; - if (!getTable().equals(other.getTable())) return false; + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1232,102 +1088,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1337,45 +1179,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * Protobuf type {@code - * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1386,23 +1222,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = - buildPartial(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1410,20 +1242,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result) { + private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -1437,56 +1263,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { - return mergeFrom( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - other); + if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { + return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { - if (other - == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -1523,25 +1339,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1551,25 +1364,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schema_ = ""; /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -1578,21 +1388,20 @@ public java.lang.String getSchema() { } } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for schema. */ - public com.google.protobuf.ByteString getSchemaBytes() { + public com.google.protobuf.ByteString + getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schema_ = b; return b; } else { @@ -1600,35 +1409,28 @@ public com.google.protobuf.ByteString getSchemaBytes() { } } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchema( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSchema() { @@ -1638,21 +1440,17 @@ public Builder clearSchema() { return this; } /** - * - * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -1662,20 +1460,18 @@ public Builder setSchemaBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -1684,21 +1480,20 @@ public java.lang.String getTable() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -1706,35 +1501,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -1744,28 +1532,23 @@ public Builder clearTable() { return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1778,46 +1561,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier - .PostgresqlObjectIdentifier - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1829,86 +1607,72 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface MysqlObjectIdentifierOrBuilder - extends + public interface MysqlObjectIdentifierOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ java.lang.String getDatabase(); /** - * - * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ - com.google.protobuf.ByteString getDatabaseBytes(); + com.google.protobuf.ByteString + getDatabaseBytes(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ java.lang.String getTable(); /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - com.google.protobuf.ByteString getTableBytes(); + com.google.protobuf.ByteString + getTableBytes(); } /** - * - * *
    * Mysql data source object identifier.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier} */ - public static final class MysqlObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class MysqlObjectIdentifier extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) MysqlObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlObjectIdentifier.newBuilder() to construct. private MysqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlObjectIdentifier() { database_ = ""; table_ = ""; @@ -1916,44 +1680,38 @@ private MysqlObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** - * - * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ @java.lang.Override @@ -1962,29 +1720,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** - * - * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -1993,18 +1751,14 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } public static final int TABLE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ @java.lang.Override @@ -2013,29 +1767,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** - * - * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -2044,7 +1798,6 @@ public com.google.protobuf.ByteString getTableBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2056,7 +1809,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -2086,17 +1840,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj - instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)) { + if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other = - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) obj; - if (!getDatabase().equals(other.getDatabase())) return false; - if (!getTable().equals(other.getTable())) return false; + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getTable() + .equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2117,101 +1871,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2221,43 +1962,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Mysql data source object identifier.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder - .class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2268,22 +2005,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = - buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2291,19 +2025,14 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifi } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result) { + private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -2317,55 +2046,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) { - return mergeFrom( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) other); + if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) { + return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other) { - if (other - == com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other) { + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -2402,25 +2122,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2430,25 +2147,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object database_ = ""; /** - * - * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -2457,21 +2171,20 @@ public java.lang.String getDatabase() { } } /** - * - * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for database. */ - public com.google.protobuf.ByteString getDatabaseBytes() { + public com.google.protobuf.ByteString + getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); database_ = b; return b; } else { @@ -2479,35 +2192,28 @@ public com.google.protobuf.ByteString getDatabaseBytes() { } } /** - * - * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabase( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -2517,21 +2223,17 @@ public Builder clearDatabase() { return this; } /** - * - * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -2541,20 +2243,18 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { private java.lang.Object table_ = ""; /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -2563,21 +2263,20 @@ public java.lang.String getTable() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for table. */ - public com.google.protobuf.ByteString getTableBytes() { + public com.google.protobuf.ByteString + getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); table_ = b; return b; } else { @@ -2585,35 +2284,28 @@ public com.google.protobuf.ByteString getTableBytes() { } } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearTable() { @@ -2623,28 +2315,23 @@ public Builder clearTable() { return this; } /** - * - * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2657,45 +2344,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(); + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2707,25 +2390,22 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int sourceIdentifierCase_ = 0; private java.lang.Object sourceIdentifier_; - public enum SourceIdentifierCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_IDENTIFIER(1), MYSQL_IDENTIFIER(2), POSTGRESQL_IDENTIFIER(3), SOURCEIDENTIFIER_NOT_SET(0); private final int value; - private SourceIdentifierCase(int value) { this.value = value; } @@ -2741,40 +2421,31 @@ public static SourceIdentifierCase valueOf(int value) { public static SourceIdentifierCase forNumber(int value) { switch (value) { - case 1: - return ORACLE_IDENTIFIER; - case 2: - return MYSQL_IDENTIFIER; - case 3: - return POSTGRESQL_IDENTIFIER; - case 0: - return SOURCEIDENTIFIER_NOT_SET; - default: - return null; + case 1: return ORACLE_IDENTIFIER; + case 2: return MYSQL_IDENTIFIER; + case 3: return POSTGRESQL_IDENTIFIER; + case 0: return SOURCEIDENTIFIER_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceIdentifierCase getSourceIdentifierCase() { - return SourceIdentifierCase.forNumber(sourceIdentifierCase_); + public SourceIdentifierCase + getSourceIdentifierCase() { + return SourceIdentifierCase.forNumber( + sourceIdentifierCase_); } public static final int ORACLE_IDENTIFIER_FIELD_NUMBER = 1; /** - * - * *
    * Oracle data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; * @return Whether the oracleIdentifier field is set. */ @java.lang.Override @@ -2782,62 +2453,42 @@ public boolean hasOracleIdentifier() { return sourceIdentifierCase_ == 1; } /** - * - * *
    * Oracle data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; * @return The oracleIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getOracleIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier() { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } /** - * - * *
    * Oracle data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder - getOracleIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder() { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } public static final int MYSQL_IDENTIFIER_FIELD_NUMBER = 2; /** - * - * *
    * Mysql data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; * @return Whether the mysqlIdentifier field is set. */ @java.lang.Override @@ -2845,62 +2496,42 @@ public boolean hasMysqlIdentifier() { return sourceIdentifierCase_ == 2; } /** - * - * *
    * Mysql data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; * @return The mysqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - getMysqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier() { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } /** - * - * *
    * Mysql data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder - getMysqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder() { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } public static final int POSTGRESQL_IDENTIFIER_FIELD_NUMBER = 3; /** - * - * *
    * PostgreSQL data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; * @return Whether the postgresqlIdentifier field is set. */ @java.lang.Override @@ -2908,52 +2539,36 @@ public boolean hasPostgresqlIdentifier() { return sourceIdentifierCase_ == 3; } /** - * - * *
    * PostgreSQL data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; * @return The postgresqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getPostgresqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier() { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } /** - * - * *
    * PostgreSQL data source object identifier.
    * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder - getPostgresqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder() { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2965,24 +2580,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (sourceIdentifierCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_); + output.writeMessage(1, (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_); } if (sourceIdentifierCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_); + output.writeMessage(2, (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } if (sourceIdentifierCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_); + output.writeMessage(3, (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); } getUnknownFields().writeTo(output); } @@ -2994,25 +2601,16 @@ public int getSerializedSize() { size = 0; if (sourceIdentifierCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_); } if (sourceIdentifierCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); } if (sourceIdentifierCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3022,24 +2620,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier other = - (com.google.cloud.datastream.v1.SourceObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier) obj; if (!getSourceIdentifierCase().equals(other.getSourceIdentifierCase())) return false; switch (sourceIdentifierCase_) { case 1: - if (!getOracleIdentifier().equals(other.getOracleIdentifier())) return false; + if (!getOracleIdentifier() + .equals(other.getOracleIdentifier())) return false; break; case 2: - if (!getMysqlIdentifier().equals(other.getMysqlIdentifier())) return false; + if (!getMysqlIdentifier() + .equals(other.getMysqlIdentifier())) return false; break; case 3: - if (!getPostgresqlIdentifier().equals(other.getPostgresqlIdentifier())) return false; + if (!getPostgresqlIdentifier() + .equals(other.getPostgresqlIdentifier())) return false; break; case 0: default: @@ -3077,136 +2677,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.SourceObjectIdentifier prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents an identifier of an object in the data source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.class, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); } // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3226,9 +2819,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override @@ -3247,11 +2840,8 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier build() { @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier result = - new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.SourceObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -3264,13 +2854,16 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdentifier result) { result.sourceIdentifierCase_ = sourceIdentifierCase_; result.sourceIdentifier_ = this.sourceIdentifier_; - if (sourceIdentifierCase_ == 1 && oracleIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 1 && + oracleIdentifierBuilder_ != null) { result.sourceIdentifier_ = oracleIdentifierBuilder_.build(); } - if (sourceIdentifierCase_ == 2 && mysqlIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 2 && + mysqlIdentifierBuilder_ != null) { result.sourceIdentifier_ = mysqlIdentifierBuilder_.build(); } - if (sourceIdentifierCase_ == 3 && postgresqlIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 3 && + postgresqlIdentifierBuilder_ != null) { result.sourceIdentifier_ = postgresqlIdentifierBuilder_.build(); } } @@ -3279,39 +2872,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdent public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier) { - return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier) other); + return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier)other); } else { super.mergeFrom(other); return this; @@ -3319,28 +2911,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) return this; switch (other.getSourceIdentifierCase()) { - case ORACLE_IDENTIFIER: - { - mergeOracleIdentifier(other.getOracleIdentifier()); - break; - } - case MYSQL_IDENTIFIER: - { - mergeMysqlIdentifier(other.getMysqlIdentifier()); - break; - } - case POSTGRESQL_IDENTIFIER: - { - mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); - break; - } - case SOURCEIDENTIFIER_NOT_SET: - { - break; - } + case ORACLE_IDENTIFIER: { + mergeOracleIdentifier(other.getOracleIdentifier()); + break; + } + case MYSQL_IDENTIFIER: { + mergeMysqlIdentifier(other.getMysqlIdentifier()); + break; + } + case POSTGRESQL_IDENTIFIER: { + mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); + break; + } + case SOURCEIDENTIFIER_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3368,33 +2955,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage( - getOracleIdentifierFieldBuilder().getBuilder(), extensionRegistry); - sourceIdentifierCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getMysqlIdentifierFieldBuilder().getBuilder(), extensionRegistry); - sourceIdentifierCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - getPostgresqlIdentifierFieldBuilder().getBuilder(), extensionRegistry); - sourceIdentifierCase_ = 3; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getOracleIdentifierFieldBuilder().getBuilder(), + extensionRegistry); + sourceIdentifierCase_ = 1; + break; + } // case 10 + case 18: { + input.readMessage( + getMysqlIdentifierFieldBuilder().getBuilder(), + extensionRegistry); + sourceIdentifierCase_ = 2; + break; + } // case 18 + case 26: { + input.readMessage( + getPostgresqlIdentifierFieldBuilder().getBuilder(), + extensionRegistry); + sourceIdentifierCase_ = 3; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3404,12 +2991,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceIdentifierCase_ = 0; private java.lang.Object sourceIdentifier_; - - public SourceIdentifierCase getSourceIdentifierCase() { - return SourceIdentifierCase.forNumber(sourceIdentifierCase_); + public SourceIdentifierCase + getSourceIdentifierCase() { + return SourceIdentifierCase.forNumber( + sourceIdentifierCase_); } public Builder clearSourceIdentifier() { @@ -3422,21 +3009,13 @@ public Builder clearSourceIdentifier() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> - oracleIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> oracleIdentifierBuilder_; /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; * @return Whether the oracleIdentifier field is set. */ @java.lang.Override @@ -3444,49 +3023,35 @@ public boolean hasOracleIdentifier() { return sourceIdentifierCase_ == 1; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; * @return The oracleIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - getOracleIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier() { if (oracleIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } else { if (sourceIdentifierCase_ == 1) { return oracleIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ - public Builder setOracleIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { + public Builder setOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { if (oracleIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3500,19 +3065,14 @@ public Builder setOracleIdentifier( return this; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ public Builder setOracleIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder builderForValue) { if (oracleIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -3523,30 +3083,18 @@ public Builder setOracleIdentifier( return this; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ - public Builder mergeOracleIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { + public Builder mergeOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { if (oracleIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 1 - && sourceIdentifier_ - != com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance()) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .newBuilder( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_) - .mergeFrom(value) - .buildPartial(); + if (sourceIdentifierCase_ == 1 && + sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance()) { + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_) + .mergeFrom(value).buildPartial(); } else { sourceIdentifier_ = value; } @@ -3562,15 +3110,11 @@ public Builder mergeOracleIdentifier( return this; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ public Builder clearOracleIdentifier() { if (oracleIdentifierBuilder_ == null) { @@ -3589,76 +3133,50 @@ public Builder clearOracleIdentifier() { return this; } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder - getOracleIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder getOracleIdentifierBuilder() { return getOracleIdentifierFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder - getOracleIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 1) && (oracleIdentifierBuilder_ != null)) { return oracleIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * Oracle data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> getOracleIdentifierFieldBuilder() { if (oracleIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 1)) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .getDefaultInstance(); + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); } - oracleIdentifierBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier - .Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier - .OracleObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - sourceIdentifier_, + oracleIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -3669,21 +3187,13 @@ public Builder clearOracleIdentifier() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> - mysqlIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> mysqlIdentifierBuilder_; /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; * @return Whether the mysqlIdentifier field is set. */ @java.lang.Override @@ -3691,49 +3201,35 @@ public boolean hasMysqlIdentifier() { return sourceIdentifierCase_ == 2; } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; * @return The mysqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - getMysqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier() { if (mysqlIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } else { if (sourceIdentifierCase_ == 2) { return mysqlIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ - public Builder setMysqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { + public Builder setMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { if (mysqlIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3747,19 +3243,14 @@ public Builder setMysqlIdentifier( return this; } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ public Builder setMysqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder - builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder builderForValue) { if (mysqlIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -3770,30 +3261,18 @@ public Builder setMysqlIdentifier( return this; } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ - public Builder mergeMysqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { + public Builder mergeMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { if (mysqlIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 2 - && sourceIdentifier_ - != com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance()) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .newBuilder( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_) - .mergeFrom(value) - .buildPartial(); + if (sourceIdentifierCase_ == 2 && + sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance()) { + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_) + .mergeFrom(value).buildPartial(); } else { sourceIdentifier_ = value; } @@ -3809,15 +3288,11 @@ public Builder mergeMysqlIdentifier( return this; } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ public Builder clearMysqlIdentifier() { if (mysqlIdentifierBuilder_ == null) { @@ -3836,75 +3311,50 @@ public Builder clearMysqlIdentifier() { return this; } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder - getMysqlIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder getMysqlIdentifierBuilder() { return getMysqlIdentifierFieldBuilder().getBuilder(); } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder - getMysqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 2) && (mysqlIdentifierBuilder_ != null)) { return mysqlIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * Mysql data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> getMysqlIdentifierFieldBuilder() { if (mysqlIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 2)) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier - .getDefaultInstance(); + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); } - mysqlIdentifierBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier - .MysqlObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - sourceIdentifier_, + mysqlIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -3915,23 +3365,13 @@ public Builder clearMysqlIdentifier() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier - .PostgresqlObjectIdentifierOrBuilder> - postgresqlIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder> postgresqlIdentifierBuilder_; /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; * @return Whether the postgresqlIdentifier field is set. */ @java.lang.Override @@ -3939,49 +3379,35 @@ public boolean hasPostgresqlIdentifier() { return sourceIdentifierCase_ == 3; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; * @return The postgresqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - getPostgresqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier() { if (postgresqlIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } else { if (sourceIdentifierCase_ == 3) { return postgresqlIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ - public Builder setPostgresqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + public Builder setPostgresqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { if (postgresqlIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3995,19 +3421,14 @@ public Builder setPostgresqlIdentifier( return this; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ public Builder setPostgresqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder - builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder builderForValue) { if (postgresqlIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -4018,31 +3439,18 @@ public Builder setPostgresqlIdentifier( return this; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ - public Builder mergePostgresqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + public Builder mergePostgresqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { if (postgresqlIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 3 - && sourceIdentifier_ - != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance()) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .newBuilder( - (com.google.cloud.datastream.v1.SourceObjectIdentifier - .PostgresqlObjectIdentifier) - sourceIdentifier_) - .mergeFrom(value) - .buildPartial(); + if (sourceIdentifierCase_ == 3 && + sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance()) { + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_) + .mergeFrom(value).buildPartial(); } else { sourceIdentifier_ = value; } @@ -4058,15 +3466,11 @@ public Builder mergePostgresqlIdentifier( return this; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ public Builder clearPostgresqlIdentifier() { if (postgresqlIdentifierBuilder_ == null) { @@ -4085,78 +3489,50 @@ public Builder clearPostgresqlIdentifier() { return this; } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder - getPostgresqlIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder getPostgresqlIdentifierBuilder() { return getPostgresqlIdentifierFieldBuilder().getBuilder(); } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder - getPostgresqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 3) && (postgresqlIdentifierBuilder_ != null)) { return postgresqlIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } } /** - * - * *
      * PostgreSQL data source object identifier.
      * 
* - * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier - .PostgresqlObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder> getPostgresqlIdentifierFieldBuilder() { if (postgresqlIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 3)) { - sourceIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .getDefaultInstance(); + sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); } - postgresqlIdentifierBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier - .Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifier - .PostgresqlObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - sourceIdentifier_, + postgresqlIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -4165,9 +3541,9 @@ public Builder clearPostgresqlIdentifier() { onChanged(); return postgresqlIdentifierBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4177,12 +3553,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier) private static final com.google.cloud.datastream.v1.SourceObjectIdentifier DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier(); } @@ -4191,27 +3567,27 @@ public static com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4226,4 +3602,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java new file mode 100644 index 000000000000..4c3568f72168 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -0,0 +1,92 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface SourceObjectIdentifierOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Oracle data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * @return Whether the oracleIdentifier field is set. + */ + boolean hasOracleIdentifier(); + /** + *
+   * Oracle data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * @return The oracleIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier(); + /** + *
+   * Oracle data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder(); + + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return Whether the mysqlIdentifier field is set. + */ + boolean hasMysqlIdentifier(); + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return The mysqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier(); + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder(); + + /** + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * @return Whether the postgresqlIdentifier field is set. + */ + boolean hasPostgresqlIdentifier(); + /** + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * @return The postgresqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier(); + /** + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder(); + + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java index 7b48d2e913d8..99cee1f32ab1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java @@ -1,87 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for manually initiating a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobRequest} */ -public final class StartBackfillJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartBackfillJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobRequest) StartBackfillJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartBackfillJobRequest.newBuilder() to construct. private StartBackfillJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartBackfillJobRequest() { object_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartBackfillJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobRequest.class, - com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobRequest.class, com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** - * - * *
-   * Required. The name of the stream object resource to start a backfill job for.
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
    * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The object. */ @java.lang.Override @@ -90,31 +66,30 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
-   * Required. The name of the stream object resource to start a backfill job for.
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
    * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -123,7 +98,6 @@ public com.google.protobuf.ByteString getObjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +109,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, object_); } @@ -159,15 +134,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StartBackfillJobRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StartBackfillJobRequest other = - (com.google.cloud.datastream.v1.StartBackfillJobRequest) obj; + com.google.cloud.datastream.v1.StartBackfillJobRequest other = (com.google.cloud.datastream.v1.StartBackfillJobRequest) obj; - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,136 +162,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.StartBackfillJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.StartBackfillJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for manually initiating a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StartBackfillJobRequest) com.google.cloud.datastream.v1.StartBackfillJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobRequest.class, - com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobRequest.class, com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.StartBackfillJobRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -326,9 +294,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override @@ -347,11 +315,8 @@ public com.google.cloud.datastream.v1.StartBackfillJobRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.StartBackfillJobRequest buildPartial() { - com.google.cloud.datastream.v1.StartBackfillJobRequest result = - new com.google.cloud.datastream.v1.StartBackfillJobRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.StartBackfillJobRequest result = new com.google.cloud.datastream.v1.StartBackfillJobRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -367,39 +332,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StartBackfillJobRequest) { - return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobRequest)other); } else { super.mergeFrom(other); return this; @@ -407,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobRequest other) { - if (other == com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance()) return this; if (!other.getObject().isEmpty()) { object_ = other.object_; bitField0_ |= 0x00000001; @@ -440,19 +403,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,27 +423,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object object_ = ""; /** - * - * *
-     * Required. The name of the stream object resource to start a backfill job for.
+     * Required. The name of the stream object resource to start a backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -491,23 +448,21 @@ public java.lang.String getObject() { } } /** - * - * *
-     * Required. The name of the stream object resource to start a backfill job for.
+     * Required. The name of the stream object resource to start a backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -515,39 +470,30 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
-     * Required. The name of the stream object resource to start a backfill job for.
+     * Required. The name of the stream object resource to start a backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The name of the stream object resource to start a backfill job for.
+     * Required. The name of the stream object resource to start a backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearObject() { @@ -557,32 +503,27 @@ public Builder clearObject() { return this; } /** - * - * *
-     * Required. The name of the stream object resource to start a backfill job for.
+     * Required. The name of the stream object resource to start a backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +533,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StartBackfillJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StartBackfillJobRequest) private static final com.google.cloud.datastream.v1.StartBackfillJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StartBackfillJobRequest(); } @@ -606,27 +547,27 @@ public static com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartBackfillJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartBackfillJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -641,4 +582,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java new file mode 100644 index 000000000000..9251e7fa120d --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface StartBackfillJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
+   * 
+ * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The object. + */ + java.lang.String getObject(); + /** + *
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
+   * 
+ * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for object. + */ + com.google.protobuf.ByteString + getObjectBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java index 2f2f9b74f5bd..6384994b4d66 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response for manually initiating a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobResponse} */ -public final class StartBackfillJobResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StartBackfillJobResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobResponse) StartBackfillJobResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StartBackfillJobResponse.newBuilder() to construct. private StartBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StartBackfillJobResponse() {} + private StartBackfillJobResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StartBackfillJobResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobResponse.class, - com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobResponse.class, com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.StreamObject object_; /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasObject() { return object_ != null; } /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObject getObject() { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
@@ -110,13 +82,10 @@ public com.google.cloud.datastream.v1.StreamObject getObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (object_ != null) { output.writeMessage(1, getObject()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StartBackfillJobResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StartBackfillJobResponse other = - (com.google.cloud.datastream.v1.StartBackfillJobResponse) obj; + com.google.cloud.datastream.v1.StartBackfillJobResponse other = (com.google.cloud.datastream.v1.StartBackfillJobResponse) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.StartBackfillJobResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.StartBackfillJobResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for manually initiating a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StartBackfillJobResponse) com.google.cloud.datastream.v1.StartBackfillJobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobResponse.class, - com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobResponse.class, com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.StartBackfillJobResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.StartBackfillJobResponse buildPartial() { - com.google.cloud.datastream.v1.StartBackfillJobResponse result = - new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.StartBackfillJobResponse result = new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,7 +322,9 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + result.object_ = objectBuilder_ == null + ? object_ + : objectBuilder_.build(); } } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StartBackfillJobResponse) { - return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobResponse)other); } else { super.mergeFrom(other); return this; @@ -409,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobResponse other) { - if (other == com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance()) return this; if (other.hasObject()) { mergeObject(other.getObject()); } @@ -440,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1.StreamObject object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> - objectBuilder_; + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> objectBuilder_; /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ public com.google.cloud.datastream.v1.StreamObject getObject() { if (objectBuilder_ == null) { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } else { return objectBuilder_.getMessage(); } } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -528,15 +475,14 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; */ - public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + public Builder setObject( + com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { if (objectBuilder_ == null) { object_ = builderForValue.build(); } else { @@ -547,8 +493,6 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder bui return this; } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -557,9 +501,9 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder bui */ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && object_ != null - && object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + object_ != null && + object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { getObjectBuilder().mergeFrom(value); } else { object_ = value; @@ -572,8 +516,6 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -591,8 +533,6 @@ public Builder clearObject() { return this; } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -605,8 +545,6 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { return getObjectFieldBuilder().getBuilder(); } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -617,14 +555,11 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() if (objectBuilder_ != null) { return objectBuilder_.getMessageOrBuilder(); } else { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } } /** - * - * *
      * The stream object resource a backfill job was started for.
      * 
@@ -632,24 +567,21 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() * .google.cloud.datastream.v1.StreamObject object = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> getObjectFieldBuilder() { if (objectBuilder_ == null) { - objectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder>( - getObject(), getParentForChildren(), isClean()); + objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + getObject(), + getParentForChildren(), + isClean()); object_ = null; } return objectBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StartBackfillJobResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StartBackfillJobResponse) private static final com.google.cloud.datastream.v1.StartBackfillJobResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StartBackfillJobResponse(); } @@ -673,27 +605,27 @@ public static com.google.cloud.datastream.v1.StartBackfillJobResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartBackfillJobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartBackfillJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java index 6b0fb3fefd23..b9f25bece1cd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface StartBackfillJobResponseOrBuilder - extends +public interface StartBackfillJobResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ boolean hasObject(); /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ com.google.cloud.datastream.v1.StreamObject getObject(); /** - * - * *
    * The stream object resource a backfill job was started for.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java similarity index 62% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java index 9965364195a2..d312a9c98594 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java @@ -1,72 +1,55 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
- * Static IP address connectivity.
+ * Static IP address connectivity. Used when the source database is configured
+ * to allow incoming connections from the Datastream public IP addresses
+ * for the region specified in the connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StaticServiceIpConnectivity} */ -public final class StaticServiceIpConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StaticServiceIpConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StaticServiceIpConnectivity) StaticServiceIpConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StaticServiceIpConnectivity.newBuilder() to construct. private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StaticServiceIpConnectivity() {} + private StaticServiceIpConnectivity() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StaticServiceIpConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +61,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +80,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StaticServiceIpConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StaticServiceIpConnectivity other = - (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) obj; + com.google.cloud.datastream.v1.StaticServiceIpConnectivity other = (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +104,131 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.StaticServiceIpConnectivity prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.StaticServiceIpConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
-   * Static IP address connectivity.
+   * Static IP address connectivity. Used when the source database is configured
+   * to allow incoming connections from the Datastream public IP addresses
+   * for the region specified in the connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StaticServiceIpConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StaticServiceIpConnectivity) com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, - com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,9 +236,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override @@ -279,8 +257,7 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1.StaticServiceIpConnectivity buildPartial() { - com.google.cloud.datastream.v1.StaticServiceIpConnectivity result = - new com.google.cloud.datastream.v1.StaticServiceIpConnectivity(this); + com.google.cloud.datastream.v1.StaticServiceIpConnectivity result = new com.google.cloud.datastream.v1.StaticServiceIpConnectivity(this); onBuilt(); return result; } @@ -289,39 +266,38 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivity buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StaticServiceIpConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1.StaticServiceIpConnectivity)other); } else { super.mergeFrom(other); return this; @@ -329,8 +305,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StaticServiceIpConnectivity other) { - if (other == com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +332,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +347,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,12 +359,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StaticServiceIpConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StaticServiceIpConnectivity) private static final com.google.cloud.datastream.v1.StaticServiceIpConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StaticServiceIpConnectivity(); } @@ -399,27 +373,27 @@ public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StaticServiceIpConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StaticServiceIpConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -434,4 +408,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 000000000000..d385d5d494e5 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface StaticServiceIpConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java index 9524cb513ade..241d788fb4ce 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request for manually stopping a running backfill job for a specific stream
  * object.
@@ -28,61 +11,54 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest}
  */
-public final class StopBackfillJobRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StopBackfillJobRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StopBackfillJobRequest)
     StopBackfillJobRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StopBackfillJobRequest.newBuilder() to construct.
   private StopBackfillJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StopBackfillJobRequest() {
     object_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StopBackfillJobRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamProto
-        .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamProto
-        .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.StopBackfillJobRequest.class,
-            com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
+            com.google.cloud.datastream.v1.StopBackfillJobRequest.class, com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
   }
 
   public static final int OBJECT_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object object_ = "";
   /**
-   *
-   *
    * 
-   * Required. The name of the stream object resource to stop the backfill job for.
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
    * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The object. */ @java.lang.Override @@ -91,31 +67,30 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** - * - * *
-   * Required. The name of the stream object resource to stop the backfill job for.
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
    * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -124,7 +99,6 @@ public com.google.protobuf.ByteString getObjectBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -136,7 +110,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, object_); } @@ -160,15 +135,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StopBackfillJobRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StopBackfillJobRequest other = - (com.google.cloud.datastream.v1.StopBackfillJobRequest) obj; + com.google.cloud.datastream.v1.StopBackfillJobRequest other = (com.google.cloud.datastream.v1.StopBackfillJobRequest) obj; - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -188,104 +163,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.StopBackfillJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.StopBackfillJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request for manually stopping a running backfill job for a specific stream
    * object.
@@ -293,32 +260,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StopBackfillJobRequest)
       com.google.cloud.datastream.v1.StopBackfillJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.StopBackfillJobRequest.class,
-              com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
+              com.google.cloud.datastream.v1.StopBackfillJobRequest.class, com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.StopBackfillJobRequest.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -328,9 +296,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamProto
-          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -349,11 +317,8 @@ public com.google.cloud.datastream.v1.StopBackfillJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.StopBackfillJobRequest buildPartial() {
-      com.google.cloud.datastream.v1.StopBackfillJobRequest result =
-          new com.google.cloud.datastream.v1.StopBackfillJobRequest(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1.StopBackfillJobRequest result = new com.google.cloud.datastream.v1.StopBackfillJobRequest(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -369,39 +334,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobRequest
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.StopBackfillJobRequest) {
-        return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobRequest) other);
+        return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -409,8 +373,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobRequest other) {
-      if (other == com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance()) return this;
       if (!other.getObject().isEmpty()) {
         object_ = other.object_;
         bitField0_ |= 0x00000001;
@@ -442,19 +405,17 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                object_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              object_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -464,27 +425,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object object_ = "";
     /**
-     *
-     *
      * 
-     * Required. The name of the stream object resource to stop the backfill job for.
+     * Required. The name of the stream object resource to stop the backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -493,23 +450,21 @@ public java.lang.String getObject() { } } /** - * - * *
-     * Required. The name of the stream object resource to stop the backfill job for.
+     * Required. The name of the stream object resource to stop the backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for object. */ - public com.google.protobuf.ByteString getObjectBytes() { + public com.google.protobuf.ByteString + getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); object_ = b; return b; } else { @@ -517,39 +472,30 @@ public com.google.protobuf.ByteString getObjectBytes() { } } /** - * - * *
-     * Required. The name of the stream object resource to stop the backfill job for.
+     * Required. The name of the stream object resource to stop the backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
-     * Required. The name of the stream object resource to stop the backfill job for.
+     * Required. The name of the stream object resource to stop the backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearObject() { @@ -559,32 +505,27 @@ public Builder clearObject() { return this; } /** - * - * *
-     * Required. The name of the stream object resource to stop the backfill job for.
+     * Required. The name of the stream object resource to stop the backfill job
+     * for.
      * 
* - * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StopBackfillJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StopBackfillJobRequest) private static final com.google.cloud.datastream.v1.StopBackfillJobRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StopBackfillJobRequest(); } @@ -608,27 +549,27 @@ public static com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopBackfillJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopBackfillJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -643,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java new file mode 100644 index 000000000000..f15cdbfb98d1 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface StopBackfillJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
+   * 
+ * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The object. + */ + java.lang.String getObject(); + /** + *
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
+   * 
+ * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for object. + */ + com.google.protobuf.ByteString + getObjectBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java index 642033afe4d9..f6242664c5a0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Response for manually stop a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobResponse} */ -public final class StopBackfillJobResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StopBackfillJobResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StopBackfillJobResponse) StopBackfillJobResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StopBackfillJobResponse.newBuilder() to construct. private StopBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StopBackfillJobResponse() {} + private StopBackfillJobResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StopBackfillJobResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StopBackfillJobResponse.class, - com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StopBackfillJobResponse.class, com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.StreamObject object_; /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasObject() { return object_ != null; } /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObject getObject() { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
@@ -110,13 +82,10 @@ public com.google.cloud.datastream.v1.StreamObject getObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (object_ != null) { output.writeMessage(1, getObject()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StopBackfillJobResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StopBackfillJobResponse other = - (com.google.cloud.datastream.v1.StopBackfillJobResponse) obj; + com.google.cloud.datastream.v1.StopBackfillJobResponse other = (com.google.cloud.datastream.v1.StopBackfillJobResponse) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject().equals(other.getObject())) return false; + if (!getObject() + .equals(other.getObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,136 +156,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.StopBackfillJobResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.StopBackfillJobResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response for manually stop a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StopBackfillJobResponse) com.google.cloud.datastream.v1.StopBackfillJobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StopBackfillJobResponse.class, - com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StopBackfillJobResponse.class, com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.StopBackfillJobResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -328,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override @@ -349,11 +313,8 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.StopBackfillJobResponse buildPartial() { - com.google.cloud.datastream.v1.StopBackfillJobResponse result = - new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.StopBackfillJobResponse result = new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -361,7 +322,9 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); + result.object_ = objectBuilder_ == null + ? object_ + : objectBuilder_.build(); } } @@ -369,39 +332,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobRespons public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StopBackfillJobResponse) { - return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobResponse) other); + return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobResponse)other); } else { super.mergeFrom(other); return this; @@ -409,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobResponse other) { - if (other == com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance()) return this; if (other.hasObject()) { mergeObject(other.getObject()); } @@ -440,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -462,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1.StreamObject object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> - objectBuilder_; + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> objectBuilder_; /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ public com.google.cloud.datastream.v1.StreamObject getObject() { if (objectBuilder_ == null) { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } else { return objectBuilder_.getMessage(); } } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -528,15 +475,14 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; */ - public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + public Builder setObject( + com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { if (objectBuilder_ == null) { object_ = builderForValue.build(); } else { @@ -547,8 +493,6 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder bui return this; } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -557,9 +501,9 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder bui */ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && object_ != null - && object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + object_ != null && + object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { getObjectBuilder().mergeFrom(value); } else { object_ = value; @@ -572,8 +516,6 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -591,8 +533,6 @@ public Builder clearObject() { return this; } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -605,8 +545,6 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { return getObjectFieldBuilder().getBuilder(); } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -617,14 +555,11 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() if (objectBuilder_ != null) { return objectBuilder_.getMessageOrBuilder(); } else { - return object_ == null - ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() - : object_; + return object_ == null ? + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; } } /** - * - * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -632,24 +567,21 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() * .google.cloud.datastream.v1.StreamObject object = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> getObjectFieldBuilder() { if (objectBuilder_ == null) { - objectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, - com.google.cloud.datastream.v1.StreamObject.Builder, - com.google.cloud.datastream.v1.StreamObjectOrBuilder>( - getObject(), getParentForChildren(), isClean()); + objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + getObject(), + getParentForChildren(), + isClean()); object_ = null; } return objectBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StopBackfillJobResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StopBackfillJobResponse) private static final com.google.cloud.datastream.v1.StopBackfillJobResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StopBackfillJobResponse(); } @@ -673,27 +605,27 @@ public static com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopBackfillJobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopBackfillJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -708,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java index 896434af12cc..abb22f8b5e22 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface StopBackfillJobResponseOrBuilder - extends +public interface StopBackfillJobResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return Whether the object field is set. */ boolean hasObject(); /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; - * * @return The object. */ com.google.cloud.datastream.v1.StreamObject getObject(); /** - * - * *
    * The stream object resource the backfill job was stopped for.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index 18922c6b1cf1..b77226b667b0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * A resource representing streaming data from a source to a destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream} */ -public final class Stream extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Stream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream) StreamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stream() { name_ = ""; displayName_ = ""; @@ -47,54 +29,51 @@ private Stream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.class, - com.google.cloud.datastream.v1.Stream.Builder.class); + com.google.cloud.datastream.v1.Stream.class, com.google.cloud.datastream.v1.Stream.Builder.class); } /** - * - * *
    * Stream state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.Stream.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified stream state.
      * 
@@ -103,8 +82,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -113,8 +90,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NOT_STARTED(1), /** - * - * *
      * The stream is running.
      * 
@@ -123,8 +98,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The stream is paused.
      * 
@@ -133,8 +106,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(3), /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -144,8 +115,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAINTENANCE(4),
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -155,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FAILED(5),
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -165,8 +132,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_PERMANENTLY(6), /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -175,8 +140,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STARTING(7), /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -189,8 +152,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified stream state.
      * 
@@ -199,8 +160,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -209,8 +168,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_STARTED_VALUE = 1; /** - * - * *
      * The stream is running.
      * 
@@ -219,8 +176,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The stream is paused.
      * 
@@ -229,8 +184,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 3; /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -240,8 +193,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -251,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FAILED_VALUE = 5;
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -261,8 +210,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -271,8 +218,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STARTING_VALUE = 7; /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -282,6 +227,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DRAINING_VALUE = 8;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -306,61 +252,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return NOT_STARTED;
-        case 2:
-          return RUNNING;
-        case 3:
-          return PAUSED;
-        case 4:
-          return MAINTENANCE;
-        case 5:
-          return FAILED;
-        case 6:
-          return FAILED_PERMANENTLY;
-        case 7:
-          return STARTING;
-        case 8:
-          return DRAINING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return NOT_STARTED;
+        case 2: return RUNNING;
+        case 3: return PAUSED;
+        case 4: return MAINTENANCE;
+        case 5: return FAILED;
+        case 6: return FAILED_PERMANENTLY;
+        case 7: return STARTING;
+        case 8: return DRAINING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.datastream.v1.Stream.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -377,38 +317,29 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.Stream.State)
   }
 
-  public interface BackfillAllStrategyOrBuilder
-      extends
+  public interface BackfillAllStrategyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ boolean hasOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -418,32 +349,24 @@ public interface BackfillAllStrategyOrBuilder com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ boolean hasMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -453,32 +376,24 @@ public interface BackfillAllStrategyOrBuilder com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return Whether the postgresqlExcludedObjects field is set. */ boolean hasPostgresqlExcludedObjects(); /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return The postgresqlExcludedObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects(); /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
@@ -487,12 +402,9 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase - getExcludedObjectsCase(); + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } /** - * - * *
    * Backfill strategy to automatically backfill the Stream's objects.
    * Specific objects can be excluded.
@@ -500,57 +412,53 @@ public interface BackfillAllStrategyOrBuilder
    *
    * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy}
    */
-  public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BackfillAllStrategy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
       BackfillAllStrategyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BackfillAllStrategy.newBuilder() to construct.
     private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BackfillAllStrategy() {}
+    private BackfillAllStrategy() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BackfillAllStrategy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class,
-              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
+              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
     }
 
     private int excludedObjectsCase_ = 0;
     private java.lang.Object excludedObjects_;
-
     public enum ExcludedObjectsCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ORACLE_EXCLUDED_OBJECTS(1),
       MYSQL_EXCLUDED_OBJECTS(2),
       POSTGRESQL_EXCLUDED_OBJECTS(3),
       EXCLUDEDOBJECTS_NOT_SET(0);
       private final int value;
-
       private ExcludedObjectsCase(int value) {
         this.value = value;
       }
@@ -566,38 +474,31 @@ public static ExcludedObjectsCase valueOf(int value) {
 
       public static ExcludedObjectsCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return ORACLE_EXCLUDED_OBJECTS;
-          case 2:
-            return MYSQL_EXCLUDED_OBJECTS;
-          case 3:
-            return POSTGRESQL_EXCLUDED_OBJECTS;
-          case 0:
-            return EXCLUDEDOBJECTS_NOT_SET;
-          default:
-            return null;
+          case 1: return ORACLE_EXCLUDED_OBJECTS;
+          case 2: return MYSQL_EXCLUDED_OBJECTS;
+          case 3: return POSTGRESQL_EXCLUDED_OBJECTS;
+          case 0: return EXCLUDEDOBJECTS_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ExcludedObjectsCase getExcludedObjectsCase() {
-      return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
+    public ExcludedObjectsCase
+    getExcludedObjectsCase() {
+      return ExcludedObjectsCase.forNumber(
+          excludedObjectsCase_);
     }
 
     public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -605,26 +506,21 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -634,21 +530,18 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -656,26 +549,21 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -685,21 +573,18 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 3; /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return Whether the postgresqlExcludedObjects field is set. */ @java.lang.Override @@ -707,26 +592,21 @@ public boolean hasPostgresqlExcludedObjects() { return excludedObjectsCase_ == 3; } /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return The postgresqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { if (excludedObjectsCase_ == 3) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** - * - * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
@@ -734,16 +614,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjec * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder - getPostgresqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 3) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -755,7 +633,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (excludedObjectsCase_ == 1) { output.writeMessage(1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); } @@ -775,19 +654,16 @@ public int getSerializedSize() { size = 0; if (excludedObjectsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); } if (excludedObjectsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } if (excludedObjectsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -797,25 +673,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other = - (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) obj; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other = (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) obj; if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; switch (excludedObjectsCase_) { case 1: - if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; + if (!getOracleExcludedObjects() + .equals(other.getOracleExcludedObjects())) return false; break; case 2: - if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; + if (!getMysqlExcludedObjects() + .equals(other.getMysqlExcludedObjects())) return false; break; case 3: - if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) - return false; + if (!getPostgresqlExcludedObjects() + .equals(other.getPostgresqlExcludedObjects())) return false; break; case 0: default: @@ -853,94 +730,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -950,8 +820,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -959,33 +827,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
         com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class,
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
       }
 
       // Construct using com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder()
-      private Builder() {}
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1005,9 +873,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
@@ -1026,11 +894,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy build() {
 
       @java.lang.Override
       public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() {
-        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result =
-            new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -1040,17 +905,19 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream.BackfillAllStra
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) {
+      private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) {
         result.excludedObjectsCase_ = excludedObjectsCase_;
         result.excludedObjects_ = this.excludedObjects_;
-        if (excludedObjectsCase_ == 1 && oracleExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 1 &&
+            oracleExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = oracleExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 2 && mysqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 2 &&
+            mysqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 3 && postgresqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 3 &&
+            postgresqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build();
         }
       }
@@ -1059,41 +926,38 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) {
-          return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) other);
+          return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1101,28 +965,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other) {
-        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) return this;
         switch (other.getExcludedObjectsCase()) {
-          case ORACLE_EXCLUDED_OBJECTS:
-            {
-              mergeOracleExcludedObjects(other.getOracleExcludedObjects());
-              break;
-            }
-          case MYSQL_EXCLUDED_OBJECTS:
-            {
-              mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
-              break;
-            }
-          case POSTGRESQL_EXCLUDED_OBJECTS:
-            {
-              mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects());
-              break;
-            }
-          case EXCLUDEDOBJECTS_NOT_SET:
-            {
-              break;
-            }
+          case ORACLE_EXCLUDED_OBJECTS: {
+            mergeOracleExcludedObjects(other.getOracleExcludedObjects());
+            break;
+          }
+          case MYSQL_EXCLUDED_OBJECTS: {
+            mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
+            break;
+          }
+          case POSTGRESQL_EXCLUDED_OBJECTS: {
+            mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects());
+            break;
+          }
+          case EXCLUDEDOBJECTS_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -1150,34 +1009,33 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getOracleExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
-                  excludedObjectsCase_ = 1;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getMysqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
-                  excludedObjectsCase_ = 2;
-                  break;
-                } // case 18
-              case 26:
-                {
-                  input.readMessage(
-                      getPostgresqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
-                  excludedObjectsCase_ = 3;
-                  break;
-                } // case 26
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getOracleExcludedObjectsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                excludedObjectsCase_ = 1;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getMysqlExcludedObjectsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                excludedObjectsCase_ = 2;
+                break;
+              } // case 18
+              case 26: {
+                input.readMessage(
+                    getPostgresqlExcludedObjectsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                excludedObjectsCase_ = 3;
+                break;
+              } // case 26
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1187,12 +1045,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int excludedObjectsCase_ = 0;
       private java.lang.Object excludedObjects_;
-
-      public ExcludedObjectsCase getExcludedObjectsCase() {
-        return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
+      public ExcludedObjectsCase
+          getExcludedObjectsCase() {
+        return ExcludedObjectsCase.forNumber(
+            excludedObjectsCase_);
       }
 
       public Builder clearExcludedObjects() {
@@ -1205,19 +1063,13 @@ public Builder clearExcludedObjects() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.datastream.v1.OracleRdbms,
-              com.google.cloud.datastream.v1.OracleRdbms.Builder,
-              com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>
-          oracleExcludedObjectsBuilder_;
+          com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleExcludedObjectsBuilder_;
       /**
-       *
-       *
        * 
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -1225,14 +1077,11 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override @@ -1250,8 +1099,6 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1272,8 +1119,6 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdb return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1292,8 +1137,6 @@ public Builder setOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1302,14 +1145,10 @@ public Builder setOracleExcludedObjects( */ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 1 - && excludedObjects_ - != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 1 && + excludedObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1325,8 +1164,6 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleR return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1350,8 +1187,6 @@ public Builder clearOracleExcludedObjects() { return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1362,8 +1197,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1371,8 +1204,7 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder - getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1383,8 +1215,6 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1392,19 +1222,14 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder() { if (oracleExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 1)) { excludedObjects_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, - com.google.cloud.datastream.v1.OracleRdbms.Builder, - com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1416,19 +1241,13 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> - mysqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlExcludedObjectsBuilder_; /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -1436,14 +1255,11 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override @@ -1461,8 +1277,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1483,8 +1297,6 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1503,8 +1315,6 @@ public Builder setMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1513,14 +1323,10 @@ public Builder setMysqlExcludedObjects( */ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 2 - && excludedObjects_ - != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 2 && + excludedObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1536,8 +1342,6 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdb return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1561,8 +1365,6 @@ public Builder clearMysqlExcludedObjects() { return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1573,8 +1375,6 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjects return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1593,8 +1393,6 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1602,19 +1400,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder() { if (mysqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 2)) { excludedObjects_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, - com.google.cloud.datastream.v1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1626,19 +1419,13 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> - postgresqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlExcludedObjectsBuilder_; /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return Whether the postgresqlExcludedObjects field is set. */ @java.lang.Override @@ -1646,14 +1433,11 @@ public boolean hasPostgresqlExcludedObjects() { return excludedObjectsCase_ == 3; } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; - * * @return The postgresqlExcludedObjects. */ @java.lang.Override @@ -1671,16 +1455,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjec } } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public Builder setPostgresqlExcludedObjects( - com.google.cloud.datastream.v1.PostgresqlRdbms value) { + public Builder setPostgresqlExcludedObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1694,8 +1475,6 @@ public Builder setPostgresqlExcludedObjects( return this; } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1714,25 +1493,18 @@ public Builder setPostgresqlExcludedObjects( return this; } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public Builder mergePostgresqlExcludedObjects( - com.google.cloud.datastream.v1.PostgresqlRdbms value) { + public Builder mergePostgresqlExcludedObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 3 - && excludedObjects_ - != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( - (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 3 && + excludedObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1748,8 +1520,6 @@ public Builder mergePostgresqlExcludedObjects( return this; } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1773,21 +1543,16 @@ public Builder clearPostgresqlExcludedObjects() { return this; } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder - getPostgresqlExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlExcludedObjectsBuilder() { return getPostgresqlExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1795,8 +1560,7 @@ public Builder clearPostgresqlExcludedObjects() { * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder - getPostgresqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 3) && (postgresqlExcludedObjectsBuilder_ != null)) { return postgresqlExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1807,8 +1571,6 @@ public Builder clearPostgresqlExcludedObjects() { } } /** - * - * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1816,19 +1578,14 @@ public Builder clearPostgresqlExcludedObjects() { * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlExcludedObjectsFieldBuilder() { if (postgresqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 3)) { excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, - com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1838,7 +1595,6 @@ public Builder clearPostgresqlExcludedObjects() { onChanged(); return postgresqlExcludedObjectsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1851,12 +1607,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) private static final com.google.cloud.datastream.v1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(); } @@ -1865,28 +1621,27 @@ public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillAllStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillAllStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1901,61 +1656,58 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BackfillNoneStrategyOrBuilder - extends + public interface BackfillNoneStrategyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + } /** - * - * *
    * Backfill strategy to disable automatic backfill for the Stream's objects.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} */ - public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BackfillNoneStrategy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) BackfillNoneStrategyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackfillNoneStrategy.newBuilder() to construct. private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BackfillNoneStrategy() {} + private BackfillNoneStrategy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BackfillNoneStrategy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1967,7 +1719,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -1985,13 +1738,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = - (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -2010,94 +1762,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2107,41 +1852,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Backfill strategy to disable automatic backfill for the Stream's objects.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); } // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -2149,14 +1892,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } @@ -2171,8 +1913,7 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = - new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); onBuilt(); return result; } @@ -2181,41 +1922,38 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) { - return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) other); + return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)other); } else { super.mergeFrom(other); return this; @@ -2223,9 +1961,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { - if (other - == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2252,13 +1988,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2268,7 +2003,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2281,13 +2015,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); } @@ -2296,28 +2029,27 @@ public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillNoneStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillNoneStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2332,21 +2064,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int bitField0_; private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - public enum BackfillStrategyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKFILL_ALL(101), BACKFILL_NONE(102), BACKFILLSTRATEGY_NOT_SET(0); private final int value; - private BackfillStrategyCase(int value) { this.value = value; } @@ -2362,39 +2092,32 @@ public static BackfillStrategyCase valueOf(int value) { public static BackfillStrategyCase forNumber(int value) { switch (value) { - case 101: - return BACKFILL_ALL; - case 102: - return BACKFILL_NONE; - case 0: - return BACKFILLSTRATEGY_NOT_SET; - default: - return null; + case 101: return BACKFILL_ALL; + case 102: return BACKFILL_NONE; + case 0: return BACKFILLSTRATEGY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BackfillStrategyCase getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber(backfillStrategyCase_); + public BackfillStrategyCase + getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber( + backfillStrategyCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2403,29 +2126,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2436,15 +2159,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -2452,15 +2171,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -2468,14 +2183,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2485,15 +2197,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2501,15 +2209,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2517,14 +2221,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2532,34 +2233,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -2567,21 +2266,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -2593,8 +2291,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -2602,19 +2298,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -2622,11 +2316,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2634,18 +2328,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -2654,29 +2344,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2687,16 +2377,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ @java.lang.Override @@ -2704,55 +2389,37 @@ public boolean hasSourceConfig() { return sourceConfig_ != null; } /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; } /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; } public static final int DESTINATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ @java.lang.Override @@ -2760,88 +2427,63 @@ public boolean hasDestinationConfig() { return destinationConfig_ != null; } /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; } /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; } public static final int STATE_FIELD_NUMBER = 8; private int state_ = 0; /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1.Stream.State getState() { - com.google.cloud.datastream.v1.Stream.State result = - com.google.cloud.datastream.v1.Stream.State.forNumber(state_); + @java.lang.Override public com.google.cloud.datastream.v1.Stream.State getState() { + com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; } public static final int BACKFILL_ALL_FIELD_NUMBER = 101; /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -2849,27 +2491,22 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -2878,24 +2515,20 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll(
    * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder
-      getBackfillAllOrBuilder() {
+  public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
     if (backfillStrategyCase_ == 101) {
-      return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_;
+       return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_;
     }
     return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
   }
 
   public static final int BACKFILL_NONE_FIELD_NUMBER = 102;
   /**
-   *
-   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -2903,26 +2536,21 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } /** - * - * *
    * Do not automatically backfill any objects.
    * 
@@ -2930,102 +2558,78 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNon * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } public static final int ERRORS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { return errors_.get(index); } public static final int CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER = 10; - @SuppressWarnings("serial") private volatile java.lang.Object customerManagedEncryptionKey_ = ""; /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -3033,10 +2637,7 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the customerManagedEncryptionKey field is set. */ @java.lang.Override @@ -3044,8 +2645,6 @@ public boolean hasCustomerManagedEncryptionKey() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -3053,10 +2652,7 @@ public boolean hasCustomerManagedEncryptionKey() {
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The customerManagedEncryptionKey. */ @java.lang.Override @@ -3065,15 +2661,14 @@ public java.lang.String getCustomerManagedEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerManagedEncryptionKey_ = s; return s; } } /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -3081,18 +2676,17 @@ public java.lang.String getCustomerManagedEncryptionKey() {
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for customerManagedEncryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getCustomerManagedEncryptionKeyBytes() { java.lang.Object ref = customerManagedEncryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customerManagedEncryptionKey_ = b; return b; } else { @@ -3101,7 +2695,6 @@ public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -3113,7 +2706,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -3123,8 +2717,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -3144,12 +2742,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customerManagedEncryptionKey_); } if (backfillStrategyCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); + output.writeMessage(101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - output.writeMessage( - 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + output.writeMessage(102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); } getUnknownFields().writeTo(output); } @@ -3164,50 +2760,52 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (sourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSourceConfig()); } if (destinationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDestinationConfig()); } if (state_ != com.google.cloud.datastream.v1.Stream.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, errors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 10, customerManagedEncryptionKey_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customerManagedEncryptionKey_); } if (backfillStrategyCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3217,46 +2815,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream)) { return super.equals(obj); } com.google.cloud.datastream.v1.Stream other = (com.google.cloud.datastream.v1.Stream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasSourceConfig() != other.hasSourceConfig()) return false; if (hasSourceConfig()) { - if (!getSourceConfig().equals(other.getSourceConfig())) return false; + if (!getSourceConfig() + .equals(other.getSourceConfig())) return false; } if (hasDestinationConfig() != other.hasDestinationConfig()) return false; if (hasDestinationConfig()) { - if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; + if (!getDestinationConfig() + .equals(other.getDestinationConfig())) return false; } if (state_ != other.state_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (hasCustomerManagedEncryptionKey() != other.hasCustomerManagedEncryptionKey()) return false; if (hasCustomerManagedEncryptionKey()) { - if (!getCustomerManagedEncryptionKey().equals(other.getCustomerManagedEncryptionKey())) - return false; + if (!getCustomerManagedEncryptionKey() + .equals(other.getCustomerManagedEncryptionKey())) return false; } if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: - if (!getBackfillAll().equals(other.getBackfillAll())) return false; + if (!getBackfillAll() + .equals(other.getBackfillAll())) return false; break; case 102: - if (!getBackfillNone().equals(other.getBackfillNone())) return false; + if (!getBackfillNone() + .equals(other.getBackfillNone())) return false; break; case 0: default: @@ -3323,155 +2931,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Stream parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Stream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Stream parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.datastream.v1.Stream parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Stream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A resource representing streaming data from a source to a destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream) com.google.cloud.datastream.v1.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.class, - com.google.cloud.datastream.v1.Stream.Builder.class); + com.google.cloud.datastream.v1.Stream.class, com.google.cloud.datastream.v1.Stream.Builder.class); } // Construct using com.google.cloud.datastream.v1.Stream.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3520,9 +3125,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; } @java.lang.Override @@ -3541,12 +3146,9 @@ public com.google.cloud.datastream.v1.Stream build() { @java.lang.Override public com.google.cloud.datastream.v1.Stream buildPartial() { - com.google.cloud.datastream.v1.Stream result = - new com.google.cloud.datastream.v1.Stream(this); + com.google.cloud.datastream.v1.Stream result = new com.google.cloud.datastream.v1.Stream(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -3570,10 +3172,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -3583,14 +3189,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.sourceConfig_ = - sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); + result.sourceConfig_ = sourceConfigBuilder_ == null + ? sourceConfig_ + : sourceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.destinationConfig_ = - destinationConfigBuilder_ == null - ? destinationConfig_ - : destinationConfigBuilder_.build(); + result.destinationConfig_ = destinationConfigBuilder_ == null + ? destinationConfig_ + : destinationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -3606,10 +3212,12 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream result) { result.backfillStrategyCase_ = backfillStrategyCase_; result.backfillStrategy_ = this.backfillStrategy_; - if (backfillStrategyCase_ == 101 && backfillAllBuilder_ != null) { + if (backfillStrategyCase_ == 101 && + backfillAllBuilder_ != null) { result.backfillStrategy_ = backfillAllBuilder_.build(); } - if (backfillStrategyCase_ == 102 && backfillNoneBuilder_ != null) { + if (backfillStrategyCase_ == 102 && + backfillNoneBuilder_ != null) { result.backfillStrategy_ = backfillNoneBuilder_.build(); } } @@ -3618,39 +3226,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Stream) { - return mergeFrom((com.google.cloud.datastream.v1.Stream) other); + return mergeFrom((com.google.cloud.datastream.v1.Stream)other); } else { super.mergeFrom(other); return this; @@ -3670,7 +3277,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -3704,10 +3312,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -3719,20 +3326,17 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { onChanged(); } switch (other.getBackfillStrategyCase()) { - case BACKFILL_ALL: - { - mergeBackfillAll(other.getBackfillAll()); - break; - } - case BACKFILL_NONE: - { - mergeBackfillNone(other.getBackfillNone()); - break; - } - case BACKFILLSTRATEGY_NOT_SET: - { - break; - } + case BACKFILL_ALL: { + mergeBackfillAll(other.getBackfillAll()); + break; + } + case BACKFILL_NONE: { + mergeBackfillNone(other.getBackfillNone()); + break; + } + case BACKFILLSTRATEGY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3760,99 +3364,96 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - customerManagedEncryptionKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 810: - { - input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); - backfillStrategyCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage(getBackfillNoneFieldBuilder().getBuilder(), extensionRegistry); - backfillStrategyCase_ = 102; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getDestinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: { + customerManagedEncryptionKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 810: { + input.readMessage( + getBackfillAllFieldBuilder().getBuilder(), + extensionRegistry); + backfillStrategyCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getBackfillNoneFieldBuilder().getBuilder(), + extensionRegistry); + backfillStrategyCase_ = 102; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3862,12 +3463,12 @@ public Builder mergeFrom( } // finally return this; } - private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - - public BackfillStrategyCase getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber(backfillStrategyCase_); + public BackfillStrategyCase + getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber( + backfillStrategyCase_); } public Builder clearBackfillStrategy() { @@ -3881,20 +3482,18 @@ public Builder clearBackfillStrategy() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3903,21 +3502,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3925,35 +3523,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3963,21 +3554,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3987,58 +3574,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -4054,17 +3622,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -4075,21 +3640,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -4102,15 +3663,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -4123,15 +3680,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -4139,48 +3692,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -4188,58 +3729,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -4255,17 +3777,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -4276,21 +3795,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -4303,15 +3818,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -4324,15 +3835,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -4340,66 +3847,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -4408,13 +3905,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -4422,21 +3916,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -4448,8 +3941,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -4457,19 +3948,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -4477,95 +3966,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -4574,21 +4059,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4596,35 +4080,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -4634,21 +4111,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -4658,58 +4131,39 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder> - sourceConfigBuilder_; + com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder> sourceConfigBuilder_; /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ public boolean hasSourceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { if (sourceConfigBuilder_ == null) { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; } else { return sourceConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { if (sourceConfigBuilder_ == null) { @@ -4725,15 +4179,11 @@ public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceConfig( com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { @@ -4747,21 +4197,17 @@ public Builder setSourceConfig( return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { if (sourceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && sourceConfig_ != null - && sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + sourceConfig_ != null && + sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { getSourceConfigBuilder().mergeFrom(value); } else { sourceConfig_ = value; @@ -4774,15 +4220,11 @@ public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig val return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSourceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -4795,15 +4237,11 @@ public Builder clearSourceConfig() { return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilder() { bitField0_ |= 0x00000020; @@ -4811,48 +4249,36 @@ public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilde return getSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { if (sourceConfigBuilder_ != null) { return sourceConfigBuilder_.getMessageOrBuilder(); } else { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? + com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; } } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder> + com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder> getSourceConfigFieldBuilder() { if (sourceConfigBuilder_ == null) { - sourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, - com.google.cloud.datastream.v1.SourceConfig.Builder, - com.google.cloud.datastream.v1.SourceConfigOrBuilder>( - getSourceConfig(), getParentForChildren(), isClean()); + sourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder>( + getSourceConfig(), + getParentForChildren(), + isClean()); sourceConfig_ = null; } return sourceConfigBuilder_; @@ -4860,58 +4286,39 @@ public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBui private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder> - destinationConfigBuilder_; + com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder> destinationConfigBuilder_; /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ public boolean hasDestinationConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { if (destinationConfigBuilder_ == null) { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; } else { return destinationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { @@ -4927,15 +4334,11 @@ public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationCo return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinationConfig( com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { @@ -4949,22 +4352,17 @@ public Builder setDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && destinationConfig_ != null - && destinationConfig_ - != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + destinationConfig_ != null && + destinationConfig_ != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { getDestinationConfigBuilder().mergeFrom(value); } else { destinationConfig_ = value; @@ -4977,15 +4375,11 @@ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.Destination return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestinationConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4998,15 +4392,11 @@ public Builder clearDestinationConfig() { return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationConfigBuilder() { bitField0_ |= 0x00000040; @@ -5014,49 +4404,36 @@ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationCo return getDestinationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.DestinationConfigOrBuilder - getDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { if (destinationConfigBuilder_ != null) { return destinationConfigBuilder_.getMessageOrBuilder(); } else { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? + com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; } } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder> + com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder> getDestinationConfigFieldBuilder() { if (destinationConfigBuilder_ == null) { - destinationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, - com.google.cloud.datastream.v1.DestinationConfig.Builder, - com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( - getDestinationConfig(), getParentForChildren(), isClean()); + destinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( + getDestinationConfig(), + getParentForChildren(), + isClean()); destinationConfig_ = null; } return destinationConfigBuilder_; @@ -5064,29 +4441,22 @@ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationCo private int state_ = 0; /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -5097,31 +4467,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.State getState() { - com.google.cloud.datastream.v1.Stream.State result = - com.google.cloud.datastream.v1.Stream.State.forNumber(state_); + com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @param value The state to set. * @return This builder for chaining. */ @@ -5135,14 +4498,11 @@ public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { return this; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return This builder for chaining. */ public Builder clearState() { @@ -5153,20 +4513,14 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> - backfillAllBuilder_; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> backfillAllBuilder_; /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -5174,15 +4528,12 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override @@ -5200,8 +4551,6 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll( } } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5223,8 +4572,6 @@ public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllS
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5244,8 +4591,6 @@ public Builder setBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5253,17 +4598,12 @@ public Builder setBackfillAll(
      *
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder mergeBackfillAll(
-        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) {
+    public Builder mergeBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
-        if (backfillStrategyCase_ == 101
-            && backfillStrategy_
-                != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder(
-                      (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (backfillStrategyCase_ == 101 &&
+            backfillStrategy_ != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) {
+          backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_)
+              .mergeFrom(value).buildPartial();
         } else {
           backfillStrategy_ = value;
         }
@@ -5279,8 +4619,6 @@ public Builder mergeBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5305,8 +4643,6 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5314,13 +4650,10 @@ public Builder clearBackfillAll() {
      *
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder
-        getBackfillAllBuilder() {
+    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder() {
       return getBackfillAllFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5329,8 +4662,7 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     @java.lang.Override
-    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder
-        getBackfillAllOrBuilder() {
+    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
       if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) {
         return backfillAllBuilder_.getMessageOrBuilder();
       } else {
@@ -5341,8 +4673,6 @@ public Builder clearBackfillAll() {
       }
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5351,20 +4681,14 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy,
-            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder,
-            com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>
+        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> 
         getBackfillAllFieldBuilder() {
       if (backfillAllBuilder_ == null) {
         if (!(backfillStrategyCase_ == 101)) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
+          backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
         }
-        backfillAllBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy,
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder,
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>(
+        backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>(
                 (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_,
                 getParentForChildren(),
                 isClean());
@@ -5376,19 +4700,13 @@ public Builder clearBackfillAll() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy,
-            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder,
-            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>
-        backfillNoneBuilder_;
+        com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> backfillNoneBuilder_;
     /**
-     *
-     *
      * 
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -5396,14 +4714,11 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ @java.lang.Override @@ -5421,16 +4736,13 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNon } } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setBackfillNone( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + public Builder setBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5444,8 +4756,6 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
@@ -5464,27 +4774,18 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder mergeBackfillNone( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + public Builder mergeBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 - && backfillStrategy_ - != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy - .getDefaultInstance()) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder( - (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - backfillStrategy_) - .mergeFrom(value) - .buildPartial(); + if (backfillStrategyCase_ == 102 && + backfillStrategy_ != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) { + backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_) + .mergeFrom(value).buildPartial(); } else { backfillStrategy_ = value; } @@ -5500,8 +4801,6 @@ public Builder mergeBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
@@ -5525,21 +4824,16 @@ public Builder clearBackfillNone() { return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder - getBackfillNoneBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder() { return getBackfillNoneFieldBuilder().getBuilder(); } /** - * - * *
      * Do not automatically backfill any objects.
      * 
@@ -5547,8 +4841,7 @@ public Builder clearBackfillNone() { * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { return backfillNoneBuilder_.getMessageOrBuilder(); } else { @@ -5559,8 +4852,6 @@ public Builder clearBackfillNone() { } } /** - * - * *
      * Do not automatically backfill any objects.
      * 
@@ -5568,20 +4859,14 @@ public Builder clearBackfillNone() { * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> getBackfillNoneFieldBuilder() { if (backfillNoneBuilder_ == null) { if (!(backfillStrategyCase_ == 102)) { - backfillStrategy_ = - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } - backfillNoneBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( + backfillNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, getParentForChildren(), isClean()); @@ -5593,31 +4878,23 @@ public Builder clearBackfillNone() { } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> - errorsBuilder_; + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -5627,15 +4904,11 @@ public java.util.List getErrorsList() { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -5645,15 +4918,11 @@ public int getErrorsCount() { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -5663,17 +4932,14 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5687,15 +4953,11 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -5709,15 +4971,11 @@ public Builder setErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -5733,17 +4991,14 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5757,17 +5012,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -5778,15 +5030,11 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderFor return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -5800,21 +5048,18 @@ public Builder addErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -5822,15 +5067,11 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -5843,15 +5084,11 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -5864,50 +5101,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -5915,62 +5141,49 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; @@ -5978,8 +5191,6 @@ public java.util.List getErrorsBui private java.lang.Object customerManagedEncryptionKey_ = ""; /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5987,18 +5198,13 @@ public java.util.List getErrorsBui
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the customerManagedEncryptionKey field is set. */ public boolean hasCustomerManagedEncryptionKey() { return ((bitField0_ & 0x00000800) != 0); } /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -6006,16 +5212,14 @@ public boolean hasCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The customerManagedEncryptionKey. */ public java.lang.String getCustomerManagedEncryptionKey() { java.lang.Object ref = customerManagedEncryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerManagedEncryptionKey_ = s; return s; @@ -6024,8 +5228,6 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -6033,17 +5235,16 @@ public java.lang.String getCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for customerManagedEncryptionKey. */ - public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { + public com.google.protobuf.ByteString + getCustomerManagedEncryptionKeyBytes() { java.lang.Object ref = customerManagedEncryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customerManagedEncryptionKey_ = b; return b; } else { @@ -6051,8 +5252,6 @@ public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { } } /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -6060,25 +5259,19 @@ public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() {
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The customerManagedEncryptionKey to set. * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomerManagedEncryptionKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } customerManagedEncryptionKey_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -6086,10 +5279,7 @@ public Builder setCustomerManagedEncryptionKey(java.lang.String value) {
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return This builder for chaining. */ public Builder clearCustomerManagedEncryptionKey() { @@ -6099,8 +5289,6 @@ public Builder clearCustomerManagedEncryptionKey() { return this; } /** - * - * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -6108,26 +5296,22 @@ public Builder clearCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @param value The bytes for customerManagedEncryptionKey to set. * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCustomerManagedEncryptionKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); customerManagedEncryptionKey_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -6137,12 +5321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream) private static final com.google.cloud.datastream.v1.Stream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream(); } @@ -6151,27 +5335,27 @@ public static com.google.cloud.datastream.v1.Stream getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -6186,4 +5370,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java index 50b7eccebe96..ef9ffad643fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * A specific stream object (e.g a specific DB table).
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StreamObject} */ -public final class StreamObject extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamObject extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StreamObject) StreamObjectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamObject.newBuilder() to construct. private StreamObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamObject() { name_ = ""; displayName_ = ""; @@ -45,43 +27,38 @@ private StreamObject() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamObject(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StreamObject.class, - com.google.cloud.datastream.v1.StreamObject.Builder.class); + com.google.cloud.datastream.v1.StreamObject.class, com.google.cloud.datastream.v1.StreamObject.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,15 +100,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -139,15 +112,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -155,14 +124,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -172,15 +138,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -188,15 +150,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -204,14 +162,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -219,18 +174,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -239,29 +190,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -270,97 +221,74 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ERRORS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { return errors_.get(index); } public static final int BACKFILL_JOB_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.BackfillJob backfillJob_; /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return Whether the backfillJob field is set. */ @java.lang.Override @@ -368,25 +296,18 @@ public boolean hasBackfillJob() { return backfillJob_ != null; } /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return The backfillJob. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { - return backfillJob_ == null - ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() - : backfillJob_; + return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; } /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
@@ -395,22 +316,17 @@ public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() { - return backfillJob_ == null - ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() - : backfillJob_; + return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; } public static final int SOURCE_OBJECT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_; /** - * - * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return Whether the sourceObject field is set. */ @java.lang.Override @@ -418,25 +334,18 @@ public boolean hasSourceObject() { return sourceObject_ != null; } /** - * - * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return The sourceObject. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { - return sourceObject_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObject_; + return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; } /** - * - * *
    * The object identifier in the data source.
    * 
@@ -445,13 +354,10 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() { - return sourceObject_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObject_; + return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -463,7 +369,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -498,22 +405,27 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, errors_.get(i)); } if (backfillJob_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBackfillJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getBackfillJob()); } if (sourceObject_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceObject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSourceObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -523,32 +435,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StreamObject)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StreamObject other = - (com.google.cloud.datastream.v1.StreamObject) obj; + com.google.cloud.datastream.v1.StreamObject other = (com.google.cloud.datastream.v1.StreamObject) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (hasBackfillJob() != other.hasBackfillJob()) return false; if (hasBackfillJob()) { - if (!getBackfillJob().equals(other.getBackfillJob())) return false; + if (!getBackfillJob() + .equals(other.getBackfillJob())) return false; } if (hasSourceObject() != other.hasSourceObject()) return false; if (hasSourceObject()) { - if (!getSourceObject().equals(other.getSourceObject())) return false; + if (!getSourceObject() + .equals(other.getSourceObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -590,136 +508,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.StreamObject parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.StreamObject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A specific stream object (e.g a specific DB table).
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StreamObject} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StreamObject) com.google.cloud.datastream.v1.StreamObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StreamObject.class, - com.google.cloud.datastream.v1.StreamObject.Builder.class); + com.google.cloud.datastream.v1.StreamObject.class, com.google.cloud.datastream.v1.StreamObject.Builder.class); } // Construct using com.google.cloud.datastream.v1.StreamObject.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -757,9 +669,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override @@ -778,12 +690,9 @@ public com.google.cloud.datastream.v1.StreamObject build() { @java.lang.Override public com.google.cloud.datastream.v1.StreamObject buildPartial() { - com.google.cloud.datastream.v1.StreamObject result = - new com.google.cloud.datastream.v1.StreamObject(this); + com.google.cloud.datastream.v1.StreamObject result = new com.google.cloud.datastream.v1.StreamObject(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -806,21 +715,27 @@ private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.backfillJob_ = - backfillJobBuilder_ == null ? backfillJob_ : backfillJobBuilder_.build(); + result.backfillJob_ = backfillJobBuilder_ == null + ? backfillJob_ + : backfillJobBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.sourceObject_ = - sourceObjectBuilder_ == null ? sourceObject_ : sourceObjectBuilder_.build(); + result.sourceObject_ = sourceObjectBuilder_ == null + ? sourceObject_ + : sourceObjectBuilder_.build(); } } @@ -828,39 +743,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StreamObject) { - return mergeFrom((com.google.cloud.datastream.v1.StreamObject) other); + return mergeFrom((com.google.cloud.datastream.v1.StreamObject)other); } else { super.mergeFrom(other); return this; @@ -903,10 +817,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000010); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -944,62 +857,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: - { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: - { - input.readMessage(getBackfillJobFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: - { - input.readMessage(getSourceObjectFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + input.readMessage( + getBackfillJobFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + input.readMessage( + getSourceObjectFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1009,25 +923,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1036,21 +947,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1058,35 +968,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1096,21 +999,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1120,58 +1019,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1187,17 +1067,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1208,21 +1085,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1235,15 +1108,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1256,15 +1125,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1272,48 +1137,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation time of the object.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1321,58 +1174,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1388,17 +1222,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1409,21 +1240,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1436,15 +1263,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1457,15 +1280,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1473,48 +1292,36 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update time of the object.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1522,20 +1329,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1544,21 +1349,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1566,35 +1370,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1604,21 +1401,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; @@ -1627,31 +1420,23 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> - errorsBuilder_; + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -1661,15 +1446,11 @@ public java.util.List getErrorsList() { } } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -1679,15 +1460,11 @@ public int getErrorsCount() { } } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -1697,17 +1474,14 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1721,15 +1495,11 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1743,15 +1513,11 @@ public Builder setErrors( return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -1767,17 +1533,14 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1791,17 +1554,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -1812,15 +1572,11 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderFor return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1834,21 +1590,18 @@ public Builder addErrors( return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1856,15 +1609,11 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -1877,15 +1626,11 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -1898,50 +1643,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1949,62 +1683,49 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int inde } } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Active errors on the object.
      * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, - com.google.cloud.datastream.v1.Error.Builder, - com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; @@ -2012,47 +1733,34 @@ public java.util.List getErrorsBui private com.google.cloud.datastream.v1.BackfillJob backfillJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, - com.google.cloud.datastream.v1.BackfillJob.Builder, - com.google.cloud.datastream.v1.BackfillJobOrBuilder> - backfillJobBuilder_; + com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder> backfillJobBuilder_; /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return Whether the backfillJob field is set. */ public boolean hasBackfillJob() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return The backfillJob. */ public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { if (backfillJobBuilder_ == null) { - return backfillJob_ == null - ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() - : backfillJob_; + return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; } else { return backfillJobBuilder_.getMessage(); } } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2073,8 +1781,6 @@ public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) return this; } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2093,8 +1799,6 @@ public Builder setBackfillJob( return this; } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2103,9 +1807,9 @@ public Builder setBackfillJob( */ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) { if (backfillJobBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && backfillJob_ != null - && backfillJob_ != com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + backfillJob_ != null && + backfillJob_ != com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) { getBackfillJobBuilder().mergeFrom(value); } else { backfillJob_ = value; @@ -2118,8 +1822,6 @@ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value return this; } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2137,8 +1839,6 @@ public Builder clearBackfillJob() { return this; } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2151,8 +1851,6 @@ public com.google.cloud.datastream.v1.BackfillJob.Builder getBackfillJobBuilder( return getBackfillJobFieldBuilder().getBuilder(); } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2163,14 +1861,11 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild if (backfillJobBuilder_ != null) { return backfillJobBuilder_.getMessageOrBuilder(); } else { - return backfillJob_ == null - ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() - : backfillJob_; + return backfillJob_ == null ? + com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; } } /** - * - * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -2178,17 +1873,14 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, - com.google.cloud.datastream.v1.BackfillJob.Builder, - com.google.cloud.datastream.v1.BackfillJobOrBuilder> + com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder> getBackfillJobFieldBuilder() { if (backfillJobBuilder_ == null) { - backfillJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, - com.google.cloud.datastream.v1.BackfillJob.Builder, - com.google.cloud.datastream.v1.BackfillJobOrBuilder>( - getBackfillJob(), getParentForChildren(), isClean()); + backfillJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder>( + getBackfillJob(), + getParentForChildren(), + isClean()); backfillJob_ = null; } return backfillJobBuilder_; @@ -2196,47 +1888,34 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> - sourceObjectBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> sourceObjectBuilder_; /** - * - * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return Whether the sourceObject field is set. */ public boolean hasSourceObject() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return The sourceObject. */ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { if (sourceObjectBuilder_ == null) { - return sourceObject_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObject_; + return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; } else { return sourceObjectBuilder_.getMessage(); } } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2257,8 +1936,6 @@ public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdenti return this; } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2277,8 +1954,6 @@ public Builder setSourceObject( return this; } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2287,10 +1962,9 @@ public Builder setSourceObject( */ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && sourceObject_ != null - && sourceObject_ - != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + sourceObject_ != null && + sourceObject_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { getSourceObjectBuilder().mergeFrom(value); } else { sourceObject_ = value; @@ -2303,8 +1977,6 @@ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIden return this; } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2322,8 +1994,6 @@ public Builder clearSourceObject() { return this; } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2336,27 +2006,21 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceOb return getSourceObjectFieldBuilder().getBuilder(); } /** - * - * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder - getSourceObjectOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() { if (sourceObjectBuilder_ != null) { return sourceObjectBuilder_.getMessageOrBuilder(); } else { - return sourceObject_ == null - ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() - : sourceObject_; + return sourceObject_ == null ? + com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; } } /** - * - * *
      * The object identifier in the data source.
      * 
@@ -2364,24 +2028,21 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceOb * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> getSourceObjectFieldBuilder() { if (sourceObjectBuilder_ == null) { - sourceObjectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( - getSourceObject(), getParentForChildren(), isClean()); + sourceObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( + getSourceObject(), + getParentForChildren(), + isClean()); sourceObject_ = null; } return sourceObjectBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2391,12 +2052,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StreamObject) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StreamObject) private static final com.google.cloud.datastream.v1.StreamObject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StreamObject(); } @@ -2405,27 +2066,27 @@ public static com.google.cloud.datastream.v1.StreamObject getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2440,4 +2101,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StreamObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java index b99264eb7590..1551449c56db 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java @@ -1,242 +1,169 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface StreamObjectOrBuilder - extends +public interface StreamObjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StreamObject) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1.Error getErrors(int index); /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getErrorsCount(); /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsOrBuilderList(); + java.util.List + getErrorsOrBuilderList(); /** - * - * *
    * Output only. Active errors on the object.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index); /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return Whether the backfillJob field is set. */ boolean hasBackfillJob(); /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; - * * @return The backfillJob. */ com.google.cloud.datastream.v1.BackfillJob getBackfillJob(); /** - * - * *
    * The latest backfill job that was initiated for the stream object.
    * 
@@ -246,32 +173,24 @@ public interface StreamObjectOrBuilder com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder(); /** - * - * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return Whether the sourceObject field is set. */ boolean hasSourceObject(); /** - * - * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; - * * @return The sourceObject. */ com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject(); /** - * - * *
    * The object identifier in the data source.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java index 6ecad59a9af1..06aac08ce642 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface StreamOrBuilder - extends +public interface StreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface StreamOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,182 +121,134 @@ public interface StreamOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ com.google.cloud.datastream.v1.SourceConfig getSourceConfig(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; - * * @return The state. */ com.google.cloud.datastream.v1.Stream.State getState(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -353,32 +259,24 @@ java.lang.String getLabelsOrDefault(
   com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder();
 
   /**
-   *
-   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ boolean hasBackfillNone(); /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone(); /** - * - * *
    * Do not automatically backfill any objects.
    * 
@@ -388,69 +286,50 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1.Error getErrors(int index); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getErrorsCount(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsOrBuilderList(); + java.util.List + getErrorsOrBuilderList(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index); /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -458,16 +337,11 @@ java.lang.String getLabelsOrDefault(
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return Whether the customerManagedEncryptionKey field is set. */ boolean hasCustomerManagedEncryptionKey(); /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -475,16 +349,11 @@ java.lang.String getLabelsOrDefault(
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The customerManagedEncryptionKey. */ java.lang.String getCustomerManagedEncryptionKey(); /** - * - * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -492,13 +361,11 @@ java.lang.String getLabelsOrDefault(
    * encryption key provisioned through KMS.
    * 
* - * - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; - * - * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; * @return The bytes for customerManagedEncryptionKey. */ - com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes(); + com.google.protobuf.ByteString + getCustomerManagedEncryptionKeyBytes(); public com.google.cloud.datastream.v1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java index 4e41b902cf07..fd9b96268048 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java @@ -1,78 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Connection profile update message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateConnectionProfileRequest} */ -public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -81,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -91,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -101,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -111,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -121,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -132,16 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -149,49 +113,33 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -207,7 +155,6 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -216,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -240,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -259,15 +206,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
-   * Optional. Only validate the connection profile, but don't update any resources.
-   * The default is false.
+   * Optional. Only validate the connection profile, but don't update any
+   * resources. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -278,14 +222,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** - * - * *
    * Optional. Update the connection profile without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -294,7 +235,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -306,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -332,19 +273,23 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -354,25 +299,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other = - (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other = (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -395,145 +344,140 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Connection profile update message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.UpdateConnectionProfileRequest) com.google.cloud.datastream.v1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -555,14 +499,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance(); } @@ -577,26 +520,23 @@ public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = - new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.connectionProfile_ = - connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -613,39 +553,38 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; @@ -653,9 +592,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -699,44 +636,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -746,18 +680,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -766,17 +694,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -785,23 +709,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -810,8 +728,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -827,8 +744,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -837,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -851,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -861,14 +774,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -881,8 +793,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -891,8 +801,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -905,8 +814,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -915,8 +822,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -924,8 +830,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -934,21 +838,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -957,21 +857,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -979,58 +875,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -1046,15 +923,11 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { @@ -1068,22 +941,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && connectionProfile_ != null - && connectionProfile_ - != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + connectionProfile_ != null && + connectionProfile_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -1096,15 +964,11 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1117,15 +981,11 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000002; @@ -1133,49 +993,36 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The connection profile to update.
      * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, - com.google.cloud.datastream.v1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1183,8 +1030,6 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1200,13 +1045,13 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1215,8 +1060,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1232,14 +1075,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1247,8 +1091,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1264,22 +1106,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1295,7 +1133,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1305,8 +1142,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1322,14 +1157,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1337,17 +1170,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
-     * Optional. Only validate the connection profile, but don't update any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1355,35 +1185,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
-     * Optional. Only validate the connection profile, but don't update any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. Only validate the connection profile, but don't update any resources.
-     * The default is false.
+     * Optional. Only validate the connection profile, but don't update any
+     * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1393,16 +1217,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1410,33 +1231,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1445,9 +1260,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1457,13 +1272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.UpdateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.UpdateConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(); } @@ -1472,27 +1286,27 @@ public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,4 +1321,6 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java similarity index 76% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java index cdd173161b0a..f379a1f00a1c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface UpdateConnectionProfileRequestOrBuilder - extends +public interface UpdateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The connection profile to update.
    * 
* - * - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,34 +108,28 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
-   * Optional. Only validate the connection profile, but don't update any resources.
-   * The default is false.
+   * Optional. Only validate the connection profile, but don't update any
+   * resources. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Update the connection profile without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java index 77cc04865c28..84bdace42480 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java @@ -1,77 +1,56 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Request message for updating a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateStreamRequest} */ -public final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateStreamRequest) UpdateStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateStreamRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateStreamRequest.class, - com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateStreamRequest.class, com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -80,9 +59,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -90,8 +67,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -100,9 +75,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -110,8 +83,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -120,8 +91,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -131,15 +101,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.Stream stream_; /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -147,15 +113,11 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ @java.lang.Override @@ -163,14 +125,11 @@ public com.google.cloud.datastream.v1.Stream getStream() { return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { @@ -178,12 +137,9 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -199,7 +155,6 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -208,15 +163,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,15 +186,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -251,15 +206,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
-   * Optional. Only validate the stream with the changes, without actually updating it.
-   * The default is false.
+   * Optional. Only validate the stream with the changes, without actually
+   * updating it. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -270,14 +222,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** - * - * *
    * Optional. Update the stream without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -286,7 +235,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -298,7 +246,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -324,19 +273,23 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,25 +299,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.UpdateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.UpdateStreamRequest other = - (com.google.cloud.datastream.v1.UpdateStreamRequest) obj; + com.google.cloud.datastream.v1.UpdateStreamRequest other = (com.google.cloud.datastream.v1.UpdateStreamRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -387,144 +344,140 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.UpdateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for updating a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.UpdateStreamRequest) com.google.cloud.datastream.v1.UpdateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateStreamRequest.class, - com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateStreamRequest.class, com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.UpdateStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto - .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override @@ -567,11 +520,8 @@ public com.google.cloud.datastream.v1.UpdateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.UpdateStreamRequest buildPartial() { - com.google.cloud.datastream.v1.UpdateStreamRequest result = - new com.google.cloud.datastream.v1.UpdateStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.UpdateStreamRequest result = new com.google.cloud.datastream.v1.UpdateStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -579,10 +529,14 @@ public com.google.cloud.datastream.v1.UpdateStreamRequest buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.UpdateStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -599,39 +553,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.UpdateStreamRequest re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.UpdateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.UpdateStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1.UpdateStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -639,8 +592,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateStreamRequest other) { - if (other == com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -684,43 +636,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -730,18 +680,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -750,17 +694,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -769,23 +709,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -794,8 +728,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -811,8 +744,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -821,10 +752,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -835,8 +766,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -845,14 +774,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -865,8 +793,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -875,8 +801,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -889,8 +814,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -899,8 +822,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -908,8 +830,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -918,21 +838,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -941,21 +857,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -963,58 +875,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ public com.google.cloud.datastream.v1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { @@ -1030,17 +923,14 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -1051,21 +941,17 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderFo return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && stream_ != null - && stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + stream_ != null && + stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1078,15 +964,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1099,15 +981,11 @@ public Builder clearStream() { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000002; @@ -1115,48 +993,36 @@ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, - com.google.cloud.datastream.v1.Stream.Builder, - com.google.cloud.datastream.v1.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; @@ -1164,8 +1030,6 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1181,13 +1045,13 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1196,8 +1060,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1213,14 +1075,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1228,8 +1091,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1245,22 +1106,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1276,7 +1133,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1286,8 +1142,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1303,14 +1157,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1318,17 +1170,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
-     * Optional. Only validate the stream with the changes, without actually updating it.
-     * The default is false.
+     * Optional. Only validate the stream with the changes, without actually
+     * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1336,35 +1185,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
-     * Optional. Only validate the stream with the changes, without actually updating it.
-     * The default is false.
+     * Optional. Only validate the stream with the changes, without actually
+     * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
-     * Optional. Only validate the stream with the changes, without actually updating it.
-     * The default is false.
+     * Optional. Only validate the stream with the changes, without actually
+     * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1374,16 +1217,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1391,33 +1231,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1426,9 +1260,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1438,12 +1272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.UpdateStreamRequest) private static final com.google.cloud.datastream.v1.UpdateStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UpdateStreamRequest(); } @@ -1452,27 +1286,27 @@ public static com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1487,4 +1321,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java similarity index 80% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java index 3daa8f061aa1..5f2d92551adf 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface UpdateStreamRequestOrBuilder - extends +public interface UpdateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -68,52 +42,38 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1.Stream getStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -129,13 +89,10 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -151,34 +108,28 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
-   * Optional. Only validate the stream with the changes, without actually updating it.
-   * The default is false.
+   * Optional. Only validate the stream with the changes, without actually
+   * updating it. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Update the stream without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java index fe5e92fa29a2..3dd421eceea9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * A validation to perform on a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Validation} */ -public final class Validation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Validation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Validation) ValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Validation.newBuilder() to construct. private Validation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Validation() { description_ = ""; state_ = 0; @@ -46,43 +28,39 @@ private Validation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Validation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Validation.class, - com.google.cloud.datastream.v1.Validation.Builder.class); + com.google.cloud.datastream.v1.Validation.class, com.google.cloud.datastream.v1.Validation.Builder.class); } /** - * - * *
    * Validation execution state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.Validation.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified state.
      * 
@@ -91,8 +69,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * Validation did not execute.
      * 
@@ -101,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ NOT_EXECUTED(1), /** - * - * *
      * Validation failed.
      * 
@@ -111,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(2), /** - * - * *
      * Validation passed.
      * 
@@ -124,8 +96,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified state.
      * 
@@ -134,8 +104,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Validation did not execute.
      * 
@@ -144,8 +112,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_EXECUTED_VALUE = 1; /** - * - * *
      * Validation failed.
      * 
@@ -154,8 +120,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 2; /** - * - * *
      * Validation passed.
      * 
@@ -164,6 +128,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PASSED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -188,51 +153,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return NOT_EXECUTED; - case 2: - return FAILED; - case 3: - return PASSED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return NOT_EXECUTED; + case 2: return FAILED; + case 3: return PASSED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.Validation.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -250,18 +214,14 @@ private State(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -270,29 +230,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -303,45 +263,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1.Validation.State getState() { - com.google.cloud.datastream.v1.Validation.State result = - com.google.cloud.datastream.v1.Validation.State.forNumber(state_); + @java.lang.Override public com.google.cloud.datastream.v1.Validation.State getState() { + com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Validation.State.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List message_; /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -353,8 +301,6 @@ public java.util.List getMessa return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -362,13 +308,11 @@ public java.util.List getMessa * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessageOrBuilderList() { return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -380,8 +324,6 @@ public int getMessageCount() { return message_.size(); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -393,8 +335,6 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { return message_.get(index); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -402,23 +342,20 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder(int index) { + public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( + int index) { return message_.get(index); } public static final int CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The code. */ @java.lang.Override @@ -427,29 +364,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -458,7 +395,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,7 +406,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -496,10 +433,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (state_ != com.google.cloud.datastream.v1.Validation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, state_); } for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, message_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, message_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -512,18 +451,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Validation)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Validation other = - (com.google.cloud.datastream.v1.Validation) obj; + com.google.cloud.datastream.v1.Validation other = (com.google.cloud.datastream.v1.Validation) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getMessageList().equals(other.getMessageList())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!getMessageList() + .equals(other.getMessageList())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -550,136 +491,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Validation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Validation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Validation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Validation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.Validation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Validation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Validation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Validation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Validation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A validation to perform on a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Validation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Validation) com.google.cloud.datastream.v1.ValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Validation.class, - com.google.cloud.datastream.v1.Validation.Builder.class); + com.google.cloud.datastream.v1.Validation.class, com.google.cloud.datastream.v1.Validation.Builder.class); } // Construct using com.google.cloud.datastream.v1.Validation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -698,9 +633,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_Validation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override @@ -719,12 +654,9 @@ public com.google.cloud.datastream.v1.Validation build() { @java.lang.Override public com.google.cloud.datastream.v1.Validation buildPartial() { - com.google.cloud.datastream.v1.Validation result = - new com.google.cloud.datastream.v1.Validation(this); + com.google.cloud.datastream.v1.Validation result = new com.google.cloud.datastream.v1.Validation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -758,39 +690,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.Validation result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Validation) { - return mergeFrom((com.google.cloud.datastream.v1.Validation) other); + return mergeFrom((com.google.cloud.datastream.v1.Validation)other); } else { super.mergeFrom(other); return this; @@ -825,10 +756,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Validation other) { messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000004); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessageFieldBuilder() - : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageFieldBuilder() : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -865,45 +795,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.cloud.datastream.v1.ValidationMessage m = - input.readMessage( - com.google.cloud.datastream.v1.ValidationMessage.parser(), - extensionRegistry); - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(m); - } else { - messageBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.cloud.datastream.v1.ValidationMessage m = + input.readMessage( + com.google.cloud.datastream.v1.ValidationMessage.parser(), + extensionRegistry); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(m); + } else { + messageBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -913,25 +838,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object description_ = ""; /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -940,21 +862,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -962,35 +883,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -1000,21 +914,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -1024,29 +934,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1057,31 +960,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.Validation.State getState() { - com.google.cloud.datastream.v1.Validation.State result = - com.google.cloud.datastream.v1.Validation.State.forNumber(state_); + com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Validation.State.UNRECOGNIZED : result; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1095,14 +991,11 @@ public Builder setState(com.google.cloud.datastream.v1.Validation.State value) { return this; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return This builder for chaining. */ public Builder clearState() { @@ -1113,25 +1006,18 @@ public Builder clearState() { } private java.util.List message_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - message_ = - new java.util.ArrayList(message_); + message_ = new java.util.ArrayList(message_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, - com.google.cloud.datastream.v1.ValidationMessage.Builder, - com.google.cloud.datastream.v1.ValidationMessageOrBuilder> - messageBuilder_; + com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder> messageBuilder_; /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1146,8 +1032,6 @@ public java.util.List getMessa } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1162,8 +1046,6 @@ public int getMessageCount() { } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1178,15 +1060,14 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { } } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public Builder setMessage(int index, com.google.cloud.datastream.v1.ValidationMessage value) { + public Builder setMessage( + int index, com.google.cloud.datastream.v1.ValidationMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1200,8 +1081,6 @@ public Builder setMessage(int index, com.google.cloud.datastream.v1.ValidationMe return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1220,8 +1099,6 @@ public Builder setMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1242,15 +1119,14 @@ public Builder addMessage(com.google.cloud.datastream.v1.ValidationMessage value return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public Builder addMessage(int index, com.google.cloud.datastream.v1.ValidationMessage value) { + public Builder addMessage( + int index, com.google.cloud.datastream.v1.ValidationMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1264,8 +1140,6 @@ public Builder addMessage(int index, com.google.cloud.datastream.v1.ValidationMe return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1284,8 +1158,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1304,8 +1176,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1316,7 +1186,8 @@ public Builder addAllMessage( java.lang.Iterable values) { if (messageBuilder_ == null) { ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, message_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, message_); onChanged(); } else { messageBuilder_.addAllMessages(values); @@ -1324,8 +1195,6 @@ public Builder addAllMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1343,8 +1212,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1362,20 +1229,17 @@ public Builder removeMessage(int index) { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilder(int index) { + public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilder( + int index) { return getMessageFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1385,22 +1249,19 @@ public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilde public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { - return message_.get(index); - } else { + return message_.get(index); } else { return messageBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public java.util.List - getMessageOrBuilderList() { + public java.util.List + getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { @@ -1408,8 +1269,6 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1417,48 +1276,42 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder().addBuilder( + com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder(int index) { - return getMessageFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); + public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder( + int index) { + return getMessageFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public java.util.List - getMessageBuilderList() { + public java.util.List + getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, - com.google.cloud.datastream.v1.ValidationMessage.Builder, - com.google.cloud.datastream.v1.ValidationMessageOrBuilder> + com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, - com.google.cloud.datastream.v1.ValidationMessage.Builder, - com.google.cloud.datastream.v1.ValidationMessageOrBuilder>( - message_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder>( + message_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; @@ -1466,20 +1319,18 @@ public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilde private java.lang.Object code_ = ""; /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1488,21 +1339,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1510,35 +1360,28 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1548,30 +1391,26 @@ public Builder clearCode() { return this; } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1581,12 +1420,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Validation) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Validation) private static final com.google.cloud.datastream.v1.Validation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Validation(); } @@ -1595,27 +1434,27 @@ public static com.google.cloud.datastream.v1.Validation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Validation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1630,4 +1469,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java index bb166c414666..b8e47b5068ba 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Represent user-facing validation result message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationMessage} */ -public final class ValidationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationMessage) ValidationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidationMessage.newBuilder() to construct. private ValidationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidationMessage() { message_ = ""; level_ = 0; @@ -45,54 +27,51 @@ private ValidationMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationMessage.class, - com.google.cloud.datastream.v1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1.ValidationMessage.class, com.google.cloud.datastream.v1.ValidationMessage.Builder.class); } /** - * - * *
    * Validation message level.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.ValidationMessage.Level} */ - public enum Level implements com.google.protobuf.ProtocolMessageEnum { + public enum Level + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified level.
      * 
@@ -101,8 +80,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ LEVEL_UNSPECIFIED(0), /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -111,8 +88,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(1), /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -124,8 +99,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified level.
      * 
@@ -134,8 +107,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -144,8 +115,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 1; /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -154,6 +123,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -178,49 +148,49 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return WARNING; - case 2: - return ERROR; - default: - return null; + case 0: return LEVEL_UNSPECIFIED; + case 1: return WARNING; + case 2: return ERROR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1.ValidationMessage.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -238,18 +208,14 @@ private Level(int value) { } public static final int MESSAGE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The message. */ @java.lang.Override @@ -258,29 +224,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -291,69 +257,56 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_ = 0; /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The level. */ - @java.lang.Override - public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1.ValidationMessage.Level result = - com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); - return result == null - ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { + com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); + return result == null ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED : result; } public static final int METADATA_FIELD_NUMBER = 3; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -361,21 +314,20 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -387,8 +339,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -396,19 +346,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -416,11 +364,11 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -428,18 +376,14 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public static final int CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The code. */ @java.lang.Override @@ -448,29 +392,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -479,7 +423,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -491,16 +434,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (level_ - != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + if (level_ != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, level_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -516,19 +463,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (level_ - != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); + if (level_ != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, level_); } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -541,18 +488,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ValidationMessage)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ValidationMessage other = - (com.google.cloud.datastream.v1.ValidationMessage) obj; + com.google.cloud.datastream.v1.ValidationMessage other = (com.google.cloud.datastream.v1.ValidationMessage) obj; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (level_ != other.level_) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -579,156 +528,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ValidationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represent user-facing validation result message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ValidationMessage) com.google.cloud.datastream.v1.ValidationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationMessage.class, - com.google.cloud.datastream.v1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1.ValidationMessage.class, com.google.cloud.datastream.v1.ValidationMessage.Builder.class); } // Construct using com.google.cloud.datastream.v1.ValidationMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -741,9 +686,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @java.lang.Override @@ -762,11 +707,8 @@ public com.google.cloud.datastream.v1.ValidationMessage build() { @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage buildPartial() { - com.google.cloud.datastream.v1.ValidationMessage result = - new com.google.cloud.datastream.v1.ValidationMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1.ValidationMessage result = new com.google.cloud.datastream.v1.ValidationMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -792,39 +734,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ValidationMessage resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ValidationMessage) { - return mergeFrom((com.google.cloud.datastream.v1.ValidationMessage) other); + return mergeFrom((com.google.cloud.datastream.v1.ValidationMessage)other); } else { super.mergeFrom(other); return this; @@ -832,8 +773,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationMessage other) { - if (other == com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; @@ -842,7 +782,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationMessage other) if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); bitField0_ |= 0x00000004; if (!other.getCode().isEmpty()) { code_ = other.code_; @@ -875,43 +816,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - level_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + level_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -921,25 +855,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object message_ = ""; /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -948,21 +879,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -970,35 +900,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1008,21 +931,17 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; @@ -1032,29 +951,22 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private int level_ = 0; /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -1065,33 +977,24 @@ public Builder setLevelValue(int value) { return this; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The level. */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1.ValidationMessage.Level result = - com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); - return result == null - ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); + return result == null ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED : result; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @param value The level to set. * @return This builder for chaining. */ @@ -1105,14 +1008,11 @@ public Builder setLevel(com.google.cloud.datastream.v1.ValidationMessage.Level v return this; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return This builder for chaining. */ public Builder clearLevel() { @@ -1122,20 +1022,21 @@ public Builder clearLevel() { return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField internalGetMutableMetadata() { if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1144,13 +1045,10 @@ private com.google.protobuf.MapField interna onChanged(); return metadata_; } - public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1158,21 +1056,20 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1184,8 +1081,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1193,19 +1088,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1213,95 +1106,91 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMetadata().getMutableMap().clear(); + internalGetMutableMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableMetadata() { + public java.util.Map + getMutableMetadata() { bitField0_ |= 0x00000004; return internalGetMutableMetadata().getMutableMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMetadata().getMutableMap().put(key, value); + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object code_ = ""; /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1310,21 +1199,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1332,35 +1220,28 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1370,30 +1251,26 @@ public Builder clearCode() { return this; } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1403,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ValidationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ValidationMessage) private static final com.google.cloud.datastream.v1.ValidationMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ValidationMessage(); } @@ -1417,27 +1294,27 @@ public static com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1452,4 +1329,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java index 5d58734596db..f09e4b3bf13d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java @@ -1,81 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ValidationMessageOrBuilder - extends +public interface ValidationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ValidationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; - * * @return The level. */ com.google.cloud.datastream.v1.ValidationMessage.Level getLevel(); /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -84,31 +55,30 @@ public interface ValidationMessageOrBuilder */ int getMetadataCount(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -116,43 +86,37 @@ public interface ValidationMessageOrBuilder * map<string, string> metadata = 3; */ /* nullable */ - java.lang.String getMetadataOrDefault( +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.lang.String getMetadataOrThrow(java.lang.String key); + java.lang.String getMetadataOrThrow( + java.lang.String key); /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java index 83411d0ed319..7ab98b63636d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ValidationOrBuilder - extends +public interface ValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Validation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; - * * @return The state. */ com.google.cloud.datastream.v1.Validation.State getState(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - java.util.List getMessageList(); + java.util.List + getMessageList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -94,8 +64,6 @@ public interface ValidationOrBuilder */ com.google.cloud.datastream.v1.ValidationMessage getMessage(int index); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -104,49 +72,41 @@ public interface ValidationOrBuilder */ int getMessageCount(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - java.util.List + java.util.List getMessageOrBuilderList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder(int index); + com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( + int index); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java index 295c949ba7ec..fe24c5f7570c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** - * - * *
  * Contains the current validation results.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationResult} */ -public final class ValidationResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidationResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationResult) ValidationResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidationResult.newBuilder() to construct. private ValidationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidationResult() { validations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationResult.class, - com.google.cloud.datastream.v1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1.ValidationResult.class, com.google.cloud.datastream.v1.ValidationResult.Builder.class); } public static final int VALIDATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List validations_; /** - * - * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -86,8 +64,6 @@ public java.util.List getValidationsL
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -96,13 +72,11 @@ public java.util.List getValidationsL
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getValidationsOrBuilderList() {
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -115,8 +89,6 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -129,8 +101,6 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
     return validations_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -139,12 +109,12 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index) {
+  public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
+      int index) {
     return validations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -156,7 +126,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -170,7 +141,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < validations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, validations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -180,15 +152,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.ValidationResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.ValidationResult other =
-        (com.google.cloud.datastream.v1.ValidationResult) obj;
+    com.google.cloud.datastream.v1.ValidationResult other = (com.google.cloud.datastream.v1.ValidationResult) obj;
 
-    if (!getValidationsList().equals(other.getValidationsList())) return false;
+    if (!getValidationsList()
+        .equals(other.getValidationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -209,136 +181,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.ValidationResult parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1.ValidationResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Contains the current validation results.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ValidationResult) com.google.cloud.datastream.v1.ValidationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationResult.class, - com.google.cloud.datastream.v1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1.ValidationResult.class, com.google.cloud.datastream.v1.ValidationResult.Builder.class); } // Construct using com.google.cloud.datastream.v1.ValidationResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto - .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override @@ -375,18 +341,14 @@ public com.google.cloud.datastream.v1.ValidationResult build() { @java.lang.Override public com.google.cloud.datastream.v1.ValidationResult buildPartial() { - com.google.cloud.datastream.v1.ValidationResult result = - new com.google.cloud.datastream.v1.ValidationResult(this); + com.google.cloud.datastream.v1.ValidationResult result = new com.google.cloud.datastream.v1.ValidationResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1.ValidationResult result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ValidationResult result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -406,39 +368,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.ValidationResult resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ValidationResult) { - return mergeFrom((com.google.cloud.datastream.v1.ValidationResult) other); + return mergeFrom((com.google.cloud.datastream.v1.ValidationResult)other); } else { super.mergeFrom(other); return this; @@ -446,8 +407,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationResult other) { - if (other == com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) return this; if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { @@ -466,10 +426,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationResult other) validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000001); - validationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValidationsFieldBuilder() - : null; + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidationsFieldBuilder() : null; } else { validationsBuilder_.addAllMessages(other.validations_); } @@ -501,26 +460,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1.Validation m = - input.readMessage( - com.google.cloud.datastream.v1.Validation.parser(), extensionRegistry); - if (validationsBuilder_ == null) { - ensureValidationsIsMutable(); - validations_.add(m); - } else { - validationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1.Validation m = + input.readMessage( + com.google.cloud.datastream.v1.Validation.parser(), + extensionRegistry); + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(m); + } else { + validationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -530,29 +488,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List validations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - validations_ = - new java.util.ArrayList(validations_); + validations_ = new java.util.ArrayList(validations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Validation, - com.google.cloud.datastream.v1.Validation.Builder, - com.google.cloud.datastream.v1.ValidationOrBuilder> - validationsBuilder_; + com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder> validationsBuilder_; /** - * - * *
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -568,8 +518,6 @@ public java.util.List getValidationsL
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -585,8 +533,6 @@ public int getValidationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -602,8 +548,6 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -611,7 +555,8 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public Builder setValidations(int index, com.google.cloud.datastream.v1.Validation value) {
+    public Builder setValidations(
+        int index, com.google.cloud.datastream.v1.Validation value) {
       if (validationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -625,8 +570,6 @@ public Builder setValidations(int index, com.google.cloud.datastream.v1.Validati
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -646,8 +589,6 @@ public Builder setValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -669,8 +610,6 @@ public Builder addValidations(com.google.cloud.datastream.v1.Validation value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -678,7 +617,8 @@ public Builder addValidations(com.google.cloud.datastream.v1.Validation value) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public Builder addValidations(int index, com.google.cloud.datastream.v1.Validation value) {
+    public Builder addValidations(
+        int index, com.google.cloud.datastream.v1.Validation value) {
       if (validationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -692,8 +632,6 @@ public Builder addValidations(int index, com.google.cloud.datastream.v1.Validati
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -713,8 +651,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -734,8 +670,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -747,7 +681,8 @@ public Builder addAllValidations(
         java.lang.Iterable values) {
       if (validationsBuilder_ == null) {
         ensureValidationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, validations_);
         onChanged();
       } else {
         validationsBuilder_.addAllMessages(values);
@@ -755,8 +690,6 @@ public Builder addAllValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -775,8 +708,6 @@ public Builder clearValidations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -795,8 +726,6 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -804,12 +733,11 @@ public Builder removeValidations(int index) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(int index) {
+    public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(
+        int index) {
       return getValidationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -817,16 +745,14 @@ public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(i
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index) {
+    public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
+        int index) {
       if (validationsBuilder_ == null) {
-        return validations_.get(index);
-      } else {
+        return validations_.get(index);  } else {
         return validationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -834,8 +760,8 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public java.util.List
-        getValidationsOrBuilderList() {
+    public java.util.List 
+         getValidationsOrBuilderList() {
       if (validationsBuilder_ != null) {
         return validationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -843,8 +769,6 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -853,12 +777,10 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
     public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder() {
-      return getValidationsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -866,13 +788,12 @@ public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder()
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(int index) {
-      return getValidationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1.Validation.getDefaultInstance());
+    public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(
+        int index) {
+      return getValidationsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -880,30 +801,27 @@ public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(i
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public java.util.List
-        getValidationsBuilderList() {
+    public java.util.List 
+         getValidationsBuilderList() {
       return getValidationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.Validation,
-            com.google.cloud.datastream.v1.Validation.Builder,
-            com.google.cloud.datastream.v1.ValidationOrBuilder>
+        com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder> 
         getValidationsFieldBuilder() {
       if (validationsBuilder_ == null) {
-        validationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1.Validation,
-                com.google.cloud.datastream.v1.Validation.Builder,
-                com.google.cloud.datastream.v1.ValidationOrBuilder>(
-                validations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder>(
+                validations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         validations_ = null;
       }
       return validationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -913,12 +831,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ValidationResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ValidationResult)
   private static final com.google.cloud.datastream.v1.ValidationResult DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ValidationResult();
   }
@@ -927,27 +845,27 @@ public static com.google.cloud.datastream.v1.ValidationResult getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ValidationResult parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ValidationResult parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -962,4 +880,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
similarity index 66%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
index 62248221b0f9..bc914cee7f4b 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface ValidationResultOrBuilder
-    extends
+public interface ValidationResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ValidationResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -33,10 +15,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  java.util.List getValidationsList();
+  java.util.List 
+      getValidationsList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -46,8 +27,6 @@ public interface ValidationResultOrBuilder
    */
   com.google.cloud.datastream.v1.Validation getValidations(int index);
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -57,8 +36,6 @@ public interface ValidationResultOrBuilder
    */
   int getValidationsCount();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -66,11 +43,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  java.util.List
+  java.util.List 
       getValidationsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -78,5 +53,6 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index);
+  com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
similarity index 66%
rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
index 8ebe725893b7..db64a6665d85 100644
--- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
+++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
- *
- *
  * 
  * The VPC Peering configuration is used to create VPC peering between
  * Datastream and the consumer's VPC.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig}
  */
-public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VpcPeeringConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.VpcPeeringConfig)
     VpcPeeringConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VpcPeeringConfig.newBuilder() to construct.
   private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VpcPeeringConfig() {
     vpc_ = "";
     subnet_ = "";
@@ -45,46 +27,39 @@ private VpcPeeringConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VpcPeeringConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.VpcPeeringConfig.class,
-            com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
+            com.google.cloud.datastream.v1.VpcPeeringConfig.class, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
   }
 
   public static final int VPC_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object vpc_ = "";
   /**
-   *
-   *
    * 
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The vpc. */ @java.lang.Override @@ -93,32 +68,30 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** - * - * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -127,18 +100,14 @@ public com.google.protobuf.ByteString getVpcBytes() { } public static final int SUBNET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object subnet_ = ""; /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ @java.lang.Override @@ -147,29 +116,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -178,7 +147,6 @@ public com.google.protobuf.ByteString getSubnetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -190,7 +158,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpc_); } @@ -220,16 +189,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.VpcPeeringConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.VpcPeeringConfig other = - (com.google.cloud.datastream.v1.VpcPeeringConfig) obj; + com.google.cloud.datastream.v1.VpcPeeringConfig other = (com.google.cloud.datastream.v1.VpcPeeringConfig) obj; - if (!getVpc().equals(other.getVpc())) return false; - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getVpc() + .equals(other.getVpc())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,104 +220,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.VpcPeeringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The VPC Peering configuration is used to create VPC peering between
    * Datastream and the consumer's VPC.
@@ -355,32 +318,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.VpcPeeringConfig)
       com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.VpcPeeringConfig.class,
-              com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
+              com.google.cloud.datastream.v1.VpcPeeringConfig.class, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -391,9 +355,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
@@ -412,11 +376,8 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.VpcPeeringConfig buildPartial() {
-      com.google.cloud.datastream.v1.VpcPeeringConfig result =
-          new com.google.cloud.datastream.v1.VpcPeeringConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1.VpcPeeringConfig result = new com.google.cloud.datastream.v1.VpcPeeringConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -435,39 +396,38 @@ private void buildPartial0(com.google.cloud.datastream.v1.VpcPeeringConfig resul
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.VpcPeeringConfig) {
-        return mergeFrom((com.google.cloud.datastream.v1.VpcPeeringConfig) other);
+        return mergeFrom((com.google.cloud.datastream.v1.VpcPeeringConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -475,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.VpcPeeringConfig other) {
-      if (other == com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) return this;
       if (!other.getVpc().isEmpty()) {
         vpc_ = other.vpc_;
         bitField0_ |= 0x00000001;
@@ -513,25 +472,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                vpc_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                subnet_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              vpc_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              subnet_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -541,28 +497,23 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object vpc_ = "";
     /**
-     *
-     *
      * 
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -571,24 +522,21 @@ public java.lang.String getVpc() { } } /** - * - * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for vpc. */ - public com.google.protobuf.ByteString getVpcBytes() { + public com.google.protobuf.ByteString + getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpc_ = b; return b; } else { @@ -596,41 +544,30 @@ public com.google.protobuf.ByteString getVpcBytes() { } } /** - * - * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpc( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vpc_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearVpc() { @@ -640,24 +577,18 @@ public Builder clearVpc() { return this; } /** - * - * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vpc_ = value; bitField0_ |= 0x00000001; @@ -667,20 +598,18 @@ public Builder setVpcBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnet_ = ""; /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -689,21 +618,20 @@ public java.lang.String getSubnet() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -711,35 +639,28 @@ public com.google.protobuf.ByteString getSubnetBytes() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSubnet() { @@ -749,30 +670,26 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,12 +699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.VpcPeeringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.VpcPeeringConfig) private static final com.google.cloud.datastream.v1.VpcPeeringConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.VpcPeeringConfig(); } @@ -796,27 +713,27 @@ public static com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -831,4 +748,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java similarity index 52% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java index ceb3ef381f1a..d4f2223f76e9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java @@ -1,81 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface VpcPeeringConfigOrBuilder - extends +public interface VpcPeeringConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.VpcPeeringConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The vpc. */ java.lang.String getVpc(); /** - * - * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for vpc. */ - com.google.protobuf.ByteString getVpcBytes(); + com.google.protobuf.ByteString + getVpcBytes(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ java.lang.String getSubnet(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - com.google.protobuf.ByteString getSubnetBytes(); + com.google.protobuf.ByteString + getSubnetBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto similarity index 92% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto index cd9770794501..bf0b13f5e2a2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/datastream/v1/datastream_resources.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -36,11 +37,13 @@ option ruby_package = "Google::Cloud::Datastream::V1"; // Datastream service service Datastream { option (google.api.default_host) = "datastream.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; // Use this method to list connection profiles created in a project and // location. - rpc ListConnectionProfiles(ListConnectionProfilesRequest) returns (ListConnectionProfilesResponse) { + rpc ListConnectionProfiles(ListConnectionProfilesRequest) + returns (ListConnectionProfilesResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/connectionProfiles" }; @@ -48,7 +51,8 @@ service Datastream { } // Use this method to get details about a connection profile. - rpc GetConnectionProfile(GetConnectionProfileRequest) returns (ConnectionProfile) { + rpc GetConnectionProfile(GetConnectionProfileRequest) + returns (ConnectionProfile) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" }; @@ -56,12 +60,14 @@ service Datastream { } // Use this method to create a connection profile in a project and location. - rpc CreateConnectionProfile(CreateConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc CreateConnectionProfile(CreateConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/connectionProfiles" body: "connection_profile" }; - option (google.api.method_signature) = "parent,connection_profile,connection_profile_id"; + option (google.api.method_signature) = + "parent,connection_profile,connection_profile_id"; option (google.longrunning.operation_info) = { response_type: "ConnectionProfile" metadata_type: "OperationMetadata" @@ -69,7 +75,8 @@ service Datastream { } // Use this method to update the parameters of a connection profile. - rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { patch: "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}" body: "connection_profile" @@ -82,7 +89,8 @@ service Datastream { } // Use this method to delete a connection profile. - rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) returns (google.longrunning.Operation) { + rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" }; @@ -97,7 +105,8 @@ service Datastream { // The discover API call exposes the data objects and metadata belonging to // the profile. Typically, a request returns children data objects of a // parent data object that's optionally supplied in the request. - rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest) returns (DiscoverConnectionProfileResponse) { + rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest) + returns (DiscoverConnectionProfileResponse) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/connectionProfiles:discover" body: "*" @@ -175,7 +184,8 @@ service Datastream { } // Use this method to list the objects of a specific stream. - rpc ListStreamObjects(ListStreamObjectsRequest) returns (ListStreamObjectsResponse) { + rpc ListStreamObjects(ListStreamObjectsRequest) + returns (ListStreamObjectsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*/streams/*}/objects" }; @@ -183,7 +193,8 @@ service Datastream { } // Use this method to start a backfill job for the specified stream object. - rpc StartBackfillJob(StartBackfillJobRequest) returns (StartBackfillJobResponse) { + rpc StartBackfillJob(StartBackfillJobRequest) + returns (StartBackfillJobResponse) { option (google.api.http) = { post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:startBackfillJob" body: "*" @@ -192,7 +203,8 @@ service Datastream { } // Use this method to stop a backfill job for the specified stream object. - rpc StopBackfillJob(StopBackfillJobRequest) returns (StopBackfillJobResponse) { + rpc StopBackfillJob(StopBackfillJobRequest) + returns (StopBackfillJobResponse) { option (google.api.http) = { post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:stopBackfillJob" body: "*" @@ -210,12 +222,14 @@ service Datastream { } // Use this method to create a private connectivity configuration. - rpc CreatePrivateConnection(CreatePrivateConnectionRequest) returns (google.longrunning.Operation) { + rpc CreatePrivateConnection(CreatePrivateConnectionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/privateConnections" body: "private_connection" }; - option (google.api.method_signature) = "parent,private_connection,private_connection_id"; + option (google.api.method_signature) = + "parent,private_connection,private_connection_id"; option (google.longrunning.operation_info) = { response_type: "PrivateConnection" metadata_type: "OperationMetadata" @@ -223,7 +237,8 @@ service Datastream { } // Use this method to get details about a private connectivity configuration. - rpc GetPrivateConnection(GetPrivateConnectionRequest) returns (PrivateConnection) { + rpc GetPrivateConnection(GetPrivateConnectionRequest) + returns (PrivateConnection) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/privateConnections/*}" }; @@ -232,7 +247,8 @@ service Datastream { // Use this method to list private connectivity configurations in a project // and location. - rpc ListPrivateConnections(ListPrivateConnectionsRequest) returns (ListPrivateConnectionsResponse) { + rpc ListPrivateConnections(ListPrivateConnectionsRequest) + returns (ListPrivateConnectionsResponse) { option (google.api.http) = { get: "/v1/{parent=projects/*/locations/*}/privateConnections" }; @@ -240,7 +256,8 @@ service Datastream { } // Use this method to delete a private connectivity configuration. - rpc DeletePrivateConnection(DeletePrivateConnectionRequest) returns (google.longrunning.Operation) { + rpc DeletePrivateConnection(DeletePrivateConnectionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/privateConnections/*}" }; @@ -297,8 +314,8 @@ service Datastream { // Request message for 'discover' ConnectionProfile request. message DiscoverConnectionProfileRequest { - // Required. The parent resource of the connection profile type. Must be in the - // format `projects/*/locations/*`. + // Required. The parent resource of the connection profile type. Must be in + // the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -355,8 +372,8 @@ message DiscoverConnectionProfileResponse { // Request message for 'FetchStaticIps' request. message FetchStaticIpsRequest { - // Required. The resource name for the location for which static IPs should be returned. - // Must be in the format `projects/*/locations/*`. + // Required. The resource name for the location for which static IPs should be + // returned. Must be in the format `projects/*/locations/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -449,7 +466,8 @@ message CreateConnectionProfileRequest { string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The connection profile resource to create. - ConnectionProfile connection_profile = 3 [(google.api.field_behavior) = REQUIRED]; + ConnectionProfile connection_profile = 3 + [(google.api.field_behavior) = REQUIRED]; // Optional. A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore @@ -466,8 +484,8 @@ message CreateConnectionProfileRequest { // not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Only validate the connection profile, but don't create any resources. - // The default is false. + // Optional. Only validate the connection profile, but don't create any + // resources. The default is false. bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. Create the connection profile without validating it. @@ -481,10 +499,12 @@ message UpdateConnectionProfileRequest { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. The connection profile to update. - ConnectionProfile connection_profile = 2 [(google.api.field_behavior) = REQUIRED]; + ConnectionProfile connection_profile = 2 + [(google.api.field_behavior) = REQUIRED]; // Optional. A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore @@ -501,8 +521,8 @@ message UpdateConnectionProfileRequest { // not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Only validate the connection profile, but don't update any resources. - // The default is false. + // Optional. Only validate the connection profile, but don't update any + // resources. The default is false. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Update the connection profile without validating it. @@ -634,7 +654,8 @@ message UpdateStreamRequest { // The fields specified in the update_mask are relative to the resource, not // the full request. A field will be overwritten if it is in the mask. If the // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; // Required. The stream resource to update. Stream stream = 2 [(google.api.field_behavior) = REQUIRED]; @@ -654,8 +675,8 @@ message UpdateStreamRequest { // not supported (00000000-0000-0000-0000-000000000000). string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Only validate the stream with the changes, without actually updating it. - // The default is false. + // Optional. Only validate the stream with the changes, without actually + // updating it. The default is false. bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Update the stream without validating it. @@ -711,12 +732,14 @@ message LookupStreamObjectRequest { ]; // Required. The source object identifier which maps to the stream object. - SourceObjectIdentifier source_object_identifier = 2 [(google.api.field_behavior) = REQUIRED]; + SourceObjectIdentifier source_object_identifier = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request for manually initiating a backfill job for a specific stream object. message StartBackfillJobRequest { - // Required. The name of the stream object resource to start a backfill job for. + // Required. The name of the stream object resource to start a backfill job + // for. string object = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -734,7 +757,8 @@ message StartBackfillJobResponse { // Request for manually stopping a running backfill job for a specific stream // object. message StopBackfillJobRequest { - // Required. The name of the stream object resource to stop the backfill job for. + // Required. The name of the stream object resource to stop the backfill job + // for. string object = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -784,10 +808,12 @@ message ListStreamObjectsResponse { // Represents the metadata of the long-running operation. message OperationMetadata { // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Server-defined resource path for the target of the operation. string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -800,15 +826,17 @@ message OperationMetadata { // Output only. Identifies whether the user has requested cancellation // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. + // have [Operation.error][] value with a + // [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to + // `Code.CANCELLED`. bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. API version used to start the operation. string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Results of executed validations if there are any. - ValidationResult validation_result = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + ValidationResult validation_result = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request for creating a private connection. @@ -825,7 +853,8 @@ message CreatePrivateConnectionRequest { string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The Private Connectivity resource to create. - PrivateConnection private_connection = 3 [(google.api.field_behavior) = REQUIRED]; + PrivateConnection private_connection = 3 + [(google.api.field_behavior) = REQUIRED]; // Optional. A request ID to identify requests. Specify a unique request ID // so that if you must retry your request, the server will know to ignore @@ -841,11 +870,15 @@ message CreatePrivateConnectionRequest { // The request ID must be a valid UUID with the exception that zero UUID is // not supported (00000000-0000-0000-0000-000000000000). string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, will skip validations. + bool force = 6 [(google.api.field_behavior) = OPTIONAL]; } // Request for listing private connections. message ListPrivateConnectionsRequest { - // Required. The parent that owns the collection of private connectivity configurations. + // Required. The parent that owns the collection of private connectivity + // configurations. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -912,8 +945,8 @@ message DeletePrivateConnectionRequest { // not supported (00000000-0000-0000-0000-000000000000). string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set to true, any child routes that belong to this PrivateConnection will - // also be deleted. + // Optional. If set to true, any child routes that belong to this + // PrivateConnection will also be deleted. bool force = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto similarity index 90% rename from java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto rename to owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto index 80a8deeaefbd..1007939dc8bc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto +++ b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -103,14 +103,12 @@ message GcsProfile { } // BigQuery warehouse profile. -message BigQueryProfile { +message BigQueryProfile {} -} - -// Static IP address connectivity. -message StaticServiceIpConnectivity { - -} +// Static IP address connectivity. Used when the source database is configured +// to allow incoming connections from the Datastream public IP addresses +// for the region specified in the connection profile. +message StaticServiceIpConnectivity {} // Forward SSH Tunnel connectivity. message ForwardSshTunnelConnectivity { @@ -181,10 +179,12 @@ message PrivateConnection { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -195,7 +195,8 @@ message PrivateConnection { // Output only. The state of the Private Connection. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. In case of error, the details of the error in a user-friendly format. + // Output only. In case of error, the details of the error in a user-friendly + // format. Error error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // VPC Peering Config. @@ -226,10 +227,12 @@ message Route { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -262,8 +265,8 @@ message MysqlSslConfig { // Output only. Indicates whether the client_certificate field is set. bool client_certificate_set = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Input only. PEM-encoded certificate of the CA that signed the source database - // server's certificate. + // Input only. PEM-encoded certificate of the CA that signed the source + // database server's certificate. string ca_certificate = 5 [(google.api.field_behavior) = INPUT_ONLY]; // Output only. Indicates whether the ca_certificate field is set. @@ -282,10 +285,12 @@ message ConnectionProfile { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The create time of the resource. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The update time of the resource. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -383,14 +388,10 @@ message OracleRdbms { // Oracle data source configuration message OracleSourceConfig { // Configuration to drop large object values. - message DropLargeObjects { - - } + message DropLargeObjects {} // Configuration to stream large object values. - message StreamLargeObjects { - - } + message StreamLargeObjects {} // Oracle objects to include in the stream. OracleRdbms include_objects = 1; @@ -398,16 +399,20 @@ message OracleSourceConfig { // Oracle objects to exclude from the stream. OracleRdbms exclude_objects = 2; - // Maximum number of concurrent CDC tasks. The number should be non negative. - // If not set (or set to 0), the system's default value will be used. + // Maximum number of concurrent CDC tasks. The number should be non-negative. + // If not set (or set to 0), the system's default value is used. int32 max_concurrent_cdc_tasks = 3; + // Maximum number of concurrent backfill tasks. The number should be + // non-negative. If not set (or set to 0), the system's default value is used. + int32 max_concurrent_backfill_tasks = 4; + // The configuration for handle Oracle large objects. oneof large_objects_handling { // Drop large object values. DropLargeObjects drop_large_objects = 100; - // Stream large object values. + // Stream large object values. NOTE: This feature is currently experimental. StreamLargeObjects stream_large_objects = 102; } } @@ -473,13 +478,21 @@ message PostgresqlSourceConfig { // PostgreSQL objects to exclude from the stream. PostgresqlRdbms exclude_objects = 2; - // Required. The name of the logical replication slot that's configured with the - // pgoutput plugin. - string replication_slot = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. Immutable. The name of the logical replication slot that's + // configured with the pgoutput plugin. + string replication_slot = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; - // Required. The name of the publication that includes the set of all tables that are - // defined in the stream's include_objects. + // Required. The name of the publication that includes the set of all tables + // that are defined in the stream's include_objects. string publication = 4 [(google.api.field_behavior) = REQUIRED]; + + // Maximum number of concurrent backfill tasks. The number should be non + // negative. If not set (or set to 0), the system's default value will be + // used. + int32 max_concurrent_backfill_tasks = 5; } // MySQL Column. @@ -544,6 +557,11 @@ message MysqlSourceConfig { // Maximum number of concurrent CDC tasks. The number should be non negative. // If not set (or set to 0), the system's default value will be used. int32 max_concurrent_cdc_tasks = 3; + + // Maximum number of concurrent backfill tasks. The number should be non + // negative. If not set (or set to 0), the system's default value will be + // used. + int32 max_concurrent_backfill_tasks = 4; } // The configuration of the stream source. @@ -571,9 +589,7 @@ message SourceConfig { } // AVRO file format configuration. -message AvroFileFormat { - -} +message AvroFileFormat {} // JSON file format configuration. message JsonFileFormat { @@ -617,7 +633,8 @@ message GcsDestinationConfig { int32 file_rotation_mb = 2; // The maximum duration for which new events are added before a file is - // closed and a new file is created. + // closed and a new file is created. Values within the range of 15-60 seconds + // are allowed. google.protobuf.Duration file_rotation_interval = 3; // File Format that the data should be written in. @@ -630,9 +647,11 @@ message GcsDestinationConfig { } } +// BigQuery destination configuration message BigQueryDestinationConfig { // A single target dataset to which all data will be streamed. message SingleTargetDataset { + // The dataset ID of the target dataset. string dataset_id = 1; } @@ -661,6 +680,7 @@ message BigQueryDestinationConfig { string kms_key_name = 3; } + // The dataset template to use for dynamic dataset creation. DatasetTemplate dataset_template = 2; } @@ -759,18 +779,18 @@ message Stream { } // Backfill strategy to disable automatic backfill for the Stream's objects. - message BackfillNoneStrategy { - - } + message BackfillNoneStrategy {} // Output only. The stream's name. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the stream. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the stream. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Labels. map labels = 4; @@ -782,7 +802,8 @@ message Stream { SourceConfig source_config = 6 [(google.api.field_behavior) = REQUIRED]; // Required. Destination connection profile configuration. - DestinationConfig destination_config = 7 [(google.api.field_behavior) = REQUIRED]; + DestinationConfig destination_config = 7 + [(google.api.field_behavior) = REQUIRED]; // The state of the stream. State state = 8; @@ -804,7 +825,8 @@ message Stream { // If provided, it will be used to encrypt the data. // If left blank, data will be encrypted using an internal Stream-specific // encryption key provisioned through KMS. - optional string customer_managed_encryption_key = 10 [(google.api.field_behavior) = IMMUTABLE]; + optional string customer_managed_encryption_key = 10 + [(google.api.field_behavior) = IMMUTABLE]; } // A specific stream object (e.g a specific DB table). @@ -818,10 +840,12 @@ message StreamObject { string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The creation time of the object. - google.protobuf.Timestamp create_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update time of the object. - google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Required. Display name. string display_name = 5 [(google.api.field_behavior) = REQUIRED]; @@ -930,10 +954,12 @@ message BackfillJob { Trigger trigger = 2; // Output only. Backfill job's start time. - google.protobuf.Timestamp last_start_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Backfill job's end time. - google.protobuf.Timestamp last_end_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp last_end_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Errors which caused the backfill job to fail. repeated Error errors = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 98% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java index 00754e7922f3..aed4113809ed 100644 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java +++ b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java @@ -43,6 +43,7 @@ public static void asyncCreatePrivateConnection() throws Exception { .setPrivateConnectionId("privateConnectionId-1926654532") .setPrivateConnection(PrivateConnection.newBuilder().build()) .setRequestId("requestId693933066") + .setForce(true) .build(); ApiFuture future = datastreamClient.createPrivateConnectionCallable().futureCall(request); diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 98% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java index cf9574f8bd5a..2fec769278fc 100644 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java +++ b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java @@ -43,6 +43,7 @@ public static void asyncCreatePrivateConnectionLRO() throws Exception { .setPrivateConnectionId("privateConnectionId-1926654532") .setPrivateConnection(PrivateConnection.newBuilder().build()) .setRequestId("requestId693933066") + .setForce(true) .build(); OperationFuture future = datastreamClient.createPrivateConnectionOperationCallable().futureCall(request); diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java similarity index 98% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java index 61a4b6b69602..50f0c77c2d0a 100644 --- a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java +++ b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java @@ -41,6 +41,7 @@ public static void syncCreatePrivateConnection() throws Exception { .setPrivateConnectionId("privateConnectionId-1926654532") .setPrivateConnection(PrivateConnection.newBuilder().build()) .setRequestId("requestId693933066") + .setForce(true) .build(); PrivateConnection response = datastreamClient.createPrivateConnectionAsync(request).get(); } diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java index e9ec4ad79577..ff49232963a6 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java +++ b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.datastream.v1alpha1.stub.DatastreamStubSettings; diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java index 5379c0ad4d94..f3d278fa3642 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java +++ b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java @@ -70,6 +70,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java index 043783a04ac2..2f2875cdeaf8 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java +++ b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java @@ -35,6 +35,7 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java diff --git a/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java b/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java similarity index 100% rename from java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java rename to owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java new file mode 100644 index 000000000000..68534d72a09e --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -0,0 +1,2079 @@ +package com.google.cloud.datastream.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Datastream service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DatastreamGrpc { + + private DatastreamGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datastream.v1alpha1.Datastream"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { + DatastreamGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + DatastreamGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { + DatastreamGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { + DatastreamGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { + DatastreamGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod() { + io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { + DatastreamGrpc.getDiscoverConnectionProfileMethod = getDiscoverConnectionProfileMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) + .build(); + } + } + } + return getDiscoverConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor getListStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreams", + requestType = com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListStreamsMethod() { + io.grpc.MethodDescriptor getListStreamsMethod; + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + DatastreamGrpc.getListStreamsMethod = getListStreamsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) + .build(); + } + } + } + return getListStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStream", + requestType = com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.Stream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStreamMethod() { + io.grpc.MethodDescriptor getGetStreamMethod; + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + DatastreamGrpc.getGetStreamMethod = getGetStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) + .build(); + } + } + } + return getGetStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStream", + requestType = com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateStreamMethod() { + io.grpc.MethodDescriptor getCreateStreamMethod; + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + DatastreamGrpc.getCreateStreamMethod = getCreateStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) + .build(); + } + } + } + return getCreateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateStream", + requestType = com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateStreamMethod() { + io.grpc.MethodDescriptor getUpdateStreamMethod; + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + DatastreamGrpc.getUpdateStreamMethod = getUpdateStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) + .build(); + } + } + } + return getUpdateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStream", + requestType = com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteStreamMethod() { + io.grpc.MethodDescriptor getDeleteStreamMethod; + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + DatastreamGrpc.getDeleteStreamMethod = getDeleteStreamMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) + .build(); + } + } + } + return getDeleteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchErrorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchErrors", + requestType = com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchErrorsMethod() { + io.grpc.MethodDescriptor getFetchErrorsMethod; + if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { + DatastreamGrpc.getFetchErrorsMethod = getFetchErrorsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchErrors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchErrors")) + .build(); + } + } + } + return getFetchErrorsMethod; + } + + private static volatile io.grpc.MethodDescriptor getFetchStaticIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", + requestType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getFetchStaticIpsMethod() { + io.grpc.MethodDescriptor getFetchStaticIpsMethod; + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + DatastreamGrpc.getFetchStaticIpsMethod = getFetchStaticIpsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) + .build(); + } + } + } + return getFetchStaticIpsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePrivateConnectionMethod() { + io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { + DatastreamGrpc.getCreatePrivateConnectionMethod = getCreatePrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) + .build(); + } + } + } + return getCreatePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.PrivateConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPrivateConnectionMethod() { + io.grpc.MethodDescriptor getGetPrivateConnectionMethod; + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + DatastreamGrpc.getGetPrivateConnectionMethod = getGetPrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) + .build(); + } + } + } + return getGetPrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPrivateConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", + requestType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPrivateConnectionsMethod() { + io.grpc.MethodDescriptor getListPrivateConnectionsMethod; + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { + DatastreamGrpc.getListPrivateConnectionsMethod = getListPrivateConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) + .build(); + } + } + } + return getListPrivateConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePrivateConnectionMethod() { + io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { + DatastreamGrpc.getDeletePrivateConnectionMethod = getDeletePrivateConnectionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) + .build(); + } + } + } + return getDeletePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoute", + requestType = com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateRouteMethod() { + io.grpc.MethodDescriptor getCreateRouteMethod; + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + DatastreamGrpc.getCreateRouteMethod = getCreateRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) + .build(); + } + } + } + return getCreateRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoute", + requestType = com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.Route.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetRouteMethod() { + io.grpc.MethodDescriptor getGetRouteMethod; + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + DatastreamGrpc.getGetRouteMethod = getGetRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) + .build(); + } + } + } + return getGetRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor getListRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRoutes", + requestType = com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListRoutesMethod() { + io.grpc.MethodDescriptor getListRoutesMethod; + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + DatastreamGrpc.getListRoutesMethod = getListRoutesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) + .build(); + } + } + } + return getListRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", + requestType = com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteRouteMethod() { + io.grpc.MethodDescriptor getDeleteRouteMethod; + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + DatastreamGrpc.getDeleteRouteMethod = getDeleteRouteMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) + .build(); + } + } + } + return getDeleteRouteMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DatastreamStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + }; + return DatastreamStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DatastreamBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + }; + return DatastreamBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DatastreamFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + }; + return DatastreamFutureStub.newStub(factory, channel); + } + + /** + *
+   * Datastream service
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + default void listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + default void getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + default void createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + default void updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + default void deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + default void discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiscoverConnectionProfileMethod(), responseObserver); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + default void listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamsMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + default void getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + default void createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + default void updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + default void deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteStreamMethod(), responseObserver); + } + + /** + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + default void fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchErrorsMethod(), responseObserver); + } + + /** + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + default void fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchStaticIpsMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + default void createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + default void getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + default void listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPrivateConnectionsMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + default void deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + default void createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRouteMethod(), responseObserver); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + default void getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); + } + + /** + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + default void listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + default void deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static abstract class DatastreamImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DatastreamGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamStub + extends io.grpc.stub.AbstractAsyncStub { + private DatastreamStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public void listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public void getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public void createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public void updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public void deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public void discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public void listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public void getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public void createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public void updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public void deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public void fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public void fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public void createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public void getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public void listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public void deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public void createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public void getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public void listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public void deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DatastreamBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.Stream getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.longrunning.Operation createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.longrunning.Operation updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.longrunning.Operation deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStreamMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public com.google.longrunning.Operation fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchErrorsMethod(), getCallOptions(), request); + } + + /** + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public com.google.longrunning.Operation createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.Route getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRouteMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoutesMethod(), getCallOptions(), request); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.longrunning.Operation deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRouteMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DatastreamFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + + /** + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture discoverConnectionProfile( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listStreams( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getStream( + com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createStream( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateStream( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteStream( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchErrors( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request); + } + + /** + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture fetchStaticIps( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPrivateConnection( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPrivateConnection( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPrivateConnections( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePrivateConnection( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createRoute( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getRoute( + com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listRoutes( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); + } + + /** + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteRoute( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONNECTION_PROFILES = 0; + private static final int METHODID_GET_CONNECTION_PROFILE = 1; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; + private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; + private static final int METHODID_LIST_STREAMS = 6; + private static final int METHODID_GET_STREAM = 7; + private static final int METHODID_CREATE_STREAM = 8; + private static final int METHODID_UPDATE_STREAM = 9; + private static final int METHODID_DELETE_STREAM = 10; + private static final int METHODID_FETCH_ERRORS = 11; + private static final int METHODID_FETCH_STATIC_IPS = 12; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 13; + private static final int METHODID_GET_PRIVATE_CONNECTION = 14; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 15; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 16; + private static final int METHODID_CREATE_ROUTE = 17; + private static final int METHODID_GET_ROUTE = 18; + private static final int METHODID_LIST_ROUTES = 19; + private static final int METHODID_DELETE_ROUTE = 20; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile((com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile((com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile((com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISCOVER_CONNECTION_PROFILE: + serviceImpl.discoverConnectionProfile((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_STREAMS: + serviceImpl.listStreams((com.google.cloud.datastream.v1alpha1.ListStreamsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STREAM: + serviceImpl.getStream((com.google.cloud.datastream.v1alpha1.GetStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_STREAM: + serviceImpl.createStream((com.google.cloud.datastream.v1alpha1.CreateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_STREAM: + serviceImpl.updateStream((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_STREAM: + serviceImpl.deleteStream((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_ERRORS: + serviceImpl.fetchErrors((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_STATIC_IPS: + serviceImpl.fetchStaticIps((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection((com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection((com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ROUTE: + serviceImpl.createRoute((com.google.cloud.datastream.v1alpha1.CreateRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROUTE: + serviceImpl.getRoute((com.google.cloud.datastream.v1alpha1.GetRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROUTES: + serviceImpl.listRoutes((com.google.cloud.datastream.v1alpha1.ListRoutesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ROUTE: + serviceImpl.deleteRoute((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>( + service, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.ConnectionProfile>( + service, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_CONNECTION_PROFILE))) + .addMethod( + getDiscoverConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>( + service, METHODID_DISCOVER_CONNECTION_PROFILE))) + .addMethod( + getListStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListStreamsRequest, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse>( + service, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream>( + service, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_STREAM))) + .addMethod( + getFetchErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, + com.google.longrunning.Operation>( + service, METHODID_FETCH_ERRORS))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( + service, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1alpha1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route>( + service, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( + service, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_ROUTE))) + .build(); + } + + private static abstract class DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DatastreamBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Datastream"); + } + } + + private static final class DatastreamFileDescriptorSupplier + extends DatastreamBaseDescriptorSupplier { + DatastreamFileDescriptorSupplier() {} + } + + private static final class DatastreamMethodDescriptorSupplier + extends DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DatastreamMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DatastreamGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .addMethod(getDiscoverConnectionProfileMethod()) + .addMethod(getListStreamsMethod()) + .addMethod(getGetStreamMethod()) + .addMethod(getCreateStreamMethod()) + .addMethod(getUpdateStreamMethod()) + .addMethod(getDeleteStreamMethod()) + .addMethod(getFetchErrorsMethod()) + .addMethod(getFetchStaticIpsMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getCreateRouteMethod()) + .addMethod(getGetRouteMethod()) + .addMethod(getListRoutesMethod()) + .addMethod(getDeleteRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java similarity index 63% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java index 2bbeba4bdca7..421d5c3c1083 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java @@ -1,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * AVRO file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.AvroFileFormat} */ -public final class AvroFileFormat extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AvroFileFormat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.AvroFileFormat) AvroFileFormatOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AvroFileFormat.newBuilder() to construct. private AvroFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AvroFileFormat() {} + private AvroFileFormat() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AvroFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +78,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.AvroFileFormat other = - (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; + com.google.cloud.datastream.v1alpha1.AvroFileFormat other = (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,135 +102,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.AvroFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AVRO file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.AvroFileFormat} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.AvroFileFormat) com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -257,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override @@ -278,8 +253,7 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { - com.google.cloud.datastream.v1alpha1.AvroFileFormat result = - new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); + com.google.cloud.datastream.v1alpha1.AvroFileFormat result = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); onBuilt(); return result; } @@ -288,39 +262,38 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat)other); } else { super.mergeFrom(other); return this; @@ -328,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.AvroFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -356,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -372,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) private static final com.google.cloud.datastream.v1alpha1.AvroFileFormat DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(); } @@ -398,27 +369,27 @@ public static com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -433,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java new file mode 100644 index 000000000000..ecd8ad009d5d --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface AvroFileFormatOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java new file mode 100644 index 000000000000..a0c97ad72939 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java @@ -0,0 +1,712 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public final class CloudDatastreamResourcesProto { + private CloudDatastreamResourcesProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/datastream/v1alpha1/datas" + + "tream_resources.proto\022 google.cloud.data" + + "stream.v1alpha1\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\"\250\002\n\rOracleProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A" + + "\002\022\035\n\020database_service\030\005 \001(\tB\003\340A\002\022h\n\025conn" + + "ection_attributes\030\006 \003(\0132I.google.cloud.d" + + "atastream.v1alpha1.OracleProfile.Connect" + + "ionAttributesEntry\032;\n\031ConnectionAttribut" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\252\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" + + "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001" + + "(\01320.google.cloud.datastream.v1alpha1.My" + + "sqlSslConfig\"9\n\nGcsProfile\022\030\n\013bucket_nam" + + "e\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoCon" + + "nectivitySettings\"\035\n\033StaticServiceIpConn" + + "ectivity\"\250\001\n\034ForwardSshTunnelConnectivit" + + "y\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001" + + "(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB" + + "\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025au" + + "thentication_method\">\n\020VpcPeeringConfig\022" + + "\025\n\010vpc_name\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003" + + "\340A\002\"\324\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022O\n\006labe" + + "ls\030\004 \003(\0132?.google.cloud.datastream.v1alp" + + "ha1.PrivateConnection.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.go" + + "ogle.cloud.datastream.v1alpha1.PrivateCo" + + "nnection.StateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.ErrorB\003\340A\003" + + "\022N\n\022vpc_peering_config\030d \001(\01322.google.cl" + + "oud.datastream.v1alpha1.VpcPeeringConfig" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201" + + "\001\352A~\n+datastream.googleapis.com/PrivateC" + + "onnection\022Oprojects/{project}/locations/" + + "{location}/privateConnections/{private_c" + + "onnection}\";\n\023PrivateConnectivity\022$\n\027pri" + + "vate_connection_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Rout" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud." + + "datastream.v1alpha1.Route.LabelsEntry\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_" + + "address\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007" + + " \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapi" + + "s.com/Route\022^projects/{project}/location" + + "s/{location}/privateConnections/{private" + + "_connection}/routes/{route}\"\312\001\n\016MysqlSsl" + + "Config\022\027\n\nclient_key\030\013 \001(\tB\003\340A\004\022\033\n\016clien" + + "t_key_set\030\014 \001(\010B\003\340A\003\022\037\n\022client_certifica" + + "te\030\r \001(\tB\003\340A\004\022#\n\026client_certificate_set\030" + + "\016 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022" + + "\037\n\022ca_certificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021Con" + + "nectionProfile\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?." + + "google.cloud.datastream.v1alpha1.Connect" + + "ionProfile.LabelsEntry\022\031\n\014display_name\030\005" + + " \001(\tB\003\340A\002\022I\n\016oracle_profile\030d \001(\0132/.goog" + + "le.cloud.datastream.v1alpha1.OracleProfi" + + "leH\000\022C\n\013gcs_profile\030e \001(\0132,.google.cloud" + + ".datastream.v1alpha1.GcsProfileH\000\022G\n\rmys" + + "ql_profile\030f \001(\0132..google.cloud.datastre" + + "am.v1alpha1.MysqlProfileH\000\022T\n\017no_connect" + + "ivity\030\310\001 \001(\01328.google.cloud.datastream.v" + + "1alpha1.NoConnectivitySettingsH\001\022h\n\036stat" + + "ic_service_ip_connectivity\030\311\001 \001(\0132=.goog" + + "le.cloud.datastream.v1alpha1.StaticServi" + + "ceIpConnectivityH\001\022c\n\030forward_ssh_connec" + + "tivity\030\312\001 \001(\0132>.google.cloud.datastream." + + "v1alpha1.ForwardSshTunnelConnectivityH\001\022" + + "V\n\024private_connectivity\030\313\001 \001(\01325.google." + + "cloud.datastream.v1alpha1.PrivateConnect" + + "ivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream.googlea" + + "pis.com/ConnectionProfile\022Oprojects/{pro" + + "ject}/locations/{location}/connectionPro" + + "files/{connection_profile}B\t\n\007profileB\016\n" + + "\014connectivity\"\273\001\n\014OracleColumn\022\023\n\013column" + + "_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005" + + "\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022" + + "\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030\t " + + "\001(\005\"i\n\013OracleTable\022\022\n\ntable_name\030\001 \001(\t\022F" + + "\n\016oracle_columns\030\002 \003(\0132..google.cloud.da" + + "tastream.v1alpha1.OracleColumn\"i\n\014Oracle" + + "Schema\022\023\n\013schema_name\030\001 \001(\t\022D\n\roracle_ta" + + "bles\030\002 \003(\0132-.google.cloud.datastream.v1a" + + "lpha1.OracleTable\"U\n\013OracleRdbms\022F\n\016orac" + + "le_schemas\030\001 \003(\0132..google.cloud.datastre" + + "am.v1alpha1.OracleSchema\"\231\001\n\022OracleSourc" + + "eConfig\022@\n\tallowlist\030\001 \001(\0132-.google.clou" + + "d.datastream.v1alpha1.OracleRdbms\022A\n\nrej" + + "ectlist\030\002 \001(\0132-.google.cloud.datastream." + + "v1alpha1.OracleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013" + + "column_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" + + "length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013prima" + + "ry_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordina" + + "l_position\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_" + + "name\030\001 \001(\t\022D\n\rmysql_columns\030\002 \003(\0132-.goog" + + "le.cloud.datastream.v1alpha1.MysqlColumn" + + "\"j\n\rMysqlDatabase\022\025\n\rdatabase_name\030\001 \001(\t" + + "\022B\n\014mysql_tables\030\002 \003(\0132,.google.cloud.da" + + "tastream.v1alpha1.MysqlTable\"V\n\nMysqlRdb" + + "ms\022H\n\017mysql_databases\030\001 \003(\0132/.google.clo" + + "ud.datastream.v1alpha1.MysqlDatabase\"\226\001\n" + + "\021MysqlSourceConfig\022?\n\tallowlist\030\001 \001(\0132,." + + "google.cloud.datastream.v1alpha1.MysqlRd" + + "bms\022@\n\nrejectlist\030\002 \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbms\"\375\001\n\014Source" + + "Config\022+\n\036source_connection_profile_name" + + "\030\001 \001(\tB\003\340A\002\022T\n\024oracle_source_config\030d \001(" + + "\01324.google.cloud.datastream.v1alpha1.Ora" + + "cleSourceConfigH\000\022R\n\023mysql_source_config" + + "\030e \001(\01323.google.cloud.datastream.v1alpha" + + "1.MysqlSourceConfigH\000B\026\n\024source_stream_c" + + "onfig\"\020\n\016AvroFileFormat\"\212\002\n\016JsonFileForm" + + "at\022N\n\022schema_file_format\030\001 \001(\01622.google." + + "cloud.datastream.v1alpha1.SchemaFileForm" + + "at\022U\n\013compression\030\002 \001(\0162@.google.cloud.d" + + "atastream.v1alpha1.JsonFileFormat.JsonCo" + + "mpression\"Q\n\017JsonCompression\022 \n\034JSON_COM" + + "PRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION" + + "\020\001\022\010\n\004GZIP\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n" + + "\004path\030\001 \001(\t\022L\n\017gcs_file_format\030\002 \001(\0162/.g" + + "oogle.cloud.datastream.v1alpha1.GcsFileF" + + "ormatB\002\030\001\022\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026f" + + "ile_rotation_interval\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022L\n\020avro_file_format\030d \001(\013" + + "20.google.cloud.datastream.v1alpha1.Avro" + + "FileFormatH\000\022L\n\020json_file_format\030e \001(\01320" + + ".google.cloud.datastream.v1alpha1.JsonFi" + + "leFormatH\000B\r\n\013file_format\"\274\001\n\021Destinatio" + + "nConfig\0220\n#destination_connection_profil" + + "e_name\030\001 \001(\tB\003\340A\002\022X\n\026gcs_destination_con" + + "fig\030d \001(\01326.google.cloud.datastream.v1al" + + "pha1.GcsDestinationConfigH\000B\033\n\031destinati" + + "on_stream_config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\006la" + + "bels\030\004 \003(\01324.google.cloud.datastream.v1a" + + "lpha1.Stream.LabelsEntry\022\031\n\014display_name" + + "\030\005 \001(\tB\003\340A\002\022J\n\rsource_config\030\006 \001(\0132..goo" + + "gle.cloud.datastream.v1alpha1.SourceConf" + + "igB\003\340A\002\022T\n\022destination_config\030\007 \001(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Destinati" + + "onConfigB\003\340A\002\022=\n\005state\030\010 \001(\0162..google.cl" + + "oud.datastream.v1alpha1.Stream.State\022T\n\014" + + "backfill_all\030e \001(\0132<.google.cloud.datast" + + "ream.v1alpha1.Stream.BackfillAllStrategy" + + "H\000\022V\n\rbackfill_none\030f \001(\0132=.google.cloud" + + ".datastream.v1alpha1.Stream.BackfillNone" + + "StrategyH\000\022<\n\006errors\030\t \003(\0132\'.google.clou" + + "d.datastream.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023Bac" + + "kfillAllStrategy\022P\n\027oracle_excluded_obje" + + "cts\030\001 \001(\0132-.google.cloud.datastream.v1al" + + "pha1.OracleRdbmsH\000\022N\n\026mysql_excluded_obj" + + "ects\030\002 \001(\0132,.google.cloud.datastream.v1a" + + "lpha1.MysqlRdbmsH\000B\022\n\020excluded_objects\032\026" + + "\n\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007R" + + "UNNING\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n" + + "\006FAILED\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STA" + + "RTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.g" + + "oogleapis.com/Stream\0228projects/{project}" + + "/locations/{location}/streams/{stream}B\023" + + "\n\021backfill_strategy\"\343\001\n\005Error\022\016\n\006reason\030" + + "\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001" + + "(\t\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\022E\n\007details\030\005 \003(\01324.google.clo" + + "ud.datastream.v1alpha1.Error.DetailsEntr" + + "y\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"U\n\020ValidationResult\022A\n\013validat" + + "ions\030\001 \003(\0132,.google.cloud.datastream.v1a" + + "lpha1.Validation\"\206\002\n\nValidation\022\023\n\013descr" + + "iption\030\001 \001(\t\022C\n\006status\030\002 \001(\01623.google.cl" + + "oud.datastream.v1alpha1.Validation.Statu" + + "s\022D\n\007message\030\003 \003(\01323.google.cloud.datast" + + "ream.v1alpha1.ValidationMessage\022\014\n\004code\030" + + "\004 \001(\t\"J\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" + + "\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020" + + "\003\"\272\002\n\021ValidationMessage\022\017\n\007message\030\001 \001(\t" + + "\022H\n\005level\030\002 \001(\01629.google.cloud.datastrea" + + "m.v1alpha1.ValidationMessage.Level\022S\n\010me" + + "tadata\030\003 \003(\0132A.google.cloud.datastream.v" + + "1alpha1.ValidationMessage.MetadataEntry\022" + + "\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL" + + "_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>" + + "\n\rGcsFileFormat\022\037\n\033GCS_FILE_FORMAT_UNSPE" + + "CIFIED\020\000\022\010\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileForm" + + "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" + + "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" + + "B\371\001\n$com.google.cloud.datastream.v1alpha" + + "1B\035CloudDatastreamResourcesProtoP\001ZDclou" + + "d.google.com/go/datastream/apiv1alpha1/d" + + "atastreampb;datastreampb\252\002 Google.Cloud." + + "Datastream.V1Alpha1\312\002 Google\\Cloud\\Datas" + + "tream\\V1alpha1\352\002#Google::Cloud::Datastre" + + "am::V1alpha1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor, + new java.lang.String[] { "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", }); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor, + new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor, + new java.lang.String[] { "BucketName", "RootPath", }); + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor, + new java.lang.String[] { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor, + new java.lang.String[] { "VpcName", "Subnet", }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Error", "VpcPeeringConfig", }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor, + new java.lang.String[] { "PrivateConnectionName", }); + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "DestinationAddress", "DestinationPort", }); + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor, + new java.lang.String[] { "ClientKey", "ClientKeySet", "ClientCertificate", "ClientCertificateSet", "CaCertificate", "CaCertificateSet", }); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "OracleProfile", "GcsProfile", "MysqlProfile", "NoConnectivity", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", "Profile", "Connectivity", }); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor, + new java.lang.String[] { "ColumnName", "DataType", "Length", "Precision", "Scale", "Encoding", "PrimaryKey", "Nullable", "OrdinalPosition", }); + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor, + new java.lang.String[] { "TableName", "OracleColumns", }); + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor, + new java.lang.String[] { "SchemaName", "OracleTables", }); + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor, + new java.lang.String[] { "OracleSchemas", }); + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor, + new java.lang.String[] { "Allowlist", "Rejectlist", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor, + new java.lang.String[] { "ColumnName", "DataType", "Length", "Collation", "PrimaryKey", "Nullable", "OrdinalPosition", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor, + new java.lang.String[] { "TableName", "MysqlColumns", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor, + new java.lang.String[] { "DatabaseName", "MysqlTables", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor, + new java.lang.String[] { "MysqlDatabases", }); + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor, + new java.lang.String[] { "Allowlist", "Rejectlist", }); + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor, + new java.lang.String[] { "SourceConnectionProfileName", "OracleSourceConfig", "MysqlSourceConfig", "SourceStreamConfig", }); + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor, + new java.lang.String[] { "SchemaFileFormat", "Compression", }); + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor, + new java.lang.String[] { "Path", "GcsFileFormat", "FileRotationMb", "FileRotationInterval", "AvroFileFormat", "JsonFileFormat", "FileFormat", }); + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor, + new java.lang.String[] { "DestinationConnectionProfileName", "GcsDestinationConfig", "DestinationStreamConfig", }); + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor, + new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "SourceConfig", "DestinationConfig", "State", "BackfillAll", "BackfillNone", "Errors", "BackfillStrategy", }); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor, + new java.lang.String[] { "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", }); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor, + new java.lang.String[] { "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", }); + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor, + new java.lang.String[] { "Validations", }); + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor, + new java.lang.String[] { "Description", "Status", "Message", "Code", }); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor, + new java.lang.String[] { "Message", "Level", "Metadata", "Code", }); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java new file mode 100644 index 000000000000..e627806fff25 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java @@ -0,0 +1,640 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public final class CloudDatastreamServiceProto { + private CloudDatastreamServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/datastream/v1alpha1/datas" + + "tream.proto\022 google.cloud.datastream.v1a" + + "lpha1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032;google/cloud/datastream/v1alpha1/datas" + + "tream_resources.proto\032#google/longrunnin" + + "g/operations.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\"\275\003\n DiscoverConnectionProfileReque" + + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" + + "oogleapis.com/ConnectionProfile\022R\n\022conne" + + "ction_profile\030\310\001 \001(\01323.google.cloud.data" + + "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" + + "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" + + "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" + + "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" + + "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" + + "rdbms\030e \001(\0132,.google.cloud.datastream.v1" + + "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" + + "\n\013data_object\"\276\001\n!DiscoverConnectionProf" + + "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" + + "le.cloud.datastream.v1alpha1.OracleRdbms" + + "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" + + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" + + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" + + "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" + + "\"\n datastream.googleapis.com/Stream\"N\n\023F" + + "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" + + "ListConnectionProfilesRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" + + "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + + "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" + + "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Connectio" + + "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." + + "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" + + "ateConnectionProfileRequest\022C\n\006parent\030\001 " + + "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" + + "onnectionProfile\022\"\n\025connection_profile_i" + + "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + + "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" + + "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" + + "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" + + "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." + + "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + + "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " + + "\003(\0132(.google.cloud.datastream.v1alpha1.S" + + "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" + + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + + "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" + + "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" + + "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" + + "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" + + "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" + + " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" + + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" + + "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" + + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" + + "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" + + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" + + ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" + + "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" + + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" + + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" + + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" + + "_result\030\010 \001(\01322.google.cloud.datastream." + + "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" + + "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" + + "vateConnection\022\"\n\025private_connection_id\030" + + "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" + + ".google.cloud.datastream.v1alpha1.Privat" + + "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" + + "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" + + "ionsResponse\022P\n\023private_connections\030\001 \003(" + + "\01323.google.cloud.datastream.v1alpha1.Pri" + + "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" + + "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" + + "atastream.googleapis.com/PrivateConnecti" + + "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" + + "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/PrivateConnection\"\272\001\n\022CreateRout" + + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" + + "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " + + "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" + + "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" + + "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" + + "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" + + "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" + + " \003(\0132\'.google.cloud.datastream.v1alpha1." + + "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" + + "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" + + "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" + + "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" + + "stream.googleapis.com/Route2\212\'\n\nDatastre" + + "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" + + "loud.datastream.v1alpha1.ListConnectionP" + + "rofilesRequest\032@.google.cloud.datastream" + + ".v1alpha1.ListConnectionProfilesResponse" + + "\"M\202\323\344\223\002>\022\022*\022" + + "\022* builder) { super(builder); } - private ConnectionProfile() { name_ = ""; displayName_ = ""; @@ -36,54 +22,51 @@ private ConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); } private int profileCase_ = 0; private java.lang.Object profile_; - public enum ProfileCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_PROFILE(100), GCS_PROFILE(101), MYSQL_PROFILE(102), PROFILE_NOT_SET(0); private final int value; - private ProfileCase(int value) { this.value = value; } @@ -99,34 +82,28 @@ public static ProfileCase valueOf(int value) { public static ProfileCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_PROFILE; - case 101: - return GCS_PROFILE; - case 102: - return MYSQL_PROFILE; - case 0: - return PROFILE_NOT_SET; - default: - return null; + case 100: return ORACLE_PROFILE; + case 101: return GCS_PROFILE; + case 102: return MYSQL_PROFILE; + case 0: return PROFILE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ProfileCase getProfileCase() { - return ProfileCase.forNumber(profileCase_); + public ProfileCase + getProfileCase() { + return ProfileCase.forNumber( + profileCase_); } private int connectivityCase_ = 0; private java.lang.Object connectivity_; - public enum ConnectivityCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NO_CONNECTIVITY(200), STATIC_SERVICE_IP_CONNECTIVITY(201), @@ -134,7 +111,6 @@ public enum ConnectivityCase PRIVATE_CONNECTIVITY(203), CONNECTIVITY_NOT_SET(0); private final int value; - private ConnectivityCase(int value) { this.value = value; } @@ -150,43 +126,34 @@ public static ConnectivityCase valueOf(int value) { public static ConnectivityCase forNumber(int value) { switch (value) { - case 200: - return NO_CONNECTIVITY; - case 201: - return STATIC_SERVICE_IP_CONNECTIVITY; - case 202: - return FORWARD_SSH_CONNECTIVITY; - case 203: - return PRIVATE_CONNECTIVITY; - case 0: - return CONNECTIVITY_NOT_SET; - default: - return null; + case 200: return NO_CONNECTIVITY; + case 201: return STATIC_SERVICE_IP_CONNECTIVITY; + case 202: return FORWARD_SSH_CONNECTIVITY; + case 203: return PRIVATE_CONNECTIVITY; + case 0: return CONNECTIVITY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -195,29 +162,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -228,15 +195,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -244,15 +207,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -260,14 +219,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -277,15 +233,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -293,15 +245,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -309,14 +257,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -324,34 +269,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -359,21 +302,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -385,8 +327,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -394,19 +334,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -414,11 +352,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -426,18 +364,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -446,29 +380,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -478,14 +412,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int ORACLE_PROFILE_FIELD_NUMBER = 100; /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -493,26 +424,21 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -522,21 +448,18 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } public static final int GCS_PROFILE_FIELD_NUMBER = 101; /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -544,26 +467,21 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -573,21 +491,18 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } public static final int MYSQL_PROFILE_FIELD_NUMBER = 102; /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -595,26 +510,21 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -624,21 +534,18 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } public static final int NO_CONNECTIVITY_FIELD_NUMBER = 200; /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return Whether the noConnectivity field is set. */ @java.lang.Override @@ -646,26 +553,21 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return The noConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } /** - * - * *
    * No connectivity option chosen.
    * 
@@ -673,26 +575,20 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder - getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 201; /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -700,58 +596,42 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 202; /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -759,56 +639,42 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 203; /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -816,26 +682,21 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return The privateConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnectivity() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } /** - * - * *
    * Private connectivity.
    * 
@@ -843,16 +704,14 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -864,7 +723,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -874,8 +734,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -889,20 +753,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - output.writeMessage( - 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + output.writeMessage(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - output.writeMessage( - 201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + output.writeMessage(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - output.writeMessage( - 202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + output.writeMessage(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - output.writeMessage( - 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + output.writeMessage(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } getUnknownFields().writeTo(output); } @@ -917,60 +777,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); } if (profileCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); } if (profileCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 201, - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 202, - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -980,35 +833,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ConnectionProfile other = - (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; + com.google.cloud.datastream.v1alpha1.ConnectionProfile other = (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getProfileCase().equals(other.getProfileCase())) return false; switch (profileCase_) { case 100: - if (!getOracleProfile().equals(other.getOracleProfile())) return false; + if (!getOracleProfile() + .equals(other.getOracleProfile())) return false; break; case 101: - if (!getGcsProfile().equals(other.getGcsProfile())) return false; + if (!getGcsProfile() + .equals(other.getGcsProfile())) return false; break; case 102: - if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; + if (!getMysqlProfile() + .equals(other.getMysqlProfile())) return false; break; case 0: default: @@ -1016,17 +876,20 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 200: - if (!getNoConnectivity().equals(other.getNoConnectivity())) return false; + if (!getNoConnectivity() + .equals(other.getNoConnectivity())) return false; break; case 201: - if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) - return false; + if (!getStaticServiceIpConnectivity() + .equals(other.getStaticServiceIpConnectivity())) return false; break; case 202: - if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; + if (!getForwardSshConnectivity() + .equals(other.getForwardSshConnectivity())) return false; break; case 203: - if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; + if (!getPrivateConnectivity() + .equals(other.getPrivateConnectivity())) return false; break; case 0: default: @@ -1100,148 +963,147 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ConnectionProfile prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ConnectionProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ConnectionProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ConnectionProfile} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ConnectionProfile) com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1288,9 +1150,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @java.lang.Override @@ -1309,11 +1171,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.ConnectionProfile result = - new com.google.cloud.datastream.v1alpha1.ConnectionProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ConnectionProfile result = new com.google.cloud.datastream.v1alpha1.ConnectionProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -1325,10 +1184,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ConnectionProfil result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -1342,27 +1205,34 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ConnectionProfil private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ConnectionProfile result) { result.profileCase_ = profileCase_; result.profile_ = this.profile_; - if (profileCase_ == 100 && oracleProfileBuilder_ != null) { + if (profileCase_ == 100 && + oracleProfileBuilder_ != null) { result.profile_ = oracleProfileBuilder_.build(); } - if (profileCase_ == 101 && gcsProfileBuilder_ != null) { + if (profileCase_ == 101 && + gcsProfileBuilder_ != null) { result.profile_ = gcsProfileBuilder_.build(); } - if (profileCase_ == 102 && mysqlProfileBuilder_ != null) { + if (profileCase_ == 102 && + mysqlProfileBuilder_ != null) { result.profile_ = mysqlProfileBuilder_.build(); } result.connectivityCase_ = connectivityCase_; result.connectivity_ = this.connectivity_; - if (connectivityCase_ == 200 && noConnectivityBuilder_ != null) { + if (connectivityCase_ == 200 && + noConnectivityBuilder_ != null) { result.connectivity_ = noConnectivityBuilder_.build(); } - if (connectivityCase_ == 201 && staticServiceIpConnectivityBuilder_ != null) { + if (connectivityCase_ == 201 && + staticServiceIpConnectivityBuilder_ != null) { result.connectivity_ = staticServiceIpConnectivityBuilder_.build(); } - if (connectivityCase_ == 202 && forwardSshConnectivityBuilder_ != null) { + if (connectivityCase_ == 202 && + forwardSshConnectivityBuilder_ != null) { result.connectivity_ = forwardSshConnectivityBuilder_.build(); } - if (connectivityCase_ == 203 && privateConnectivityBuilder_ != null) { + if (connectivityCase_ == 203 && + privateConnectivityBuilder_ != null) { result.connectivity_ = privateConnectivityBuilder_.build(); } } @@ -1371,39 +1241,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ConnectionP public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ConnectionProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ConnectionProfile) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ConnectionProfile)other); } else { super.mergeFrom(other); return this; @@ -1411,8 +1280,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1424,7 +1292,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -1432,51 +1301,42 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile onChanged(); } switch (other.getProfileCase()) { - case ORACLE_PROFILE: - { - mergeOracleProfile(other.getOracleProfile()); - break; - } - case GCS_PROFILE: - { - mergeGcsProfile(other.getGcsProfile()); - break; - } - case MYSQL_PROFILE: - { - mergeMysqlProfile(other.getMysqlProfile()); - break; - } - case PROFILE_NOT_SET: - { - break; - } + case ORACLE_PROFILE: { + mergeOracleProfile(other.getOracleProfile()); + break; + } + case GCS_PROFILE: { + mergeGcsProfile(other.getGcsProfile()); + break; + } + case MYSQL_PROFILE: { + mergeMysqlProfile(other.getMysqlProfile()); + break; + } + case PROFILE_NOT_SET: { + break; + } } switch (other.getConnectivityCase()) { - case NO_CONNECTIVITY: - { - mergeNoConnectivity(other.getNoConnectivity()); - break; - } - case STATIC_SERVICE_IP_CONNECTIVITY: - { - mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity()); - break; - } - case FORWARD_SSH_CONNECTIVITY: - { - mergeForwardSshConnectivity(other.getForwardSshConnectivity()); - break; - } - case PRIVATE_CONNECTIVITY: - { - mergePrivateConnectivity(other.getPrivateConnectivity()); - break; - } - case CONNECTIVITY_NOT_SET: - { - break; - } + case NO_CONNECTIVITY: { + mergeNoConnectivity(other.getNoConnectivity()); + break; + } + case STATIC_SERVICE_IP_CONNECTIVITY: { + mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity()); + break; + } + case FORWARD_SSH_CONNECTIVITY: { + mergeForwardSshConnectivity(other.getForwardSshConnectivity()); + break; + } + case PRIVATE_CONNECTIVITY: { + mergePrivateConnectivity(other.getPrivateConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1504,94 +1364,94 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 802: - { - input.readMessage(getOracleProfileFieldBuilder().getBuilder(), extensionRegistry); - profileCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getGcsProfileFieldBuilder().getBuilder(), extensionRegistry); - profileCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage(getMysqlProfileFieldBuilder().getBuilder(), extensionRegistry); - profileCase_ = 102; - break; - } // case 818 - case 1602: - { - input.readMessage(getNoConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 200; - break; - } // case 1602 - case 1610: - { - input.readMessage( - getStaticServiceIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 201; - break; - } // case 1610 - case 1618: - { - input.readMessage( - getForwardSshConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 202; - break; - } // case 1618 - case 1626: - { - input.readMessage( - getPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry); - connectivityCase_ = 203; - break; - } // case 1626 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 802: { + input.readMessage( + getOracleProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getGcsProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getMysqlProfileFieldBuilder().getBuilder(), + extensionRegistry); + profileCase_ = 102; + break; + } // case 818 + case 1602: { + input.readMessage( + getNoConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 200; + break; + } // case 1602 + case 1610: { + input.readMessage( + getStaticServiceIpConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 201; + break; + } // case 1610 + case 1618: { + input.readMessage( + getForwardSshConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 202; + break; + } // case 1618 + case 1626: { + input.readMessage( + getPrivateConnectivityFieldBuilder().getBuilder(), + extensionRegistry); + connectivityCase_ = 203; + break; + } // case 1626 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1601,12 +1461,12 @@ public Builder mergeFrom( } // finally return this; } - private int profileCase_ = 0; private java.lang.Object profile_; - - public ProfileCase getProfileCase() { - return ProfileCase.forNumber(profileCase_); + public ProfileCase + getProfileCase() { + return ProfileCase.forNumber( + profileCase_); } public Builder clearProfile() { @@ -1618,9 +1478,10 @@ public Builder clearProfile() { private int connectivityCase_ = 0; private java.lang.Object connectivity_; - - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); } public Builder clearConnectivity() { @@ -1634,20 +1495,18 @@ public Builder clearConnectivity() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1656,21 +1515,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1678,35 +1536,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1716,21 +1567,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1740,58 +1587,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1807,17 +1635,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1828,21 +1653,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1855,15 +1676,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1876,15 +1693,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1892,48 +1705,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1941,58 +1742,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2008,17 +1790,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -2029,21 +1808,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -2056,15 +1831,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -2077,15 +1848,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -2093,66 +1860,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2161,13 +1918,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -2175,21 +1929,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -2201,8 +1954,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -2210,19 +1961,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -2230,95 +1979,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2327,21 +2072,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2349,35 +2093,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2387,21 +2124,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2410,19 +2143,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, - com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> - oracleProfileBuilder_; + com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> oracleProfileBuilder_; /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -2430,14 +2157,11 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override @@ -2455,8 +2179,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2477,8 +2199,6 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfi return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2497,8 +2217,6 @@ public Builder setOracleProfile( return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2507,14 +2225,10 @@ public Builder setOracleProfile( */ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfile value) { if (oracleProfileBuilder_ == null) { - if (profileCase_ == 100 - && profile_ - != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 100 && + profile_ != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2530,8 +2244,6 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OraclePro return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2555,8 +2267,6 @@ public Builder clearOracleProfile() { return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2567,8 +2277,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile.Builder getOracleProfi return getOracleProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2587,8 +2295,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2596,19 +2302,14 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, - com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> getOracleProfileFieldBuilder() { if (oracleProfileBuilder_ == null) { if (!(profileCase_ == 100)) { profile_ = com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } - oracleProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, - com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder>( + oracleProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_, getParentForChildren(), isClean()); @@ -2620,19 +2321,13 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, - com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> - gcsProfileBuilder_; + com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> gcsProfileBuilder_; /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -2640,14 +2335,11 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override @@ -2665,8 +2357,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2687,8 +2377,6 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile val return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2707,8 +2395,6 @@ public Builder setGcsProfile( return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2717,13 +2403,10 @@ public Builder setGcsProfile( */ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile value) { if (gcsProfileBuilder_ == null) { - if (profileCase_ == 101 - && profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 101 && + profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2739,8 +2422,6 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile v return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2764,8 +2445,6 @@ public Builder clearGcsProfile() { return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2776,8 +2455,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile.Builder getGcsProfileBuil return getGcsProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2796,8 +2473,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2805,19 +2480,14 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, - com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> getGcsProfileFieldBuilder() { if (gcsProfileBuilder_ == null) { if (!(profileCase_ == 101)) { profile_ = com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } - gcsProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, - com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder>( + gcsProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_, getParentForChildren(), isClean()); @@ -2829,19 +2499,13 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, - com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> - mysqlProfileBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> mysqlProfileBuilder_; /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -2849,14 +2513,11 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override @@ -2874,8 +2535,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2896,8 +2555,6 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2916,8 +2573,6 @@ public Builder setMysqlProfile( return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2926,13 +2581,10 @@ public Builder setMysqlProfile( */ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile value) { if (mysqlProfileBuilder_ == null) { - if (profileCase_ == 102 - && profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 102 && + profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2948,8 +2600,6 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfi return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2973,8 +2623,6 @@ public Builder clearMysqlProfile() { return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2985,8 +2633,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder getMysqlProfile return getMysqlProfileFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3005,8 +2651,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3014,19 +2658,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, - com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> getMysqlProfileFieldBuilder() { if (mysqlProfileBuilder_ == null) { if (!(profileCase_ == 102)) { profile_ = com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } - mysqlProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, - com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder>( + mysqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_, getParentForChildren(), isClean()); @@ -3038,19 +2677,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> - noConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> noConnectivityBuilder_; /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return Whether the noConnectivity field is set. */ @java.lang.Override @@ -3058,14 +2691,11 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return The noConnectivity. */ @java.lang.Override @@ -3083,16 +2713,13 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti } } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder setNoConnectivity( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3106,8 +2733,6 @@ public Builder setNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3126,26 +2751,18 @@ public Builder setNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder mergeNoConnectivity( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { - if (connectivityCase_ == 200 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder( - (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 200 && + connectivity_ != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3161,8 +2778,6 @@ public Builder mergeNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3186,21 +2801,16 @@ public Builder clearNoConnectivity() { return this; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder - getNoConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder getNoConnectivityBuilder() { return getNoConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3208,8 +2818,7 @@ public Builder clearNoConnectivity() { * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder - getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { if ((connectivityCase_ == 200) && (noConnectivityBuilder_ != null)) { return noConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3220,8 +2829,6 @@ public Builder clearNoConnectivity() { } } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3229,20 +2836,14 @@ public Builder clearNoConnectivity() { * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> getNoConnectivityFieldBuilder() { if (noConnectivityBuilder_ == null) { if (!(connectivityCase_ == 200)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); - } - noConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder>( + connectivity_ = com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); + } + noConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder>( (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_, getParentForChildren(), isClean()); @@ -3254,21 +2855,13 @@ public Builder clearNoConnectivity() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> - staticServiceIpConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> staticServiceIpConnectivityBuilder_; /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -3276,48 +2869,35 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { if (connectivityCase_ == 201) { return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } else { if (connectivityCase_ == 201) { return staticServiceIpConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - public Builder setStaticServiceIpConnectivity( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3331,15 +2911,11 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ public Builder setStaticServiceIpConnectivity( com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder builderForValue) { @@ -3353,29 +2929,18 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - public Builder mergeStaticServiceIpConnectivity( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 201 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 201 && + connectivity_ != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3391,15 +2956,11 @@ public Builder mergeStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ public Builder clearStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { @@ -3418,70 +2979,49 @@ public Builder clearStaticServiceIpConnectivity() { return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder - getStaticServiceIpConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder getStaticServiceIpConnectivityBuilder() { return getStaticServiceIpConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { if ((connectivityCase_ == 201) && (staticServiceIpConnectivityBuilder_ != null)) { return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); } else { if (connectivityCase_ == 201) { return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> getStaticServiceIpConnectivityFieldBuilder() { if (staticServiceIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 201)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); - } - staticServiceIpConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder>( + connectivity_ = com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); + } + staticServiceIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3493,21 +3033,13 @@ public Builder clearStaticServiceIpConnectivity() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> - forwardSshConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> forwardSshConnectivityBuilder_; /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -3515,48 +3047,35 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { if (connectivityCase_ == 202) { return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } else { if (connectivityCase_ == 202) { return forwardSshConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - public Builder setForwardSshConnectivity( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3570,15 +3089,11 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ public Builder setForwardSshConnectivity( com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder builderForValue) { @@ -3592,29 +3107,18 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - public Builder mergeForwardSshConnectivity( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 202 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) - connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 202 && + connectivity_ != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3630,15 +3134,11 @@ public Builder mergeForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ public Builder clearForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { @@ -3657,71 +3157,49 @@ public Builder clearForwardSshConnectivity() { return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder - getForwardSshConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder getForwardSshConnectivityBuilder() { return getForwardSshConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { if ((connectivityCase_ == 202) && (forwardSshConnectivityBuilder_ != null)) { return forwardSshConnectivityBuilder_.getMessageOrBuilder(); } else { if (connectivityCase_ == 202) { return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> getForwardSshConnectivityFieldBuilder() { if (forwardSshConnectivityBuilder_ == null) { if (!(connectivityCase_ == 202)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); - } - forwardSshConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder>( + connectivity_ = com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + forwardSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3733,20 +3211,13 @@ public Builder clearForwardSshConnectivity() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> - privateConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> privateConnectivityBuilder_; /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -3754,15 +3225,11 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; * @return The privateConnectivity. */ @java.lang.Override @@ -3780,17 +3247,13 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec } } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public Builder setPrivateConnectivity( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder setPrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3804,14 +3267,11 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ public Builder setPrivateConnectivity( com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder builderForValue) { @@ -3825,26 +3285,18 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public Builder mergePrivateConnectivity( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { - if (connectivityCase_ == 203 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 203 && + connectivity_ != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3860,14 +3312,11 @@ public Builder mergePrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ public Builder clearPrivateConnectivity() { if (privateConnectivityBuilder_ == null) { @@ -3886,32 +3335,24 @@ public Builder clearPrivateConnectivity() { return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder - getPrivateConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { return getPrivateConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if ((connectivityCase_ == 203) && (privateConnectivityBuilder_ != null)) { return privateConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3922,30 +3363,21 @@ public Builder clearPrivateConnectivity() { } } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> getPrivateConnectivityFieldBuilder() { if (privateConnectivityBuilder_ == null) { if (!(connectivityCase_ == 203)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); - } - privateConnectivityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder>( + connectivity_ = com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); + } + privateConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3955,9 +3387,9 @@ public Builder clearPrivateConnectivity() { onChanged(); return privateConnectivityBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3967,12 +3399,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ConnectionProfile) private static final com.google.cloud.datastream.v1alpha1.ConnectionProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ConnectionProfile(); } @@ -3981,27 +3413,27 @@ public static com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4016,4 +3448,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java index 5aef99ab0ab2..15a2eff0c3f0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ConnectionProfileOrBuilder - extends +public interface ConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface ConnectionProfileOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,73 +121,59 @@ public interface ConnectionProfileOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile(); /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -243,32 +183,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile(); /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -278,32 +210,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile(); /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -313,32 +237,24 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return Whether the noConnectivity field is set. */ boolean hasNoConnectivity(); /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return The noConnectivity. */ com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity(); /** - * - * *
    * No connectivity option chosen.
    * 
@@ -348,127 +264,87 @@ java.lang.String getLabelsOrDefault( com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return Whether the staticServiceIpConnectivity field is set. */ boolean hasStaticServiceIpConnectivity(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return The staticServiceIpConnectivity. */ com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return Whether the forwardSshConnectivity field is set. */ boolean hasForwardSshConnectivity(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return The forwardSshConnectivity. */ com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder(); /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return Whether the privateConnectivity field is set. */ boolean hasPrivateConnectivity(); /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return The privateConnectivity. */ com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnectivity(); /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder(); public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ProfileCase getProfileCase(); - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ConnectivityCase - getConnectivityCase(); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ConnectivityCase getConnectivityCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java index 07cb55dfa2c0..c63d97773de4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} + */ +public final class CreateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -38,45 +23,38 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +63,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -118,18 +94,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object connectionProfileId_ = ""; /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ @java.lang.Override @@ -138,29 +110,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -171,16 +143,11 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -188,50 +155,33 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -247,7 +197,6 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -256,15 +205,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -280,15 +228,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -297,7 +246,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +257,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -351,21 +301,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionProfileId() + .equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,130 +346,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -533,16 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -556,17 +502,13 @@ public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result = - new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -575,10 +517,9 @@ private void buildPartial0( result.connectionProfileId_ = connectionProfileId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.connectionProfile_ = - connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -589,51 +530,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -678,38 +614,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - connectionProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + connectionProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,27 +651,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -748,23 +675,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -772,39 +696,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -814,23 +727,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -840,20 +747,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionProfileId_ = ""; /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -862,21 +767,20 @@ public java.lang.String getConnectionProfileId() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -884,35 +788,28 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } connectionProfileId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { @@ -922,21 +819,17 @@ public Builder clearConnectionProfileId() { return this; } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); connectionProfileId_ = value; bitField0_ |= 0x00000002; @@ -946,61 +839,41 @@ public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1014,15 +887,11 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -1036,23 +905,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && connectionProfile_ != null - && connectionProfile_ - != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + connectionProfile_ != null && + connectionProfile_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -1065,15 +928,11 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,66 +945,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000004; onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1153,8 +994,6 @@ public Builder clearConnectionProfile() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1170,13 +1009,13 @@ public Builder clearConnectionProfile() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1185,8 +1024,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1202,14 +1039,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1055,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,22 +1070,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1265,7 +1097,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1275,8 +1106,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1292,23 +1121,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,43 +1145,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1191,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java index 44f0c3136620..3e8e678d96f7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateConnectionProfileRequestOrBuilder - extends +public interface CreateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString getConnectionProfileIdBytes(); + com.google.protobuf.ByteString + getConnectionProfileIdBytes(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java index dc182c8233d2..e1f5dbbf445b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ -public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} + */ +public final class CreatePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) CreatePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePrivateConnectionRequest.newBuilder() to construct. - private CreatePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePrivateConnectionRequest() { parent_ = ""; privateConnectionId_ = ""; @@ -38,45 +23,38 @@ private CreatePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +63,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -118,18 +94,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionId_ = ""; /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ @java.lang.Override @@ -138,29 +110,29 @@ public java.lang.String getPrivateConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; } } /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -171,16 +143,11 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ @java.lang.Override @@ -188,50 +155,33 @@ public boolean hasPrivateConnection() { return privateConnection_ != null; } /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection() { - return privateConnection_ == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; } /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder - getPrivateConnectionOrBuilder() { - return privateConnection_ == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() - : privateConnection_; + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -247,7 +197,6 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -256,15 +205,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -280,15 +228,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -297,7 +246,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +257,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +287,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); } if (privateConnection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrivateConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -351,21 +301,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = - (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPrivateConnectionId() + .equals(other.getPrivateConnectionId())) return false; if (hasPrivateConnection() != other.hasPrivateConnection()) return false; if (hasPrivateConnection()) { - if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection() + .equals(other.getPrivateConnection())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,130 +346,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -533,16 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance(); } @java.lang.Override @@ -556,17 +502,13 @@ public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result = - new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -575,10 +517,9 @@ private void buildPartial0( result.privateConnectionId_ = privateConnectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.privateConnection_ = - privateConnectionBuilder_ == null - ? privateConnection_ - : privateConnectionBuilder_.build(); + result.privateConnection_ = privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -589,51 +530,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -678,38 +614,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - privateConnectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -719,27 +651,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -748,23 +675,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -772,39 +696,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -814,23 +727,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -840,20 +747,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object privateConnectionId_ = ""; /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ public java.lang.String getPrivateConnectionId() { java.lang.Object ref = privateConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; @@ -862,21 +767,20 @@ public java.lang.String getPrivateConnectionId() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -884,35 +788,28 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } privateConnectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPrivateConnectionId() { @@ -922,21 +819,17 @@ public Builder clearPrivateConnectionId() { return this; } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateConnectionId_ = value; bitField0_ |= 0x00000002; @@ -946,61 +839,41 @@ public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> - privateConnectionBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> privateConnectionBuilder_; /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ public boolean hasPrivateConnection() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection() { if (privateConnectionBuilder_ == null) { - return privateConnection_ == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; } else { return privateConnectionBuilder_.getMessage(); } } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPrivateConnection( - com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder setPrivateConnection(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1014,15 +887,11 @@ public Builder setPrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrivateConnection( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -1036,23 +905,17 @@ public Builder setPrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergePrivateConnection( - com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder mergePrivateConnection(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && privateConnection_ != null - && privateConnection_ - != com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + privateConnection_ != null && + privateConnection_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) { getPrivateConnectionBuilder().mergeFrom(value); } else { privateConnection_ = value; @@ -1065,15 +928,11 @@ public Builder mergePrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPrivateConnection() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1086,66 +945,48 @@ public Builder clearPrivateConnection() { return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - getPrivateConnectionBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPrivateConnectionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder - getPrivateConnectionOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { if (privateConnectionBuilder_ != null) { return privateConnectionBuilder_.getMessageOrBuilder(); } else { - return privateConnection_ == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() - : privateConnection_; + return privateConnection_ == null ? + com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; } } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> getPrivateConnectionFieldBuilder() { if (privateConnectionBuilder_ == null) { - privateConnectionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( - getPrivateConnection(), getParentForChildren(), isClean()); + privateConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( + getPrivateConnection(), + getParentForChildren(), + isClean()); privateConnection_ = null; } return privateConnectionBuilder_; @@ -1153,8 +994,6 @@ public Builder clearPrivateConnection() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1170,13 +1009,13 @@ public Builder clearPrivateConnection() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1185,8 +1024,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1202,14 +1039,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1217,8 +1055,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,22 +1070,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1265,7 +1097,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1275,8 +1106,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1292,23 +1121,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1318,43 +1145,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,8 +1191,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java index 50b7ee52d661..672386df980d 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreatePrivateConnectionRequestOrBuilder - extends +public interface CreatePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ java.lang.String getPrivateConnectionId(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - com.google.protobuf.ByteString getPrivateConnectionIdBytes(); + com.google.protobuf.ByteString + getPrivateConnectionIdBytes(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ boolean hasPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java index 76cf2bb209db..b6bb223622db 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route creation request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateRouteRequest} */ -public final class CreateRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateRouteRequest) CreateRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRouteRequest.newBuilder() to construct. private CreateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRouteRequest() { parent_ = ""; routeId_ = ""; @@ -45,45 +27,38 @@ private CreateRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -92,31 +67,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -125,18 +98,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int ROUTE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object routeId_ = ""; /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ @java.lang.Override @@ -145,29 +114,29 @@ public java.lang.String getRouteId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; } } /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ @java.lang.Override - public com.google.protobuf.ByteString getRouteIdBytes() { + public com.google.protobuf.ByteString + getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routeId_ = b; return b; } else { @@ -178,16 +147,11 @@ public com.google.protobuf.ByteString getRouteIdBytes() { public static final int ROUTE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Route route_; /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ @java.lang.Override @@ -195,49 +159,33 @@ public boolean hasRoute() { return route_ != null; } /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Route getRoute() { - return route_ == null - ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() - : route_; + return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; } /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { - return route_ == null - ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() - : route_; + return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -253,7 +201,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -262,15 +209,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -286,15 +232,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -303,7 +250,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -315,7 +261,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -344,7 +291,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); } if (route_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRoute()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -357,21 +305,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = - (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRouteId().equals(other.getRouteId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRouteId() + .equals(other.getRouteId())) return false; if (hasRoute() != other.hasRoute()) return false; if (hasRoute()) { - if (!getRoute().equals(other.getRoute())) return false; + if (!getRoute() + .equals(other.getRoute())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -399,136 +350,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * route creation request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateRouteRequest) com.google.cloud.datastream.v1alpha1.CreateRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.CreateRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -545,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override @@ -566,11 +510,8 @@ public com.google.cloud.datastream.v1alpha1.CreateRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateRouteRequest result = - new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.CreateRouteRequest result = new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -584,7 +525,9 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateRouteReque result.routeId_ = routeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.route_ = routeBuilder_ == null ? route_ : routeBuilder_.build(); + result.route_ = routeBuilder_ == null + ? route_ + : routeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -595,39 +538,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateRouteReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -635,8 +577,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -681,37 +622,34 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - routeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getRouteFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + routeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getRouteFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,27 +659,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -750,23 +683,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -774,39 +704,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -816,23 +735,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -842,20 +755,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object routeId_ = ""; /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ public java.lang.String getRouteId() { java.lang.Object ref = routeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; @@ -864,21 +775,20 @@ public java.lang.String getRouteId() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - public com.google.protobuf.ByteString getRouteIdBytes() { + public com.google.protobuf.ByteString + getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routeId_ = b; return b; } else { @@ -886,35 +796,28 @@ public com.google.protobuf.ByteString getRouteIdBytes() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The routeId to set. * @return This builder for chaining. */ - public Builder setRouteId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRouteId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } routeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearRouteId() { @@ -924,21 +827,17 @@ public Builder clearRouteId() { return this; } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for routeId to set. * @return This builder for chaining. */ - public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRouteIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); routeId_ = value; bitField0_ |= 0x00000002; @@ -948,58 +847,39 @@ public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.Route route_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> - routeBuilder_; + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> routeBuilder_; /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ public boolean hasRoute() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ public com.google.cloud.datastream.v1alpha1.Route getRoute() { if (routeBuilder_ == null) { - return route_ == null - ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() - : route_; + return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; } else { return routeBuilder_.getMessage(); } } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route value) { if (routeBuilder_ == null) { @@ -1015,17 +895,14 @@ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder setRoute( + com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routeBuilder_ == null) { route_ = builderForValue.build(); } else { @@ -1036,21 +913,17 @@ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route.Builder build return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { if (routeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && route_ != null - && route_ != com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + route_ != null && + route_ != com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()) { getRouteBuilder().mergeFrom(value); } else { route_ = value; @@ -1063,15 +936,11 @@ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRoute() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1084,15 +953,11 @@ public Builder clearRoute() { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.Route.Builder getRouteBuilder() { bitField0_ |= 0x00000004; @@ -1100,48 +965,36 @@ public com.google.cloud.datastream.v1alpha1.Route.Builder getRouteBuilder() { return getRouteFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { if (routeBuilder_ != null) { return routeBuilder_.getMessageOrBuilder(); } else { - return route_ == null - ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() - : route_; + return route_ == null ? + com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; } } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> getRouteFieldBuilder() { if (routeBuilder_ == null) { - routeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( - getRoute(), getParentForChildren(), isClean()); + routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( + getRoute(), + getParentForChildren(), + isClean()); route_ = null; } return routeBuilder_; @@ -1149,8 +1002,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1166,13 +1017,13 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1181,8 +1032,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1198,14 +1047,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1213,8 +1063,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1230,22 +1078,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1261,7 +1105,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1271,8 +1114,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1288,23 +1129,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1314,12 +1153,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateRouteRequest) private static final com.google.cloud.datastream.v1alpha1.CreateRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(); } @@ -1328,27 +1167,27 @@ public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1363,4 +1202,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java index 26aa1064debf..d7fef1c2bb24 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateRouteRequestOrBuilder - extends +public interface CreateRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ java.lang.String getRouteId(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - com.google.protobuf.ByteString getRouteIdBytes(); + com.google.protobuf.ByteString + getRouteIdBytes(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ boolean hasRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ com.google.cloud.datastream.v1alpha1.Route getRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java index 0b5163df3c14..f12cb5b6be39 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} */ -public final class CreateStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} + */ +public final class CreateStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateStreamRequest) CreateStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateStreamRequest.newBuilder() to construct. private CreateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateStreamRequest() { parent_ = ""; streamId_ = ""; @@ -37,45 +23,38 @@ private CreateStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -84,31 +63,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -117,18 +94,14 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int STREAM_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object streamId_ = ""; /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ @java.lang.Override @@ -137,29 +110,29 @@ public java.lang.String getStreamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; } } /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ @java.lang.Override - public com.google.protobuf.ByteString getStreamIdBytes() { + public com.google.protobuf.ByteString + getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streamId_ = b; return b; } else { @@ -170,16 +143,11 @@ public com.google.protobuf.ByteString getStreamIdBytes() { public static final int STREAM_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -187,49 +155,33 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream getStream() { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -245,7 +197,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -254,15 +205,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -278,15 +228,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -297,15 +248,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** - * - * *
    * Optional. Only validate the stream, but do not create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -316,14 +264,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** - * - * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -332,7 +277,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -379,16 +324,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -398,23 +346,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = - (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getStreamId().equals(other.getStreamId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getStreamId() + .equals(other.getStreamId())) return false; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -437,137 +390,136 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateStreamRequest) com.google.cloud.datastream.v1alpha1.CreateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.CreateStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override @@ -607,11 +559,8 @@ public com.google.cloud.datastream.v1alpha1.CreateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateStreamRequest result = - new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.CreateStreamRequest result = new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -625,7 +574,9 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateStreamRequ result.streamId_ = streamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -642,39 +593,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateStreamRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -682,8 +632,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -734,49 +683,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - streamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + streamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -786,27 +730,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -815,23 +754,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -839,39 +775,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -881,23 +806,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -907,20 +826,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object streamId_ = ""; /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ public java.lang.String getStreamId() { java.lang.Object ref = streamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; @@ -929,21 +846,20 @@ public java.lang.String getStreamId() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - public com.google.protobuf.ByteString getStreamIdBytes() { + public com.google.protobuf.ByteString + getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streamId_ = b; return b; } else { @@ -951,35 +867,28 @@ public com.google.protobuf.ByteString getStreamIdBytes() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The streamId to set. * @return This builder for chaining. */ - public Builder setStreamId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStreamId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } streamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearStreamId() { @@ -989,21 +898,17 @@ public Builder clearStreamId() { return this; } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for streamId to set. * @return This builder for chaining. */ - public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStreamIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); streamId_ = value; bitField0_ |= 0x00000002; @@ -1013,58 +918,39 @@ public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ public com.google.cloud.datastream.v1alpha1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { @@ -1080,17 +966,14 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -1101,21 +984,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder bui return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && stream_ != null - && stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + stream_ != null && + stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1128,15 +1007,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1149,15 +1024,11 @@ public Builder clearStream() { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000004; @@ -1165,48 +1036,36 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; @@ -1214,8 +1073,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1231,13 +1088,13 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1246,8 +1103,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1263,14 +1118,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1278,8 +1134,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1295,22 +1149,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1326,7 +1176,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1336,8 +1185,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1353,14 +1200,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1368,17 +1213,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1386,35 +1228,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1424,16 +1260,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1441,33 +1274,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1476,9 +1303,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1488,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateStreamRequest) private static final com.google.cloud.datastream.v1alpha1.CreateStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(); } @@ -1502,27 +1329,27 @@ public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1537,4 +1364,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java index 0f53c4bbce39..6aba752238de 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateStreamRequestOrBuilder - extends +public interface CreateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ java.lang.String getStreamId(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - com.google.protobuf.ByteString getStreamIdBytes(); + com.google.protobuf.ByteString + getStreamIdBytes(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,34 +109,28 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Only validate the stream, but do not create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java index 8a96cda39e35..d80842c2a1bc 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} + */ +public final class DeleteConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -37,45 +22,38 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -84,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -117,12 +93,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -147,15 +119,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -171,15 +142,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -188,7 +160,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -230,16 +202,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,130 +234,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -395,16 +363,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -418,17 +384,13 @@ public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result = - new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -442,51 +404,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -523,25 +480,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -551,27 +505,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -580,23 +529,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -604,39 +550,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -646,23 +581,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -672,8 +601,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -689,13 +616,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -704,8 +631,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -721,14 +646,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -736,8 +662,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -753,22 +677,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -784,7 +704,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -794,8 +713,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -811,23 +728,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,43 +752,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,8 +798,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java index c9765a1ba1c6..7a9b1e2dedee 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteConnectionProfileRequestOrBuilder - extends +public interface DeleteConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java index 9100f76da997..f0516e45ea0c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} */ -public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} + */ +public final class DeletePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) DeletePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePrivateConnectionRequest.newBuilder() to construct. - private DeletePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePrivateConnectionRequest() { name_ = ""; requestId_ = ""; @@ -37,45 +22,38 @@ private DeletePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -84,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -117,12 +93,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -138,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -147,15 +119,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -171,15 +142,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -190,15 +162,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** - * - * *
    * Optional. If set to true, any child routes that belong to this PrivateConnection will
    * also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -207,7 +176,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +187,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -245,7 +214,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -255,17 +225,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = - (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -282,137 +254,133 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -424,16 +392,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance(); } @java.lang.Override @@ -447,17 +413,13 @@ public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result = - new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -474,51 +436,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -558,31 +515,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - force_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -592,27 +545,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -621,23 +569,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -645,39 +590,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -687,23 +621,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -713,8 +641,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -730,13 +656,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -745,8 +671,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -762,14 +686,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -777,8 +702,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -794,22 +717,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -825,7 +744,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -835,8 +753,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -852,14 +768,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; @@ -867,17 +781,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -885,35 +796,29 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -922,9 +827,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -934,43 +839,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -982,8 +885,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java index 0a01c32774d1..825736c91c37 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeletePrivateConnectionRequestOrBuilder - extends +public interface DeletePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,21 +62,18 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. If set to true, any child routes that belong to this PrivateConnection will
    * also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java index b62a4d7f229a..1fbc359529ac 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route deletion request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteRouteRequest} */ -public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteRouteRequest) DeleteRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRouteRequest.newBuilder() to construct. private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRouteRequest() { name_ = ""; requestId_ = ""; @@ -44,45 +26,38 @@ private DeleteRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -91,31 +66,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -124,12 +97,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -145,7 +115,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -154,15 +123,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -178,15 +146,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -195,7 +164,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,7 +175,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -237,16 +206,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -268,136 +238,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * route deletion request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteRouteRequest) com.google.cloud.datastream.v1alpha1.DeleteRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override @@ -429,11 +392,8 @@ public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest result = - new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest result = new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -452,39 +412,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteRouteReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -492,8 +451,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -530,25 +488,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,27 +513,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -587,23 +537,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -611,39 +558,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -653,23 +589,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -679,8 +609,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -696,13 +624,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -711,8 +639,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -728,14 +654,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -743,8 +670,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -760,22 +685,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -791,7 +712,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -801,8 +721,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -818,23 +736,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -844,12 +760,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteRouteRequest) private static final com.google.cloud.datastream.v1alpha1.DeleteRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(); } @@ -858,27 +774,27 @@ public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,4 +809,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java index 82e76db87306..88c05759608b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteRouteRequestOrBuilder - extends +public interface DeleteRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java index 5ed5652f6e2b..f68c8a6c4024 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} */ -public final class DeleteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} + */ +public final class DeleteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteStreamRequest) DeleteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteStreamRequest.newBuilder() to construct. private DeleteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteStreamRequest() { name_ = ""; requestId_ = ""; @@ -36,45 +22,38 @@ private DeleteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -83,31 +62,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -116,12 +93,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -137,7 +111,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -146,15 +119,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -170,15 +142,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -187,7 +160,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +171,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -229,16 +202,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,128 +234,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteStreamRequest) com.google.cloud.datastream.v1alpha1.DeleteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -392,9 +363,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override @@ -413,11 +384,8 @@ public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest result = - new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest result = new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -436,39 +404,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteStreamRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -476,8 +443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -514,25 +480,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,27 +505,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -571,23 +529,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -595,39 +550,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -637,23 +581,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -663,8 +601,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -680,13 +616,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -695,8 +631,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,14 +646,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -727,8 +662,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -744,22 +677,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -775,7 +704,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -785,8 +713,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -802,23 +728,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -828,12 +752,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteStreamRequest) private static final com.google.cloud.datastream.v1alpha1.DeleteStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(); } @@ -842,27 +766,27 @@ public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -877,4 +801,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java index b266e7a4331e..a13c99b2cc2c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteStreamRequestOrBuilder - extends +public interface DeleteStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java similarity index 63% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java index d027261a3da4..f75c3692a9cb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java @@ -1,83 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * The configuration of the stream destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DestinationConfig} */ -public final class DestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DestinationConfig) DestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DestinationConfig.newBuilder() to construct. private DestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DestinationConfig() { destinationConnectionProfileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DestinationConfig.class, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.DestinationConfig.class, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); } private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - public enum DestinationStreamConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; - private DestinationStreamConfigCase(int value) { this.value = value; } @@ -93,38 +71,31 @@ public static DestinationStreamConfigCase valueOf(int value) { public static DestinationStreamConfigCase forNumber(int value) { switch (value) { - case 100: - return GCS_DESTINATION_CONFIG; - case 0: - return DESTINATIONSTREAMCONFIG_NOT_SET; - default: - return null; + case 100: return GCS_DESTINATION_CONFIG; + case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DestinationStreamConfigCase getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); + public DestinationStreamConfigCase + getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber( + destinationStreamConfigCase_); } public static final int DESTINATION_CONNECTION_PROFILE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object destinationConnectionProfileName_ = ""; /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConnectionProfileName. */ @java.lang.Override @@ -133,30 +104,29 @@ public java.lang.String getDestinationConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfileName_ = s; return s; } } /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -166,9 +136,7 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() public static final int GCS_DESTINATION_CONFIG_FIELD_NUMBER = 100; /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -176,33 +144,28 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,15 +177,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, destinationConnectionProfileName_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - output.writeMessage( - 100, - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } getUnknownFields().writeTo(output); } @@ -234,15 +195,11 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 1, destinationConnectionProfileName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -252,21 +209,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DestinationConfig other = - (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.DestinationConfig other = (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; - if (!getDestinationConnectionProfileName().equals(other.getDestinationConnectionProfileName())) - return false; - if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) - return false; + if (!getDestinationConnectionProfileName() + .equals(other.getDestinationConnectionProfileName())) return false; + if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) return false; switch (destinationStreamConfigCase_) { case 100: - if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; + if (!getGcsDestinationConfig() + .equals(other.getGcsDestinationConfig())) return false; break; case 0: default: @@ -298,136 +254,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DestinationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the stream destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DestinationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DestinationConfig) com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DestinationConfig.class, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.DestinationConfig.class, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DestinationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override @@ -463,11 +412,8 @@ public com.google.cloud.datastream.v1alpha1.DestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DestinationConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.DestinationConfig result = - new com.google.cloud.datastream.v1alpha1.DestinationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DestinationConfig result = new com.google.cloud.datastream.v1alpha1.DestinationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -483,7 +429,8 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DestinationConfi private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DestinationConfig result) { result.destinationStreamConfigCase_ = destinationStreamConfigCase_; result.destinationStreamConfig_ = this.destinationStreamConfig_; - if (destinationStreamConfigCase_ == 100 && gcsDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 100 && + gcsDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } } @@ -492,39 +439,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Destination public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DestinationConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DestinationConfig)other); } else { super.mergeFrom(other); return this; @@ -532,23 +478,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DestinationConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) return this; if (!other.getDestinationConnectionProfileName().isEmpty()) { destinationConnectionProfileName_ = other.destinationConnectionProfileName_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDestinationStreamConfigCase()) { - case GCS_DESTINATION_CONFIG: - { - mergeGcsDestinationConfig(other.getGcsDestinationConfig()); - break; - } - case DESTINATIONSTREAMCONFIG_NOT_SET: - { - break; - } + case GCS_DESTINATION_CONFIG: { + mergeGcsDestinationConfig(other.getGcsDestinationConfig()); + break; + } + case DESTINATIONSTREAMCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -576,26 +519,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - destinationConnectionProfileName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: - { - input.readMessage( - getGcsDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); - destinationStreamConfigCase_ = 100; - break; - } // case 802 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + destinationConnectionProfileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: { + input.readMessage( + getGcsDestinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + destinationStreamConfigCase_ = 100; + break; + } // case 802 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -605,12 +546,12 @@ public Builder mergeFrom( } // finally return this; } - private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - - public DestinationStreamConfigCase getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); + public DestinationStreamConfigCase + getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber( + destinationStreamConfigCase_); } public Builder clearDestinationStreamConfig() { @@ -624,22 +565,18 @@ public Builder clearDestinationStreamConfig() { private java.lang.Object destinationConnectionProfileName_ = ""; /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConnectionProfileName. */ public java.lang.String getDestinationConnectionProfileName() { java.lang.Object ref = destinationConnectionProfileName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfileName_ = s; return s; @@ -648,23 +585,20 @@ public java.lang.String getDestinationConnectionProfileName() { } } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ - public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -672,66 +606,48 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() } } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The destinationConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationConnectionProfileName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationConnectionProfileName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearDestinationConnectionProfileName() { - destinationConnectionProfileName_ = - getDefaultInstance().getDestinationConnectionProfileName(); + destinationConnectionProfileName_ = getDefaultInstance().getDestinationConnectionProfileName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for destinationConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationConnectionProfileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationConnectionProfileName_ = value; bitField0_ |= 0x00000001; @@ -740,14 +656,9 @@ public Builder setDestinationConnectionProfileNameBytes(com.google.protobuf.Byte } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> - gcsDestinationConfigBuilder_; + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> gcsDestinationConfigBuilder_; /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -755,17 +666,14 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } else { @@ -776,11 +684,9 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinati } } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder setGcsDestinationConfig( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -794,8 +700,7 @@ public Builder setGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ public Builder setGcsDestinationConfig( com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder builderForValue) { @@ -809,21 +714,14 @@ public Builder setGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder mergeGcsDestinationConfig( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 100 - && destinationStreamConfig_ - != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (destinationStreamConfigCase_ == 100 && + destinationStreamConfig_ != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_) + .mergeFrom(value).buildPartial(); } else { destinationStreamConfig_ = value; } @@ -839,8 +737,7 @@ public Builder mergeGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ public Builder clearGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { @@ -859,51 +756,38 @@ public Builder clearGcsDestinationConfig() { return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder - getGcsDestinationConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder getGcsDestinationConfigBuilder() { return getGcsDestinationConfigFieldBuilder().getBuilder(); } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 100) && (gcsDestinationConfigBuilder_ != null)) { return gcsDestinationConfigBuilder_.getMessageOrBuilder(); } else { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> getGcsDestinationConfigFieldBuilder() { if (gcsDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 100)) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } - gcsDestinationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder>( - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_, + gcsDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder>( + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_, getParentForChildren(), isClean()); destinationStreamConfig_ = null; @@ -912,9 +796,9 @@ public Builder clearGcsDestinationConfig() { onChanged(); return gcsDestinationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -924,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DestinationConfig) private static final com.google.cloud.datastream.v1alpha1.DestinationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DestinationConfig(); } @@ -938,27 +822,27 @@ public static com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java similarity index 55% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java index 82556d05594d..7442f5463feb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface DestinationConfigOrBuilder - extends +public interface DestinationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DestinationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConnectionProfileName. */ java.lang.String getDestinationConnectionProfileName(); /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ - com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return Whether the gcsDestinationConfig field is set. */ boolean hasGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder(); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase - getDestinationStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java index 22c7e8bf8365..f727b7c5b525 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java @@ -1,85 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Request message for 'discover' ConnectionProfile request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest} */ -public final class DiscoverConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DiscoverConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) DiscoverConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileRequest.newBuilder() to construct. - private DiscoverConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiscoverConnectionProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiscoverConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; - public enum TargetCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_PROFILE(200), CONNECTION_PROFILE_NAME(201), TARGET_NOT_SET(0); private final int value; - private TargetCase(int value) { this.value = value; } @@ -95,38 +72,32 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 200: - return CONNECTION_PROFILE; - case 201: - return CONNECTION_PROFILE_NAME; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 200: return CONNECTION_PROFILE; + case 201: return CONNECTION_PROFILE_NAME; + case 0: return TARGET_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } private int depthCase_ = 0; private java.lang.Object depth_; - public enum DepthCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECURSIVE(3), RECURSION_DEPTH(4), DEPTH_NOT_SET(0); private final int value; - private DepthCase(int value) { this.value = value; } @@ -142,38 +113,32 @@ public static DepthCase valueOf(int value) { public static DepthCase forNumber(int value) { switch (value) { - case 3: - return RECURSIVE; - case 4: - return RECURSION_DEPTH; - case 0: - return DEPTH_NOT_SET; - default: - return null; + case 3: return RECURSIVE; + case 4: return RECURSION_DEPTH; + case 0: return DEPTH_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DepthCase getDepthCase() { - return DepthCase.forNumber(depthCase_); + public DepthCase + getDepthCase() { + return DepthCase.forNumber( + depthCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public enum DataObjectCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; - private DataObjectCase(int value) { this.value = value; } @@ -189,42 +154,33 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_RDBMS; - case 101: - return MYSQL_RDBMS; - case 0: - return DATAOBJECT_NOT_SET; - default: - return null; + case 100: return ORACLE_RDBMS; + case 101: return MYSQL_RDBMS; + case 0: return DATAOBJECT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -233,32 +189,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -268,14 +222,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -283,26 +234,21 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -310,38 +256,31 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { @@ -352,7 +291,8 @@ public java.lang.String getConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -361,24 +301,23 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -390,15 +329,12 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { public static final int RECURSIVE_FIELD_NUMBER = 3; /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ @java.lang.Override @@ -406,15 +342,12 @@ public boolean hasRecursive() { return depthCase_ == 3; } /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return The recursive. */ @java.lang.Override @@ -427,14 +360,11 @@ public boolean getRecursive() { public static final int RECURSION_DEPTH_FIELD_NUMBER = 4; /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ @java.lang.Override @@ -442,14 +372,11 @@ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ @java.lang.Override @@ -462,14 +389,11 @@ public int getRecursionDepth() { public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -477,26 +401,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -506,21 +425,18 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -528,26 +444,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -557,13 +468,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -575,15 +485,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (depthCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) depth_)); + output.writeBool( + 3, (boolean)((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - output.writeInt32(4, (int) ((java.lang.Integer) depth_)); + output.writeInt32( + 4, (int)((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); @@ -610,29 +523,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (depthCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) depth_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 4, (int) ((java.lang.Integer) depth_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 4, (int)((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } if (targetCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); @@ -645,22 +555,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; break; case 201: - if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; + if (!getConnectionProfileName() + .equals(other.getConnectionProfileName())) return false; break; case 0: default: @@ -668,10 +580,12 @@ public boolean equals(final java.lang.Object obj) { if (!getDepthCase().equals(other.getDepthCase())) return false; switch (depthCase_) { case 3: - if (getRecursive() != other.getRecursive()) return false; + if (getRecursive() + != other.getRecursive()) return false; break; case 4: - if (getRecursionDepth() != other.getRecursionDepth()) return false; + if (getRecursionDepth() + != other.getRecursionDepth()) return false; break; case 0: default: @@ -679,10 +593,12 @@ public boolean equals(final java.lang.Object obj) { if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -715,7 +631,8 @@ public int hashCode() { switch (depthCase_) { case 3: hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecursive()); break; case 4: hash = (37 * hash) + RECURSION_DEPTH_FIELD_NUMBER; @@ -742,138 +659,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for 'discover' ConnectionProfile request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -898,16 +806,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -921,39 +827,37 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest bui @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result = - new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 200 && connectionProfileBuilder_ != null) { + if (targetCase_ == 200 && + connectionProfileBuilder_ != null) { result.target_ = connectionProfileBuilder_.build(); } result.depthCase_ = depthCase_; result.depth_ = this.depth_; result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && + oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && + mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } } @@ -962,105 +866,91 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case CONNECTION_PROFILE: - { - mergeConnectionProfile(other.getConnectionProfile()); - break; - } - case CONNECTION_PROFILE_NAME: - { - targetCase_ = 201; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: - { - break; - } + case CONNECTION_PROFILE: { + mergeConnectionProfile(other.getConnectionProfile()); + break; + } + case CONNECTION_PROFILE_NAME: { + targetCase_ = 201; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: { + break; + } } switch (other.getDepthCase()) { - case RECURSIVE: - { - setRecursive(other.getRecursive()); - break; - } - case RECURSION_DEPTH: - { - setRecursionDepth(other.getRecursionDepth()); - break; - } - case DEPTH_NOT_SET: - { - break; - } + case RECURSIVE: { + setRecursive(other.getRecursive()); + break; + } + case RECURSION_DEPTH: { + setRecursionDepth(other.getRecursionDepth()); + break; + } + case DEPTH_NOT_SET: { + break; + } } switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: - { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: - { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: - { - break; - } + case ORACLE_RDBMS: { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1088,57 +978,54 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: - { - depth_ = input.readBool(); - depthCase_ = 3; - break; - } // case 24 - case 32: - { - depth_ = input.readInt32(); - depthCase_ = 4; - break; - } // case 32 - case 802: - { - input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 1602: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - targetCase_ = 200; - break; - } // case 1602 - case 1610: - { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } // case 1610 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: { + depth_ = input.readBool(); + depthCase_ = 3; + break; + } // case 24 + case 32: { + depth_ = input.readInt32(); + depthCase_ = 4; + break; + } // case 32 + case 802: { + input.readMessage( + getOracleRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 1602: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + targetCase_ = 200; + break; + } // case 1602 + case 1610: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } // case 1610 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1148,12 +1035,12 @@ public Builder mergeFrom( } // finally return this; } - private int targetCase_ = 0; private java.lang.Object target_; - - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } public Builder clearTarget() { @@ -1165,9 +1052,10 @@ public Builder clearTarget() { private int depthCase_ = 0; private java.lang.Object depth_; - - public DepthCase getDepthCase() { - return DepthCase.forNumber(depthCase_); + public DepthCase + getDepthCase() { + return DepthCase.forNumber( + depthCase_); } public Builder clearDepth() { @@ -1179,9 +1067,10 @@ public Builder clearDepth() { private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public Builder clearDataObject() { @@ -1195,23 +1084,19 @@ public Builder clearDataObject() { private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1220,24 +1105,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1245,41 +1127,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -1289,24 +1160,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1315,19 +1180,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -1335,14 +1194,11 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override @@ -1360,16 +1216,13 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder setConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1383,8 +1236,6 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1403,25 +1254,18 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (targetCase_ == 200 - && target_ - != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { - target_ = - com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) - .mergeFrom(value) - .buildPartial(); + if (targetCase_ == 200 && + target_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) + .mergeFrom(value).buildPartial(); } else { target_ = value; } @@ -1437,8 +1281,6 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1462,21 +1304,16 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1484,8 +1321,7 @@ public Builder clearConnectionProfile() { * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { @@ -1496,8 +1332,6 @@ public Builder clearConnectionProfile() { } } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1505,19 +1339,14 @@ public Builder clearConnectionProfile() { * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_, getParentForChildren(), isClean()); @@ -1529,14 +1358,11 @@ public Builder clearConnectionProfile() { } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1544,14 +1370,11 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ @java.lang.Override @@ -1561,7 +1384,8 @@ public java.lang.String getConnectionProfileName() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -1572,25 +1396,24 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -1600,35 +1423,28 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { } } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @param value The connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } targetCase_ = 201; target_ = value; onChanged(); return this; } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return This builder for chaining. */ public Builder clearConnectionProfileName() { @@ -1640,21 +1456,17 @@ public Builder clearConnectionProfileName() { return this; } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setConnectionProfileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; @@ -1663,30 +1475,24 @@ public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString valu } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ public boolean hasRecursive() { return depthCase_ == 3; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @return The recursive. */ public boolean getRecursive() { @@ -1696,35 +1502,29 @@ public boolean getRecursive() { return false; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @param value The recursive to set. * @return This builder for chaining. */ public Builder setRecursive(boolean value) { - + depthCase_ = 3; depth_ = value; onChanged(); return this; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -1737,28 +1537,22 @@ public Builder clearRecursive() { } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ public int getRecursionDepth() { @@ -1768,33 +1562,27 @@ public int getRecursionDepth() { return 0; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @param value The recursionDepth to set. * @return This builder for chaining. */ public Builder setRecursionDepth(int value) { - + depthCase_ = 4; depth_ = value; onChanged(); return this; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @return This builder for chaining. */ public Builder clearRecursionDepth() { @@ -1807,19 +1595,13 @@ public Builder clearRecursionDepth() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - oracleRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -1827,14 +1609,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -1852,8 +1631,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1874,8 +1651,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1894,8 +1669,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1904,14 +1677,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -1927,8 +1696,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1952,8 +1719,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1964,8 +1729,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1984,8 +1747,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1993,19 +1754,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2017,19 +1773,13 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -2037,14 +1787,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -2062,8 +1809,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2084,8 +1829,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2104,8 +1847,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2114,14 +1855,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -2137,8 +1874,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2162,8 +1897,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2174,8 +1907,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2194,8 +1925,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2203,19 +1932,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2225,9 +1949,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB onChanged(); return mysqlRdbmsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2237,43 +1961,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2285,8 +2007,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 77% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java index c01fc3ebdfba..6299da66e263 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileRequestOrBuilder - extends +public interface DiscoverConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -90,121 +57,93 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ boolean hasConnectionProfileName(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ java.lang.String getConnectionProfileName(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - com.google.protobuf.ByteString getConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getConnectionProfileNameBytes(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ boolean hasRecursive(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return The recursive. */ boolean getRecursive(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ boolean hasRecursionDepth(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ int getRecursionDepth(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -214,32 +153,24 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -248,12 +179,9 @@ public interface DiscoverConnectionProfileRequestOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase - getTargetCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase - getDepthCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase getDepthCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java index 9b696a30b9da..3715e63bf9b7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java @@ -1,75 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} */ -public final class DiscoverConnectionProfileResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} + */ +public final class DiscoverConnectionProfileResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) DiscoverConnectionProfileResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileResponse.newBuilder() to construct. - private DiscoverConnectionProfileResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private DiscoverConnectionProfileResponse() {} + private DiscoverConnectionProfileResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DiscoverConnectionProfileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public enum DataObjectCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; - private DataObjectCase(int value) { this.value = value; } @@ -85,36 +67,30 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_RDBMS; - case 101: - return MYSQL_RDBMS; - case 0: - return DATAOBJECT_NOT_SET; - default: - return null; + case 100: return ORACLE_RDBMS; + case 101: return MYSQL_RDBMS; + case 0: return DATAOBJECT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -122,26 +98,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -151,21 +122,18 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -173,26 +141,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -202,13 +165,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +182,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } @@ -237,14 +200,12 @@ public int getSerializedSize() { size = 0; if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -254,21 +215,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -302,130 +264,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -442,22 +399,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse build() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = - buildPartial(); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -466,29 +420,26 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse bu @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = - new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && + oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && + mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } } @@ -497,66 +448,58 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other) { - if (other - == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other) { + if (other == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance()) return this; switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: - { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: - { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: - { - break; - } + case ORACLE_RDBMS: { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -584,25 +527,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 802: - { - input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 802: { + input.readMessage( + getOracleRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlRdbmsFieldBuilder().getBuilder(), + extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -612,12 +556,12 @@ public Builder mergeFrom( } // finally return this; } - private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public Builder clearDataObject() { @@ -630,19 +574,13 @@ public Builder clearDataObject() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - oracleRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -650,14 +588,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -675,8 +610,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -697,8 +630,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -717,8 +648,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -727,14 +656,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -750,8 +675,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -775,8 +698,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -787,8 +708,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -807,8 +726,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -816,19 +733,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -840,19 +752,13 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -860,14 +766,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -885,8 +788,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -907,8 +808,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -927,8 +826,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -937,14 +834,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -960,8 +853,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -985,8 +876,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -997,8 +886,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1017,8 +904,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1026,19 +911,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1048,9 +928,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB onChanged(); return mysqlRdbmsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1060,43 +940,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) - private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1108,8 +986,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java index 0e0ef1e0e7da..4e610ac978cb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileResponseOrBuilder - extends +public interface DiscoverConnectionProfileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -59,32 +35,24 @@ public interface DiscoverConnectionProfileResponseOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -93,6 +61,5 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java index 4cd854d6ba13..8bba1717fbee 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represent a user-facing Error.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Error} */ -public final class Error extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { reason_ = ""; errorUuid_ = ""; @@ -45,54 +27,50 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Error.class, - com.google.cloud.datastream.v1alpha1.Error.Builder.class); + com.google.cloud.datastream.v1alpha1.Error.class, com.google.cloud.datastream.v1alpha1.Error.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The reason. */ @java.lang.Override @@ -101,29 +79,29 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -132,19 +110,15 @@ public com.google.protobuf.ByteString getReasonBytes() { } public static final int ERROR_UUID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object errorUuid_ = ""; /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The errorUuid. */ @java.lang.Override @@ -153,30 +127,30 @@ public java.lang.String getErrorUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; } } /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ @java.lang.Override - public com.google.protobuf.ByteString getErrorUuidBytes() { + public com.google.protobuf.ByteString + getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -185,18 +159,14 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { } public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The message. */ @java.lang.Override @@ -205,29 +175,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -238,14 +208,11 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int ERROR_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp errorTime_; /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ @java.lang.Override @@ -253,14 +220,11 @@ public boolean hasErrorTime() { return errorTime_ != null; } /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ @java.lang.Override @@ -268,8 +232,6 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** - * - * *
    * The time when the error occurred.
    * 
@@ -282,34 +244,32 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { } public static final int DETAILS_FIELD_NUMBER = 5; - private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } - public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -317,21 +277,20 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDetails().getMap().containsKey(key); } - /** Use {@link #getDetailsMap()} instead. */ + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -343,8 +302,6 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** - * - * *
    * Additional information about the error.
    * 
@@ -352,19 +309,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getDetailsOrDefault( + public /* nullable */ +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional information about the error.
    * 
@@ -372,11 +327,11 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -384,7 +339,6 @@ public java.lang.String getDetailsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +350,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } @@ -409,8 +364,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorTime_ != null) { output.writeMessage(4, getErrorTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDetails(), + DetailsDefaultEntryHolder.defaultEntry, + 5); getUnknownFields().writeTo(output); } @@ -430,17 +389,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (errorTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorTime()); - } - for (java.util.Map.Entry entry : - internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry details__ = - DetailsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, details__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getErrorTime()); + } + for (java.util.Map.Entry entry + : internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry + details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, details__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -450,22 +410,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Error)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Error other = - (com.google.cloud.datastream.v1alpha1.Error) obj; + com.google.cloud.datastream.v1alpha1.Error other = (com.google.cloud.datastream.v1alpha1.Error) obj; - if (!getReason().equals(other.getReason())) return false; - if (!getErrorUuid().equals(other.getErrorUuid())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getErrorUuid() + .equals(other.getErrorUuid())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (hasErrorTime() != other.hasErrorTime()) return false; if (hasErrorTime()) { - if (!getErrorTime().equals(other.getErrorTime())) return false; + if (!getErrorTime() + .equals(other.getErrorTime())) return false; } - if (!internalGetDetails().equals(other.internalGetDetails())) return false; + if (!internalGetDetails().equals( + other.internalGetDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -496,156 +460,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represent a user-facing Error.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Error} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Error) com.google.cloud.datastream.v1alpha1.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 5: return internalGetMutableDetails(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Error.class, - com.google.cloud.datastream.v1alpha1.Error.Builder.class); + com.google.cloud.datastream.v1alpha1.Error.class, com.google.cloud.datastream.v1alpha1.Error.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Error.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -663,9 +623,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @java.lang.Override @@ -684,11 +644,8 @@ public com.google.cloud.datastream.v1alpha1.Error build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error buildPartial() { - com.google.cloud.datastream.v1alpha1.Error result = - new com.google.cloud.datastream.v1alpha1.Error(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.Error result = new com.google.cloud.datastream.v1alpha1.Error(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -705,7 +662,9 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Error result) { result.message_ = message_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.errorTime_ = errorTimeBuilder_ == null ? errorTime_ : errorTimeBuilder_.build(); + result.errorTime_ = errorTimeBuilder_ == null + ? errorTime_ + : errorTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.details_ = internalGetDetails(); @@ -717,39 +676,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Error result) { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Error) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Error) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Error)other); } else { super.mergeFrom(other); return this; @@ -776,7 +734,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Error other) { if (other.hasErrorTime()) { mergeErrorTime(other.getErrorTime()); } - internalGetMutableDetails().mergeFrom(other.internalGetDetails()); + internalGetMutableDetails().mergeFrom( + other.internalGetDetails()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -804,49 +763,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - errorUuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getErrorTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.protobuf.MapEntry details__ = - input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableDetails() - .getMutableMap() - .put(details__.getKey(), details__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + errorUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getErrorTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + com.google.protobuf.MapEntry + details__ = input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableDetails().getMutableMap().put( + details__.getKey(), details__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -856,25 +809,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object reason_ = ""; /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -883,21 +833,20 @@ public java.lang.String getReason() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -905,35 +854,28 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } reason_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return This builder for chaining. */ public Builder clearReason() { @@ -943,21 +885,17 @@ public Builder clearReason() { return this; } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000001; @@ -967,21 +905,19 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorUuid_ = ""; /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The errorUuid. */ public java.lang.String getErrorUuid() { java.lang.Object ref = errorUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; @@ -990,22 +926,21 @@ public java.lang.String getErrorUuid() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - public com.google.protobuf.ByteString getErrorUuidBytes() { + public com.google.protobuf.ByteString + getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -1013,37 +948,30 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @param value The errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuid(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorUuid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } errorUuid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return This builder for chaining. */ public Builder clearErrorUuid() { @@ -1053,22 +981,18 @@ public Builder clearErrorUuid() { return this; } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setErrorUuidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errorUuid_ = value; bitField0_ |= 0x00000002; @@ -1078,20 +1002,18 @@ public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1100,21 +1022,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1122,35 +1043,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1160,21 +1074,17 @@ public Builder clearMessage() { return this; } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; @@ -1184,33 +1094,24 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp errorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - errorTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_; /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ public boolean hasErrorTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1221,8 +1122,6 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1243,15 +1142,14 @@ public Builder setErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; */ - public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setErrorTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (errorTimeBuilder_ == null) { errorTime_ = builderForValue.build(); } else { @@ -1262,8 +1160,6 @@ public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1272,9 +1168,9 @@ public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && errorTime_ != null - && errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + errorTime_ != null && + errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getErrorTimeBuilder().mergeFrom(value); } else { errorTime_ = value; @@ -1287,8 +1183,6 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1306,8 +1200,6 @@ public Builder clearErrorTime() { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1320,8 +1212,6 @@ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { return getErrorTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1332,12 +1222,11 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { if (errorTimeBuilder_ != null) { return errorTimeBuilder_.getMessageOrBuilder(); } else { - return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + return errorTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1345,35 +1234,34 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { * .google.protobuf.Timestamp error_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getErrorTimeFieldBuilder() { if (errorTimeBuilder_ == null) { - errorTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getErrorTime(), getParentForChildren(), isClean()); + errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getErrorTime(), + getParentForChildren(), + isClean()); errorTime_ = null; } return errorTimeBuilder_; } - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } - private com.google.protobuf.MapField internalGetMutableDetails() { if (details_ == null) { - details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); + details_ = com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); } if (!details_.isMutable()) { details_ = details_.copy(); @@ -1382,13 +1270,10 @@ private com.google.protobuf.MapField interna onChanged(); return details_; } - public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1396,21 +1281,20 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetDetails().getMap().containsKey(key); } - /** Use {@link #getDetailsMap()} instead. */ + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1422,8 +1306,6 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** - * - * *
      * Additional information about the error.
      * 
@@ -1431,19 +1313,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ java.lang.String getDetailsOrDefault( + public /* nullable */ +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional information about the error.
      * 
@@ -1451,81 +1331,79 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearDetails() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableDetails().getMutableMap().clear(); + internalGetMutableDetails().getMutableMap() + .clear(); return this; } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder removeDetails(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableDetails().getMutableMap().remove(key); + public Builder removeDetails( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableDetails().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableDetails() { + public java.util.Map + getMutableDetails() { bitField0_ |= 0x00000010; return internalGetMutableDetails().getMutableMap(); } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putDetails(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableDetails().getMutableMap().put(key, value); + public Builder putDetails( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableDetails().getMutableMap() + .put(key, value); bitField0_ |= 0x00000010; return this; } /** - * - * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putAllDetails(java.util.Map values) { - internalGetMutableDetails().getMutableMap().putAll(values); + public Builder putAllDetails( + java.util.Map values) { + internalGetMutableDetails().getMutableMap() + .putAll(values); bitField0_ |= 0x00000010; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1535,12 +1413,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Error) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Error) private static final com.google.cloud.datastream.v1alpha1.Error DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Error(); } @@ -1549,27 +1427,27 @@ public static com.google.cloud.datastream.v1alpha1.Error getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1584,4 +1462,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java index 3472a753896b..f0bbd90b71b8 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java @@ -1,132 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ErrorOrBuilder - extends +public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The errorUuid. */ java.lang.String getErrorUuid(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - com.google.protobuf.ByteString getErrorUuidBytes(); + com.google.protobuf.ByteString + getErrorUuidBytes(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ boolean hasErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ com.google.protobuf.Timestamp getErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
@@ -136,8 +97,6 @@ public interface ErrorOrBuilder com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); /** - * - * *
    * Additional information about the error.
    * 
@@ -146,31 +105,30 @@ public interface ErrorOrBuilder */ int getDetailsCount(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - boolean containsDetails(java.lang.String key); - /** Use {@link #getDetailsMap()} instead. */ + boolean containsDetails( + java.lang.String key); + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getDetails(); + java.util.Map + getDetails(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.util.Map getDetailsMap(); + java.util.Map + getDetailsMap(); /** - * - * *
    * Additional information about the error.
    * 
@@ -178,18 +136,17 @@ public interface ErrorOrBuilder * map<string, string> details = 5; */ /* nullable */ - java.lang.String getDetailsOrDefault( +java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.lang.String getDetailsOrThrow(java.lang.String key); + java.lang.String getDetailsOrThrow( + java.lang.String key); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java index 5a9526c04374..85d89aaa2db2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java @@ -1,85 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Request message for 'FetchErrors' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsRequest} */ -public final class FetchErrorsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchErrorsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchErrorsRequest) FetchErrorsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchErrorsRequest.newBuilder() to construct. private FetchErrorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchErrorsRequest() { stream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchErrorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); } public static final int STREAM_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object stream_ = ""; /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The stream. */ @java.lang.Override @@ -88,29 +65,29 @@ public java.lang.String getStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stream_ = s; return s; } } /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for stream. */ @java.lang.Override - public com.google.protobuf.ByteString getStreamBytes() { + public com.google.protobuf.ByteString + getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stream_ = b; return b; } else { @@ -119,7 +96,6 @@ public com.google.protobuf.ByteString getStreamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -131,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stream_); } @@ -155,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other = - (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) obj; + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other = (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) obj; - if (!getStream().equals(other.getStream())) return false; + if (!getStream() + .equals(other.getStream())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -183,136 +160,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for 'FetchErrors' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchErrorsRequest) com.google.cloud.datastream.v1alpha1.FetchErrorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -322,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override @@ -343,11 +313,8 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest result = - new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest result = new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -363,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchErrorsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest)other); } else { super.mergeFrom(other); return this; @@ -403,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) return this; if (!other.getStream().isEmpty()) { stream_ = other.stream_; bitField0_ |= 0x00000001; @@ -436,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - stream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + stream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -458,25 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object stream_ = ""; /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The stream. */ public java.lang.String getStream() { java.lang.Object ref = stream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stream_ = s; return s; @@ -485,21 +445,20 @@ public java.lang.String getStream() { } } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for stream. */ - public com.google.protobuf.ByteString getStreamBytes() { + public com.google.protobuf.ByteString + getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stream_ = b; return b; } else { @@ -507,35 +466,28 @@ public com.google.protobuf.ByteString getStreamBytes() { } } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @param value The stream to set. * @return This builder for chaining. */ - public Builder setStream(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStream( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } stream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return This builder for chaining. */ public Builder clearStream() { @@ -545,30 +497,26 @@ public Builder clearStream() { return this; } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @param value The bytes for stream to set. * @return This builder for chaining. */ - public Builder setStreamBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStreamBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); stream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -578,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchErrorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchErrorsRequest) private static final com.google.cloud.datastream.v1alpha1.FetchErrorsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(); } @@ -592,27 +540,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchErrorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchErrorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -627,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java similarity index 51% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java index 5467845c6e17..c082309dc86a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsRequestOrBuilder - extends +public interface FetchErrorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The stream. */ java.lang.String getStream(); /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for stream. */ - com.google.protobuf.ByteString getStreamBytes(); + com.google.protobuf.ByteString + getStreamBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java index 733cc68b94b1..a0459471f290 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Response message for a 'FetchErrors' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsResponse} */ -public final class FetchErrorsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchErrorsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchErrorsResponse) FetchErrorsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchErrorsResponse.newBuilder() to construct. private FetchErrorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchErrorsResponse() { errors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchErrorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); } public static final int ERRORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -85,8 +63,6 @@ public java.util.List getErrorsList( return errors_; } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -94,13 +70,11 @@ public java.util.List getErrorsList( * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -112,8 +86,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -134,12 +104,12 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -165,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -175,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other = - (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) obj; + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other = (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) obj; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,136 +177,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for a 'FetchErrors' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchErrorsResponse) com.google.cloud.datastream.v1alpha1.FetchErrorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override @@ -371,18 +336,14 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result = - new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(this); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result = new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -402,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchErrorsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsResponse)other); } else { super.mergeFrom(other); return this; @@ -442,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) return this; if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { @@ -462,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRespons errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -497,26 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.Error m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.Error m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -526,28 +483,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> - errorsBuilder_; + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -562,8 +512,6 @@ public java.util.List getErrorsList( } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -578,8 +526,6 @@ public int getErrorsCount() { } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -594,15 +540,14 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -616,8 +561,6 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -636,8 +579,6 @@ public Builder setErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -658,15 +599,14 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -680,15 +620,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -699,8 +638,6 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder buil return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -719,8 +656,6 @@ public Builder addErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -731,7 +666,8 @@ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -739,8 +675,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -758,8 +692,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -777,44 +709,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -822,8 +749,6 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -831,55 +756,49 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -889,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchErrorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchErrorsResponse) private static final com.google.cloud.datastream.v1alpha1.FetchErrorsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(); } @@ -903,27 +822,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchErrorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchErrorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -938,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java similarity index 62% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java index 5a82be318050..5278eb0604ac 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsResponseOrBuilder - extends +public interface FetchErrorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -44,8 +25,6 @@ public interface FetchErrorsResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Error getErrors(int index); /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -54,24 +33,21 @@ public interface FetchErrorsResponseOrBuilder */ int getErrorsCount(); /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java index 42ac53eb65eb..05fd2029364a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Request message for 'FetchStaticIps' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsRequest} */ -public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) FetchStaticIpsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsRequest.newBuilder() to construct. private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsRequest() { name_ = ""; pageToken_ = ""; @@ -44,46 +26,39 @@ private FetchStaticIpsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchStaticIpsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -92,32 +67,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -128,14 +101,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,19 +114,15 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -165,30 +131,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -197,7 +163,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,7 +174,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -232,7 +198,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -245,17 +212,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = - (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -279,136 +248,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for 'FetchStaticIps' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +382,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override @@ -441,11 +403,8 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest result = - new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest result = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -467,39 +426,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest)other); } else { super.mergeFrom(other); return this; @@ -507,8 +465,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -548,31 +505,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -582,28 +535,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -612,24 +560,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -637,41 +582,30 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -681,24 +615,18 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -706,16 +634,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -723,33 +648,27 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -761,21 +680,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -784,22 +701,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -807,37 +723,30 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -847,31 +756,27 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -881,12 +786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) private static final com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(); } @@ -895,27 +800,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -930,4 +835,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java similarity index 55% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java index 841fd4dbdaea..945f81603fd0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsRequestOrBuilder - extends +public interface FetchStaticIpsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java index 2b5a84beaa4a..734435b81310 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Response message for a 'FetchStaticIps' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsResponse} */ -public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) FetchStaticIpsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsResponse.newBuilder() to construct. private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsResponse() { staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -44,71 +26,61 @@ private FetchStaticIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new FetchStaticIpsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); } public static final int STATIC_IPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList staticIps_; /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList getStaticIpsList() { + public com.google.protobuf.ProtocolStringList + getStaticIpsList() { return staticIps_; } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -116,35 +88,29 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString + getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -153,30 +119,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -185,7 +151,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +162,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < staticIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); } @@ -232,16 +198,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = - (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; - if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getStaticIpsList() + .equals(other.getStaticIpsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -265,136 +232,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for a 'FetchStaticIps' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +366,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override @@ -427,18 +387,14 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result = - new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(this); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -457,39 +413,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse)other); } else { super.mergeFrom(other); return this; @@ -497,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) return this; if (!other.staticIps_.isEmpty()) { if (staticIps_.isEmpty()) { staticIps_ = other.staticIps_; @@ -540,26 +494,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureStaticIpsIsMutable(); - staticIps_.add(s); - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpsIsMutable(); + staticIps_.add(s); + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -569,55 +520,44 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList staticIps_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStaticIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { staticIps_ = new com.google.protobuf.LazyStringArrayList(staticIps_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList getStaticIpsList() { + public com.google.protobuf.ProtocolStringList + getStaticIpsList() { return staticIps_.getUnmodifiableView(); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -625,90 +565,76 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString + getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param index The index to set the value at. * @param value The staticIps to set. * @return This builder for chaining. */ - public Builder setStaticIps(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStaticIps( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStaticIpsIsMutable(); staticIps_.set(index, value); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param value The staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIps(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStaticIps( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param values The staticIps to add. * @return This builder for chaining. */ - public Builder addAllStaticIps(java.lang.Iterable values) { + public Builder addAllStaticIps( + java.lang.Iterable values) { ensureStaticIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, staticIps_); onChanged(); return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @return This builder for chaining. */ public Builder clearStaticIps() { @@ -718,21 +644,17 @@ public Builder clearStaticIps() { return this; } /** - * - * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; - * * @param value The bytes of the staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addStaticIpsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); @@ -742,21 +664,19 @@ public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -765,22 +685,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -788,37 +707,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -828,31 +740,27 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -862,12 +770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) private static final com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(); } @@ -876,27 +784,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,4 +819,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java index b9ab94f98d92..33bd0c524679 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java @@ -1,103 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsResponseOrBuilder - extends +public interface FetchStaticIpsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - java.util.List getStaticIpsList(); + java.util.List + getStaticIpsList(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ int getStaticIpsCount(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ java.lang.String getStaticIps(int index); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - com.google.protobuf.ByteString getStaticIpsBytes(int index); + com.google.protobuf.ByteString + getStaticIpsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java index c6eab3f60f80..995158016741 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Forward SSH Tunnel connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity} */ -public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ForwardSshTunnelConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) ForwardSshTunnelConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ForwardSshTunnelConnectivity.newBuilder() to construct. private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ForwardSshTunnelConnectivity() { hostname_ = ""; username_ = ""; @@ -44,42 +26,38 @@ private ForwardSshTunnelConnectivity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ForwardSshTunnelConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public enum AuthenticationMethodCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PASSWORD(100), PRIVATE_KEY(101), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; - private AuthenticationMethodCase(int value) { this.value = value; } @@ -95,39 +73,32 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 100: - return PASSWORD; - case 101: - return PRIVATE_KEY; - case 0: - return AUTHENTICATIONMETHOD_NOT_SET; - default: - return null; + case 100: return PASSWORD; + case 101: return PRIVATE_KEY; + case 0: return AUTHENTICATIONMETHOD_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -136,29 +107,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -167,18 +138,14 @@ public com.google.protobuf.ByteString getHostnameBytes() { } public static final int USERNAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -187,29 +154,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -220,14 +187,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** - * - * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -237,28 +201,22 @@ public int getPort() { public static final int PASSWORD_FIELD_NUMBER = 100; /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ public java.lang.String getPassword() { @@ -269,7 +227,8 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -278,24 +237,23 @@ public java.lang.String getPassword() { } } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -307,28 +265,22 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int PRIVATE_KEY_FIELD_NUMBER = 101; /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ public java.lang.String getPrivateKey() { @@ -339,7 +291,8 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -348,24 +301,23 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -376,7 +328,6 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -388,7 +339,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -420,7 +372,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); } if (authenticationMethodCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); @@ -436,24 +389,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (getPort() != other.getPort()) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (getPort() + != other.getPort()) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 100: - if (!getPassword().equals(other.getPassword())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; break; case 101: - if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getPrivateKey() + .equals(other.getPrivateKey())) return false; break; case 0: default: @@ -493,138 +450,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Forward SSH Tunnel connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -638,14 +586,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } @@ -660,18 +607,14 @@ public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result = - new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result = new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hostname_ = hostname_; @@ -684,8 +627,7 @@ private void buildPartial0( } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; } @@ -694,50 +636,46 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other) { - if (other - == com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other) { + if (other == com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -752,24 +690,21 @@ public Builder mergeFrom( setPort(other.getPort()); } switch (other.getAuthenticationMethodCase()) { - case PASSWORD: - { - authenticationMethodCase_ = 100; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case PRIVATE_KEY: - { - authenticationMethodCase_ = 101; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case PASSWORD: { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -797,45 +732,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 802: - { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } // case 802 - case 810: - { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 802: { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } // case 802 + case 810: { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -845,12 +774,12 @@ public Builder mergeFrom( } // finally return this; } - private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - - public AuthenticationMethodCase getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber(authenticationMethodCase_); + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -864,20 +793,18 @@ public Builder clearAuthenticationMethod() { private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -886,21 +813,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -908,35 +834,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -946,21 +865,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -970,20 +885,18 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -992,21 +905,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1014,35 +926,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1052,21 +957,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000002; @@ -1074,16 +975,13 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @return The port. */ @java.lang.Override @@ -1091,33 +989,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -1128,14 +1020,11 @@ public Builder clearPort() { } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ @java.lang.Override @@ -1143,14 +1032,11 @@ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ @java.lang.Override @@ -1160,7 +1046,8 @@ public java.lang.String getPassword() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -1171,25 +1058,24 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -1199,35 +1085,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); return this; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1239,21 +1118,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; @@ -1262,14 +1137,11 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ @java.lang.Override @@ -1277,14 +1149,11 @@ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ @java.lang.Override @@ -1294,7 +1163,8 @@ public java.lang.String getPrivateKey() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -1305,25 +1175,24 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -1333,35 +1202,28 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -1373,30 +1235,26 @@ public Builder clearPrivateKey() { return this; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1406,43 +1264,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) - private static final com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ForwardSshTunnelConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardSshTunnelConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1454,8 +1310,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java index 8765fad1d8e6..0e90d3b7e89c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java @@ -1,165 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ForwardSshTunnelConnectivityOrBuilder - extends +public interface ForwardSshTunnelConnectivityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; - * * @return The port. */ int getPort(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ boolean hasPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ boolean hasPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ java.lang.String getPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString getPrivateKeyBytes(); + com.google.protobuf.ByteString + getPrivateKeyBytes(); - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase - getAuthenticationMethodCase(); + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java index a36eb15fd780..e3a78892c698 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Google Cloud Storage destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsDestinationConfig} */ -public final class GcsDestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsDestinationConfig) GcsDestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestinationConfig.newBuilder() to construct. private GcsDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestinationConfig() { path_ = ""; gcsFileFormat_ = 0; @@ -44,42 +26,38 @@ private GcsDestinationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); } private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - public enum FileFormatCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_FILE_FORMAT(100), JSON_FILE_FORMAT(101), FILEFORMAT_NOT_SET(0); private final int value; - private FileFormatCase(int value) { this.value = value; } @@ -95,39 +73,32 @@ public static FileFormatCase valueOf(int value) { public static FileFormatCase forNumber(int value) { switch (value) { - case 100: - return AVRO_FILE_FORMAT; - case 101: - return JSON_FILE_FORMAT; - case 0: - return FILEFORMAT_NOT_SET; - default: - return null; + case 100: return AVRO_FILE_FORMAT; + case 101: return JSON_FILE_FORMAT; + case 0: return FILEFORMAT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public FileFormatCase getFileFormatCase() { - return FileFormatCase.forNumber(fileFormatCase_); + public FileFormatCase + getFileFormatCase() { + return FileFormatCase.forNumber( + fileFormatCase_); } public static final int PATH_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The path. */ @java.lang.Override @@ -136,29 +107,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -169,61 +140,43 @@ public com.google.protobuf.ByteString getPathBytes() { public static final int GCS_FILE_FORMAT_FIELD_NUMBER = 2; private int gcsFileFormat_ = 0; /** - * - * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Override - @java.lang.Deprecated - public int getGcsFileFormatValue() { + @java.lang.Override @java.lang.Deprecated public int getGcsFileFormatValue() { return gcsFileFormat_; } /** - * - * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = - com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); - return result == null - ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED - : result; + @java.lang.Override @java.lang.Deprecated public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); + return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; } public static final int FILE_ROTATION_MB_FIELD_NUMBER = 3; private int fileRotationMb_ = 0; /** - * - * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 3; - * * @return The fileRotationMb. */ @java.lang.Override @@ -234,15 +187,12 @@ public int getFileRotationMb() { public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER = 4; private com.google.protobuf.Duration fileRotationInterval_; /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -250,26 +200,19 @@ public boolean hasFileRotationInterval() { return fileRotationInterval_ != null; } /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return The fileRotationInterval. */ @java.lang.Override public com.google.protobuf.Duration getFileRotationInterval() { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
@@ -279,21 +222,16 @@ public com.google.protobuf.Duration getFileRotationInterval() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() {
-    return fileRotationInterval_ == null
-        ? com.google.protobuf.Duration.getDefaultInstance()
-        : fileRotationInterval_;
+    return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
   }
 
   public static final int AVRO_FILE_FORMAT_FIELD_NUMBER = 100;
   /**
-   *
-   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -301,26 +239,21 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } /** - * - * *
    * AVRO file format configuration.
    * 
@@ -330,21 +263,18 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } public static final int JSON_FILE_FORMAT_FIELD_NUMBER = 101; /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -352,26 +282,21 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } /** - * - * *
    * JSON file format configuration.
    * 
@@ -381,13 +306,12 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,13 +323,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } - if (gcsFileFormat_ - != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED - .getNumber()) { + if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { @@ -432,27 +355,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } - if (gcsFileFormat_ - != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gcsFileFormat_); + if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, fileRotationMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, fileRotationMb_); } if (fileRotationInterval_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFileRotationInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFileRotationInterval()); } if (fileFormatCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); } if (fileFormatCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -462,28 +383,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsDestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; - if (!getPath().equals(other.getPath())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (gcsFileFormat_ != other.gcsFileFormat_) return false; - if (getFileRotationMb() != other.getFileRotationMb()) return false; + if (getFileRotationMb() + != other.getFileRotationMb()) return false; if (hasFileRotationInterval() != other.hasFileRotationInterval()) return false; if (hasFileRotationInterval()) { - if (!getFileRotationInterval().equals(other.getFileRotationInterval())) return false; + if (!getFileRotationInterval() + .equals(other.getFileRotationInterval())) return false; } if (!getFileFormatCase().equals(other.getFileFormatCase())) return false; switch (fileFormatCase_) { case 100: - if (!getAvroFileFormat().equals(other.getAvroFileFormat())) return false; + if (!getAvroFileFormat() + .equals(other.getAvroFileFormat())) return false; break; case 101: - if (!getJsonFileFormat().equals(other.getJsonFileFormat())) return false; + if (!getJsonFileFormat() + .equals(other.getJsonFileFormat())) return false; break; case 0: default: @@ -527,136 +452,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Google Cloud Storage destination configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsDestinationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GcsDestinationConfig) com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -681,9 +599,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override @@ -702,11 +620,8 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result = - new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result = new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -724,21 +639,21 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GcsDestinationCo result.fileRotationMb_ = fileRotationMb_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.fileRotationInterval_ = - fileRotationIntervalBuilder_ == null - ? fileRotationInterval_ - : fileRotationIntervalBuilder_.build(); + result.fileRotationInterval_ = fileRotationIntervalBuilder_ == null + ? fileRotationInterval_ + : fileRotationIntervalBuilder_.build(); } } - private void buildPartialOneofs( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result) { + private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result) { result.fileFormatCase_ = fileFormatCase_; result.fileFormat_ = this.fileFormat_; - if (fileFormatCase_ == 100 && avroFileFormatBuilder_ != null) { + if (fileFormatCase_ == 100 && + avroFileFormatBuilder_ != null) { result.fileFormat_ = avroFileFormatBuilder_.build(); } - if (fileFormatCase_ == 101 && jsonFileFormatBuilder_ != null) { + if (fileFormatCase_ == 101 && + jsonFileFormatBuilder_ != null) { result.fileFormat_ = jsonFileFormatBuilder_.build(); } } @@ -747,39 +662,38 @@ private void buildPartialOneofs( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig)other); } else { super.mergeFrom(other); return this; @@ -787,8 +701,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -804,20 +717,17 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConf mergeFileRotationInterval(other.getFileRotationInterval()); } switch (other.getFileFormatCase()) { - case AVRO_FILE_FORMAT: - { - mergeAvroFileFormat(other.getAvroFileFormat()); - break; - } - case JSON_FILE_FORMAT: - { - mergeJsonFileFormat(other.getJsonFileFormat()); - break; - } - case FILEFORMAT_NOT_SET: - { - break; - } + case AVRO_FILE_FORMAT: { + mergeAvroFileFormat(other.getAvroFileFormat()); + break; + } + case JSON_FILE_FORMAT: { + mergeJsonFileFormat(other.getJsonFileFormat()); + break; + } + case FILEFORMAT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -845,50 +755,48 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - gcsFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - fileRotationMb_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - getFileRotationIntervalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 802: - { - input.readMessage(getAvroFileFormatFieldBuilder().getBuilder(), extensionRegistry); - fileFormatCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage(getJsonFileFormatFieldBuilder().getBuilder(), extensionRegistry); - fileFormatCase_ = 101; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + gcsFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + fileRotationMb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getFileRotationIntervalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 802: { + input.readMessage( + getAvroFileFormatFieldBuilder().getBuilder(), + extensionRegistry); + fileFormatCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getJsonFileFormatFieldBuilder().getBuilder(), + extensionRegistry); + fileFormatCase_ = 101; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -898,12 +806,12 @@ public Builder mergeFrom( } // finally return this; } - private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - - public FileFormatCase getFileFormatCase() { - return FileFormatCase.forNumber(fileFormatCase_); + public FileFormatCase + getFileFormatCase() { + return FileFormatCase.forNumber( + fileFormatCase_); } public Builder clearFileFormat() { @@ -917,20 +825,18 @@ public Builder clearFileFormat() { private java.lang.Object path_ = ""; /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -939,21 +845,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -961,35 +866,28 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return This builder for chaining. */ public Builder clearPath() { @@ -999,21 +897,17 @@ public Builder clearPath() { return this; } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -1023,94 +917,66 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { private int gcsFileFormat_ = 0; /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Override - @java.lang.Deprecated - public int getGcsFileFormatValue() { + @java.lang.Override @java.lang.Deprecated public int getGcsFileFormatValue() { return gcsFileFormat_; } /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The enum numeric value on the wire for gcsFileFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setGcsFileFormatValue(int value) { + @java.lang.Deprecated public Builder setGcsFileFormatValue(int value) { gcsFileFormat_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = - com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); - return result == null - ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED - : result; + @java.lang.Deprecated public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); + return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; } /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The gcsFileFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileFormat value) { + @java.lang.Deprecated public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -1120,39 +986,30 @@ public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileForm return this; } /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearGcsFileFormat() { + @java.lang.Deprecated public Builder clearGcsFileFormat() { bitField0_ = (bitField0_ & ~0x00000002); gcsFileFormat_ = 0; onChanged(); return this; } - private int fileRotationMb_; + private int fileRotationMb_ ; /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; - * * @return The fileRotationMb. */ @java.lang.Override @@ -1160,33 +1017,27 @@ public int getFileRotationMb() { return fileRotationMb_; } /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; - * * @param value The fileRotationMb to set. * @return This builder for chaining. */ public Builder setFileRotationMb(int value) { - + fileRotationMb_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; - * * @return This builder for chaining. */ public Builder clearFileRotationMb() { @@ -1198,49 +1049,36 @@ public Builder clearFileRotationMb() { private com.google.protobuf.Duration fileRotationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - fileRotationIntervalBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileRotationIntervalBuilder_; /** - * - * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
      * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
      * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return The fileRotationInterval. */ public com.google.protobuf.Duration getFileRotationInterval() { if (fileRotationIntervalBuilder_ == null) { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } else { return fileRotationIntervalBuilder_.getMessage(); } } /** - * - * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1262,8 +1100,6 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1271,7 +1107,8 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
-    public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setFileRotationInterval(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (fileRotationIntervalBuilder_ == null) {
         fileRotationInterval_ = builderForValue.build();
       } else {
@@ -1282,8 +1119,6 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1293,9 +1128,9 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder buil
      */
     public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       if (fileRotationIntervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0)
-            && fileRotationInterval_ != null
-            && fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0) &&
+          fileRotationInterval_ != null &&
+          fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getFileRotationIntervalBuilder().mergeFrom(value);
         } else {
           fileRotationInterval_ = value;
@@ -1308,8 +1143,6 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1328,8 +1161,6 @@ public Builder clearFileRotationInterval() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1343,8 +1174,6 @@ public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() {
       return getFileRotationIntervalFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1356,14 +1185,11 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
       if (fileRotationIntervalBuilder_ != null) {
         return fileRotationIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return fileRotationInterval_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : fileRotationInterval_;
+        return fileRotationInterval_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1372,36 +1198,27 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getFileRotationIntervalFieldBuilder() {
       if (fileRotationIntervalBuilder_ == null) {
-        fileRotationIntervalBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getFileRotationInterval(), getParentForChildren(), isClean());
+        fileRotationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getFileRotationInterval(),
+                getParentForChildren(),
+                isClean());
         fileRotationInterval_ = null;
       }
       return fileRotationIntervalBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.AvroFileFormat,
-            com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder,
-            com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>
-        avroFileFormatBuilder_;
+        com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> avroFileFormatBuilder_;
     /**
-     *
-     *
      * 
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -1409,14 +1226,11 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override @@ -1434,8 +1248,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1456,8 +1268,6 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFo return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1476,8 +1286,6 @@ public Builder setAvroFileFormat( return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1486,14 +1294,10 @@ public Builder setAvroFileFormat( */ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFormat value) { if (avroFileFormatBuilder_ == null) { - if (fileFormatCase_ == 100 - && fileFormat_ - != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder( - (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 100 && + fileFormat_ != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1509,8 +1313,6 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFile return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1534,8 +1336,6 @@ public Builder clearAvroFileFormat() { return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1546,8 +1346,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo return getAvroFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1555,8 +1353,7 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder - getAvroFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if ((fileFormatCase_ == 100) && (avroFileFormatBuilder_ != null)) { return avroFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1567,8 +1364,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1576,19 +1371,14 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> getAvroFileFormatFieldBuilder() { if (avroFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 100)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } - avroFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( + avroFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1600,19 +1390,13 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> - jsonFileFormatBuilder_; + com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> jsonFileFormatBuilder_; /** - * - * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -1620,14 +1404,11 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override @@ -1645,8 +1426,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1667,8 +1446,6 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFo return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1687,8 +1464,6 @@ public Builder setJsonFileFormat( return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1697,14 +1472,10 @@ public Builder setJsonFileFormat( */ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFormat value) { if (jsonFileFormatBuilder_ == null) { - if (fileFormatCase_ == 101 - && fileFormat_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder( - (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 101 && + fileFormat_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1720,8 +1491,6 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFile return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1745,8 +1514,6 @@ public Builder clearJsonFileFormat() { return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1757,8 +1524,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo return getJsonFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1766,8 +1531,7 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder - getJsonFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if ((fileFormatCase_ == 101) && (jsonFileFormatBuilder_ != null)) { return jsonFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1778,8 +1542,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1787,19 +1549,14 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> getJsonFileFormatFieldBuilder() { if (jsonFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 101)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } - jsonFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( + jsonFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1809,9 +1566,9 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo onChanged(); return jsonFileFormatBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1821,12 +1578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GcsDestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GcsDestinationConfig) private static final com.google.cloud.datastream.v1alpha1.GcsDestinationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(); } @@ -1835,27 +1592,27 @@ public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1870,4 +1627,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java index 806c5787eaf0..03e30860852f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java @@ -1,130 +1,88 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface GcsDestinationConfigOrBuilder - extends +public interface GcsDestinationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GcsDestinationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); /** - * - * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Deprecated - int getGcsFileFormatValue(); + @java.lang.Deprecated int getGcsFileFormatValue(); /** - * - * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is - * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. + * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ - @java.lang.Deprecated - com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat(); + @java.lang.Deprecated com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat(); /** - * - * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 3; - * * @return The fileRotationMb. */ int getFileRotationMb(); /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return Whether the fileRotationInterval field is set. */ boolean hasFileRotationInterval(); /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return The fileRotationInterval. */ com.google.protobuf.Duration getFileRotationInterval(); /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
@@ -135,32 +93,24 @@ public interface GcsDestinationConfigOrBuilder
   com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder();
 
   /**
-   *
-   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ boolean hasAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
@@ -170,32 +120,24 @@ public interface GcsDestinationConfigOrBuilder com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ boolean hasJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
@@ -204,6 +146,5 @@ public interface GcsDestinationConfigOrBuilder */ com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder(); - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase - getFileFormatCase(); + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase getFileFormatCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java similarity index 63% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java index 054cf6b25ddf..ef27761a592c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java @@ -1,37 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * File format in Cloud Storage.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.GcsFileFormat} */ -@java.lang.Deprecated -public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { +@java.lang.Deprecated public enum GcsFileFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified Cloud Storage file format.
    * 
@@ -40,8 +21,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ GCS_FILE_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Avro file format
    * 
@@ -53,8 +32,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified Cloud Storage file format.
    * 
@@ -63,8 +40,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GCS_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Avro file format
    * 
@@ -73,6 +48,7 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AVRO_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -97,49 +73,48 @@ public static GcsFileFormat valueOf(int value) { */ public static GcsFileFormat forNumber(int value) { switch (value) { - case 0: - return GCS_FILE_FORMAT_UNSPECIFIED; - case 1: - return AVRO; - default: - return null; + case 0: return GCS_FILE_FORMAT_UNSPECIFIED; + case 1: return AVRO; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GcsFileFormat findValueByNumber(int number) { - return GcsFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + GcsFileFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GcsFileFormat findValueByNumber(int number) { + return GcsFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final GcsFileFormat[] VALUES = values(); - public static GcsFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static GcsFileFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -155,3 +130,4 @@ private GcsFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.GcsFileFormat) } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java index b4f451819a95..871b2fbdfb63 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Cloud Storage bucket profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsProfile} */ -public final class GcsProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsProfile) GcsProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsProfile.newBuilder() to construct. private GcsProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsProfile() { bucketName_ = ""; rootPath_ = ""; @@ -44,44 +26,39 @@ private GcsProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsProfile.class, - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsProfile.class, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); } public static final int BUCKET_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object bucketName_ = ""; /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketName. */ @java.lang.Override @@ -90,30 +67,30 @@ public java.lang.String getBucketName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; } } /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketName. */ @java.lang.Override - public com.google.protobuf.ByteString getBucketNameBytes() { + public com.google.protobuf.ByteString + getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketName_ = b; return b; } else { @@ -122,18 +99,14 @@ public com.google.protobuf.ByteString getBucketNameBytes() { } public static final int ROOT_PATH_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object rootPath_ = ""; /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The rootPath. */ @java.lang.Override @@ -142,29 +115,29 @@ public java.lang.String getRootPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; } } /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ @java.lang.Override - public com.google.protobuf.ByteString getRootPathBytes() { + public com.google.protobuf.ByteString + getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPath_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getRootPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); } @@ -215,16 +188,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsProfile other = - (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; + com.google.cloud.datastream.v1alpha1.GcsProfile other = (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; - if (!getBucketName().equals(other.getBucketName())) return false; - if (!getRootPath().equals(other.getRootPath())) return false; + if (!getBucketName() + .equals(other.getBucketName())) return false; + if (!getRootPath() + .equals(other.getRootPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,136 +219,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GcsProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Cloud Storage bucket profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GcsProfile) com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsProfile.class, - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsProfile.class, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override @@ -406,11 +374,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.GcsProfile result = - new com.google.cloud.datastream.v1alpha1.GcsProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GcsProfile result = new com.google.cloud.datastream.v1alpha1.GcsProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -429,39 +394,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GcsProfile resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GcsProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile)other); } else { super.mergeFrom(other); return this; @@ -469,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) return this; if (!other.getBucketName().isEmpty()) { bucketName_ = other.bucketName_; bitField0_ |= 0x00000001; @@ -507,25 +470,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - bucketName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - rootPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + bucketName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + rootPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,26 +495,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object bucketName_ = ""; /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketName. */ public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; @@ -563,22 +520,21 @@ public java.lang.String getBucketName() { } } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketName. */ - public com.google.protobuf.ByteString getBucketNameBytes() { + public com.google.protobuf.ByteString + getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketName_ = b; return b; } else { @@ -586,37 +542,30 @@ public com.google.protobuf.ByteString getBucketNameBytes() { } } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucketName to set. * @return This builder for chaining. */ - public Builder setBucketName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } bucketName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -626,22 +575,18 @@ public Builder clearBucketName() { return this; } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for bucketName to set. * @return This builder for chaining. */ - public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setBucketNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); bucketName_ = value; bitField0_ |= 0x00000001; @@ -651,20 +596,18 @@ public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootPath_ = ""; /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The rootPath. */ public java.lang.String getRootPath() { java.lang.Object ref = rootPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; @@ -673,21 +616,20 @@ public java.lang.String getRootPath() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - public com.google.protobuf.ByteString getRootPathBytes() { + public com.google.protobuf.ByteString + getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPath_ = b; return b; } else { @@ -695,35 +637,28 @@ public com.google.protobuf.ByteString getRootPathBytes() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @param value The rootPath to set. * @return This builder for chaining. */ - public Builder setRootPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRootPath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return This builder for chaining. */ public Builder clearRootPath() { @@ -733,30 +668,26 @@ public Builder clearRootPath() { return this; } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @param value The bytes for rootPath to set. * @return This builder for chaining. */ - public Builder setRootPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRootPathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -766,12 +697,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GcsProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GcsProfile) private static final com.google.cloud.datastream.v1alpha1.GcsProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GcsProfile(); } @@ -780,27 +711,27 @@ public static com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,4 +746,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java index 887ce584c9bb..f4e088925863 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface GcsProfileOrBuilder - extends +public interface GcsProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GcsProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketName. */ java.lang.String getBucketName(); /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketName. */ - com.google.protobuf.ByteString getBucketNameBytes(); + com.google.protobuf.ByteString + getBucketNameBytes(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The rootPath. */ java.lang.String getRootPath(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - com.google.protobuf.ByteString getRootPathBytes(); + com.google.protobuf.ByteString + getRootPathBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java similarity index 59% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java index d92d7d5ab015..f1b678414927 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java @@ -1,79 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} */ -public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} + */ +public final class GetConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the connection profile resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -82,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -151,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,128 +156,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -310,14 +284,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance(); } @@ -332,17 +305,13 @@ public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result = - new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -353,50 +322,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -428,19 +393,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,27 +413,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,23 +437,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -503,39 +458,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -545,32 +489,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,43 +518,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -628,8 +564,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 000000000000..d30d0f7022f2 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetConnectionProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java similarity index 59% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java index 9ebf8377974f..43bbf0f54212 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java @@ -1,79 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} */ -public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} + */ +public final class GetPrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) GetPrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPrivateConnectionRequest.newBuilder() to construct. private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPrivateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -82,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -151,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other = - (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,128 +156,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -310,14 +284,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance(); } @@ -332,17 +305,13 @@ public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result = - new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -353,50 +322,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -428,19 +393,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -450,27 +413,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,23 +437,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -503,39 +458,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -545,32 +489,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,43 +518,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -628,8 +564,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..b6968cd1e504 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetPrivateConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java similarity index 63% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java index 85ad53b0b23d..4e0532a962e4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java @@ -1,87 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route get request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GetRouteRequest} */ -public final class GetRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetRouteRequest) GetRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetRouteRequest.newBuilder() to construct. private GetRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetRouteRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, - com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the Route resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -90,31 +65,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -123,7 +96,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,7 +107,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -159,15 +132,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetRouteRequest other = - (com.google.cloud.datastream.v1alpha1.GetRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.GetRouteRequest other = (com.google.cloud.datastream.v1alpha1.GetRouteRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,135 +160,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * route get request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GetRouteRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetRouteRequest) com.google.cloud.datastream.v1alpha1.GetRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, - com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetRouteRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -325,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override @@ -346,11 +313,8 @@ public com.google.cloud.datastream.v1alpha1.GetRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetRouteRequest result = - new com.google.cloud.datastream.v1alpha1.GetRouteRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GetRouteRequest result = new com.google.cloud.datastream.v1alpha1.GetRouteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -366,39 +330,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetRouteRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetRouteRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetRouteRequest)other); } else { super.mergeFrom(other); return this; @@ -406,8 +369,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -439,19 +401,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,27 +421,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -490,23 +445,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -514,39 +466,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -556,32 +497,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +526,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetRouteRequest) private static final com.google.cloud.datastream.v1alpha1.GetRouteRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetRouteRequest(); } @@ -605,27 +540,27 @@ public static com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,4 +575,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java new file mode 100644 index 000000000000..738f0aa965a5 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java similarity index 61% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java index c918a7be167f..c03064e894e7 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java @@ -1,79 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} */ -public final class GetStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} + */ +public final class GetStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetStreamRequest) GetStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetStreamRequest.newBuilder() to construct. private GetStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, - com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. The name of the stream resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -82,31 +61,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -115,7 +92,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -127,7 +103,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -151,15 +128,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetStreamRequest other = - (com.google.cloud.datastream.v1alpha1.GetStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.GetStreamRequest other = (com.google.cloud.datastream.v1alpha1.GetStreamRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -179,128 +156,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.GetStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetStreamRequest) com.google.cloud.datastream.v1alpha1.GetStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, - com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +284,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override @@ -331,11 +305,8 @@ public com.google.cloud.datastream.v1alpha1.GetStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetStreamRequest result = - new com.google.cloud.datastream.v1alpha1.GetStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.GetStreamRequest result = new com.google.cloud.datastream.v1alpha1.GetStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -351,39 +322,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetStreamRequest public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -391,8 +361,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -424,19 +393,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -446,27 +413,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -475,23 +437,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -499,39 +458,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { @@ -541,32 +489,26 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -576,12 +518,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetStreamRequest) private static final com.google.cloud.datastream.v1alpha1.GetStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetStreamRequest(); } @@ -590,27 +532,27 @@ public static com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -625,4 +567,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java new file mode 100644 index 000000000000..8d5ae593825a --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java index 6984cbf79155..3fb9dc226af0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * JSON file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.JsonFileFormat} */ -public final class JsonFileFormat extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JsonFileFormat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.JsonFileFormat) JsonFileFormatOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JsonFileFormat.newBuilder() to construct. private JsonFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JsonFileFormat() { schemaFileFormat_ = 0; compression_ = 0; @@ -44,43 +26,39 @@ private JsonFileFormat() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new JsonFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); } /** - * - * *
    * Json file compression.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression} */ - public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonCompression + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified json file compression.
      * 
@@ -89,8 +67,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ JSON_COMPRESSION_UNSPECIFIED(0), /** - * - * *
      * Do not compress JSON file.
      * 
@@ -99,8 +75,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ NO_COMPRESSION(1), /** - * - * *
      * Gzip compression.
      * 
@@ -112,8 +86,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified json file compression.
      * 
@@ -122,8 +94,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not compress JSON file.
      * 
@@ -132,8 +102,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_COMPRESSION_VALUE = 1; /** - * - * *
      * Gzip compression.
      * 
@@ -142,6 +110,7 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GZIP_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -166,45 +135,40 @@ public static JsonCompression valueOf(int value) { */ public static JsonCompression forNumber(int value) { switch (value) { - case 0: - return JSON_COMPRESSION_UNSPECIFIED; - case 1: - return NO_COMPRESSION; - case 2: - return GZIP; - default: - return null; + case 0: return JSON_COMPRESSION_UNSPECIFIED; + case 1: return NO_COMPRESSION; + case 2: return GZIP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + JsonCompression> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JsonCompression findValueByNumber(int number) { + return JsonCompression.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JsonCompression findValueByNumber(int number) { - return JsonCompression.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); } private static final JsonCompression[] VALUES = values(); @@ -212,7 +176,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static JsonCompression valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -232,79 +197,56 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int schemaFileFormat_ = 0; /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override - public int getSchemaFileFormatValue() { + @java.lang.Override public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The schemaFileFormat. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = - com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null - ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { + com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_ = 0; /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null - ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -316,16 +258,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (schemaFileFormat_ - != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { + if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, compression_); } getUnknownFields().writeTo(output); @@ -337,16 +275,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (schemaFileFormat_ - != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, schemaFileFormat_); + if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compression_); + if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, compression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -356,13 +291,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.JsonFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.JsonFileFormat other = - (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; + com.google.cloud.datastream.v1alpha1.JsonFileFormat other = (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; if (schemaFileFormat_ != other.schemaFileFormat_) return false; if (compression_ != other.compression_) return false; @@ -387,135 +321,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.JsonFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * JSON file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.JsonFileFormat} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.JsonFileFormat) com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -526,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override @@ -547,11 +475,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat buildPartial() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat result = - new com.google.cloud.datastream.v1alpha1.JsonFileFormat(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.JsonFileFormat result = new com.google.cloud.datastream.v1alpha1.JsonFileFormat(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -570,39 +495,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.JsonFileFormat r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.JsonFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.JsonFileFormat) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.JsonFileFormat)other); } else { super.mergeFrom(other); return this; @@ -610,8 +534,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.JsonFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) return this; if (other.schemaFileFormat_ != 0) { setSchemaFileFormatValue(other.getSchemaFileFormatValue()); } @@ -644,25 +567,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - schemaFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - compression_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: { + schemaFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + compression_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,34 +592,26 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private int schemaFileFormat_ = 0; /** - * - * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override - public int getSchemaFileFormatValue() { + @java.lang.Override public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @param value The enum numeric value on the wire for schemaFileFormat to set. * @return This builder for chaining. */ @@ -710,38 +622,28 @@ public Builder setSchemaFileFormatValue(int value) { return this; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The schemaFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = - com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null - ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED : result; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @param value The schemaFileFormat to set. * @return This builder for chaining. */ - public Builder setSchemaFileFormat( - com.google.cloud.datastream.v1alpha1.SchemaFileFormat value) { + public Builder setSchemaFileFormat(com.google.cloud.datastream.v1alpha1.SchemaFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -751,14 +653,11 @@ public Builder setSchemaFileFormat( return this; } /** - * - * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return This builder for chaining. */ public Builder clearSchemaFileFormat() { @@ -770,31 +669,22 @@ public Builder clearSchemaFileFormat() { private int compression_ = 0; /** - * - * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * - * + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; * @return The enum numeric value on the wire for compression. */ - @java.lang.Override - public int getCompressionValue() { + @java.lang.Override public int getCompressionValue() { return compression_; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * - * + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; * @param value The enum numeric value on the wire for compression to set. * @return This builder for chaining. */ @@ -805,41 +695,28 @@ public Builder setCompressionValue(int value) { return this; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * - * + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; * @return The compression. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber( - compression_); - return result == null - ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * - * + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; * @param value The compression to set. * @return This builder for chaining. */ - public Builder setCompression( - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression value) { + public Builder setCompression(com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression value) { if (value == null) { throw new NullPointerException(); } @@ -849,15 +726,11 @@ public Builder setCompression( return this; } /** - * - * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * - * + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; * @return This builder for chaining. */ public Builder clearCompression() { @@ -866,9 +739,9 @@ public Builder clearCompression() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -878,12 +751,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.JsonFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.JsonFileFormat) private static final com.google.cloud.datastream.v1alpha1.JsonFileFormat DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.JsonFileFormat(); } @@ -892,27 +765,27 @@ public static com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -927,4 +800,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java index ec2d9fa339e7..695c2e7417b0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface JsonFileFormatOrBuilder - extends +public interface JsonFileFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.JsonFileFormat) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The enum numeric value on the wire for schemaFileFormat. */ int getSchemaFileFormatValue(); /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The schemaFileFormat. */ com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java index 6b0a2d62baf3..b651859dabe6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} + */ +public final class ListConnectionProfilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -38,45 +24,38 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -129,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -138,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -152,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -161,15 +131,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -178,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -195,18 +165,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +181,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -246,18 +212,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +228,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +259,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +270,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -357,19 +320,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,130 +364,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -534,16 +496,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance(); } @java.lang.Override @@ -557,17 +517,13 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest build( @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result = - new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -590,51 +546,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -684,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -730,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -759,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -783,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -825,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -849,10 +769,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -860,7 +778,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -868,8 +785,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -877,20 +792,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -898,7 +810,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -910,8 +821,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -920,13 +829,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -935,8 +844,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -945,14 +852,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -960,8 +868,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -970,22 +876,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -994,7 +896,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1004,8 +905,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -1014,14 +913,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1031,20 +928,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1053,21 +948,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1075,35 +969,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1113,21 +1000,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1137,20 +1020,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1159,21 +1040,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1181,35 +1061,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1219,30 +1092,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1252,43 +1121,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) - private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1300,8 +1167,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java index d565450169f7..da42c046b818 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesRequestOrBuilder - extends +public interface ListConnectionProfilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -62,14 +35,11 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java index 0f74056c31af..ac91203bcf1f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} + */ +public final class ListConnectionProfilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -38,123 +23,100 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - connectionProfiles_; + private java.util.List connectionProfiles_; /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { return connectionProfiles_; } /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index) { return connectionProfiles_.get(index); } /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfilesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( + int index) { return connectionProfiles_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +125,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,46 +157,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -242,23 +195,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -290,8 +241,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, connectionProfiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -312,17 +263,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList() + .equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,130 +303,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -492,16 +440,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance(); } @java.lang.Override @@ -515,18 +461,14 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse build @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result = - new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(this); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -543,8 +485,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -555,51 +496,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other) { - if (other - == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other) { + if (other == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance()) return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -618,10 +554,9 @@ public Builder mergeFrom( connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionProfilesFieldBuilder() - : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionProfilesFieldBuilder() : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -668,40 +603,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.ConnectionProfile m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), - extensionRegistry); - if (connectionProfilesBuilder_ == null) { - ensureConnectionProfilesIsMutable(); - connectionProfiles_.add(m); - } else { - connectionProfilesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.ConnectionProfile m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry); + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(m); + } else { + connectionProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,39 +642,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - connectionProfiles_ = java.util.Collections.emptyList(); - + private java.util.List connectionProfiles_ = + java.util.Collections.emptyList(); private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = - new java.util.ArrayList( - connectionProfiles_); + connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfilesBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesList() { + public java.util.List getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -751,14 +671,11 @@ private void ensureConnectionProfilesIsMutable() { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public int getConnectionProfilesCount() { if (connectionProfilesBuilder_ == null) { @@ -768,14 +685,11 @@ public int getConnectionProfilesCount() { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -785,14 +699,11 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -809,14 +720,11 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -830,17 +738,13 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public Builder addConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder addConnectionProfiles(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -854,14 +758,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -878,14 +779,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -899,14 +797,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -920,21 +815,18 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addAllConnectionProfiles( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -942,14 +834,11 @@ public Builder addAllConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder clearConnectionProfiles() { if (connectionProfilesBuilder_ == null) { @@ -962,14 +851,11 @@ public Builder clearConnectionProfiles() { return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder removeConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -982,49 +868,39 @@ public Builder removeConnectionProfiles(int index) { return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfilesBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfilesBuilder( + int index) { return getConnectionProfilesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfilesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( + int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); - } else { + return connectionProfiles_.get(index); } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -1032,62 +908,45 @@ public Builder removeConnectionProfiles(int index) { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder() { + return getConnectionProfilesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - addConnectionProfilesBuilder(int index) { - return getConnectionProfilesFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder( + int index) { + return getConnectionProfilesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1099,21 +958,19 @@ public Builder removeConnectionProfiles(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1122,22 +979,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1145,37 +1001,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1185,22 +1034,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1208,52 +1053,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1261,90 +1096,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1354,30 +1175,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1387,43 +1204,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) - private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,8 +1250,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java index e95e734c542a..bb524cd9a04b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesResponseOrBuilder - extends +public interface ListConnectionProfilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesList(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ int getConnectionProfilesCount(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java index ead165dad457..b9570428354c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ -public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} + */ +public final class ListPrivateConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) ListPrivateConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsRequest.newBuilder() to construct. private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -38,45 +24,38 @@ private ListPrivateConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPrivateConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -130,7 +105,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -139,12 +113,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -154,7 +125,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -163,15 +133,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -181,15 +150,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -198,18 +168,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -218,29 +184,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -249,18 +215,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -269,29 +231,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -300,7 +262,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -312,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -341,7 +303,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -360,19 +323,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -400,130 +367,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -537,16 +499,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance(); } @java.lang.Override @@ -560,17 +520,13 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest build( @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result = - new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -593,51 +549,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -687,43 +638,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -733,27 +678,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -762,23 +702,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -786,39 +723,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -828,23 +754,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -852,10 +772,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -864,7 +782,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -872,8 +789,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -882,20 +797,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -904,7 +816,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -916,8 +827,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -927,13 +836,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -942,8 +851,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -953,14 +860,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -968,8 +876,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -979,22 +885,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -1004,7 +906,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1014,8 +915,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -1025,14 +924,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1042,20 +939,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1064,21 +959,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1086,35 +980,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1124,21 +1011,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1148,20 +1031,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1170,21 +1051,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1192,35 +1072,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1230,30 +1103,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1263,43 +1132,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) - private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1311,8 +1178,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java index 723a51d328db..398e192725e9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsRequestOrBuilder - extends +public interface ListPrivateConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -63,14 +36,11 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +63,48 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java index 4d0d3fc1ba44..7cc523310881 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} */ -public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} + */ +public final class ListPrivateConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) ListPrivateConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsResponse.newBuilder() to construct. - private ListPrivateConnectionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsResponse() { privateConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -38,123 +23,100 @@ private ListPrivateConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPrivateConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); } public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List - privateConnections_; + private java.util.List privateConnections_; /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List - getPrivateConnectionsList() { + public java.util.List getPrivateConnectionsList() { return privateConnections_; } /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPrivateConnectionsOrBuilderList() { return privateConnections_; } /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ @java.lang.Override public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index) { return privateConnections_.get(index); } /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder - getPrivateConnectionsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { return privateConnections_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +125,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -195,46 +157,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -242,23 +195,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < privateConnections_.size(); i++) { output.writeMessage(1, privateConnections_.get(i)); } @@ -290,8 +241,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < privateConnections_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, privateConnections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -312,17 +263,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; - if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getPrivateConnectionsList() + .equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,130 +303,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -492,16 +440,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance(); } @java.lang.Override @@ -515,18 +461,14 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse build @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result = - new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(this); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -543,8 +485,7 @@ private void buildPartialRepeatedFields( result.unreachable_ = unreachable_; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -555,51 +496,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other) { - if (other - == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other) { + if (other == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance()) return this; if (privateConnectionsBuilder_ == null) { if (!other.privateConnections_.isEmpty()) { if (privateConnections_.isEmpty()) { @@ -618,10 +554,9 @@ public Builder mergeFrom( privateConnectionsBuilder_ = null; privateConnections_ = other.privateConnections_; bitField0_ = (bitField0_ & ~0x00000001); - privateConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrivateConnectionsFieldBuilder() - : null; + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrivateConnectionsFieldBuilder() : null; } else { privateConnectionsBuilder_.addAllMessages(other.privateConnections_); } @@ -668,40 +603,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.PrivateConnection m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), - extensionRegistry); - if (privateConnectionsBuilder_ == null) { - ensurePrivateConnectionsIsMutable(); - privateConnections_.add(m); - } else { - privateConnectionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.PrivateConnection m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), + extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -711,39 +642,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private java.util.List - privateConnections_ = java.util.Collections.emptyList(); - + private java.util.List privateConnections_ = + java.util.Collections.emptyList(); private void ensurePrivateConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - privateConnections_ = - new java.util.ArrayList( - privateConnections_); + privateConnections_ = new java.util.ArrayList(privateConnections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> - privateConnectionsBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> privateConnectionsBuilder_; /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsList() { + public java.util.List getPrivateConnectionsList() { if (privateConnectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(privateConnections_); } else { @@ -751,14 +671,11 @@ private void ensurePrivateConnectionsIsMutable() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public int getPrivateConnectionsCount() { if (privateConnectionsBuilder_ == null) { @@ -768,14 +685,11 @@ public int getPrivateConnectionsCount() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -785,14 +699,11 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -809,14 +720,11 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -830,17 +738,13 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public Builder addPrivateConnections( - com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder addPrivateConnections(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -854,14 +758,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -878,14 +779,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -899,14 +797,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -920,21 +815,18 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addAllPrivateConnections( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (privateConnectionsBuilder_ == null) { ensurePrivateConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateConnections_); onChanged(); } else { privateConnectionsBuilder_.addAllMessages(values); @@ -942,14 +834,11 @@ public Builder addAllPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder clearPrivateConnections() { if (privateConnectionsBuilder_ == null) { @@ -962,14 +851,11 @@ public Builder clearPrivateConnections() { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder removePrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -982,49 +868,39 @@ public Builder removePrivateConnections(int index) { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - getPrivateConnectionsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionsBuilder( + int index) { return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder - getPrivateConnectionsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { if (privateConnectionsBuilder_ == null) { - return privateConnections_.get(index); - } else { + return privateConnections_.get(index); } else { return privateConnectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsOrBuilderList() { + public java.util.List + getPrivateConnectionsOrBuilderList() { if (privateConnectionsBuilder_ != null) { return privateConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -1032,62 +908,45 @@ public Builder removePrivateConnections(int index) { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - addPrivateConnectionsBuilder() { - return getPrivateConnectionsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder() { + return getPrivateConnectionsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - addPrivateConnectionsBuilder(int index) { - return getPrivateConnectionsFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsBuilderList() { + public java.util.List + getPrivateConnectionsBuilderList() { return getPrivateConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> getPrivateConnectionsFieldBuilder() { if (privateConnectionsBuilder_ == null) { - privateConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( + privateConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( privateConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1099,21 +958,19 @@ public Builder removePrivateConnections(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1122,22 +979,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1145,37 +1001,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1185,22 +1034,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1208,52 +1053,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1261,90 +1096,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1354,30 +1175,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1387,43 +1204,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) - private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1435,8 +1250,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java similarity index 70% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java index 98cb0470d9f0..170ace8266a0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsResponseOrBuilder - extends +public interface ListPrivateConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsList(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ int getPrivateConnectionsCount(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsOrBuilderList(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java index 4ee1825e8b73..eb45fbbc1724 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route list request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesRequest} */ -public final class ListRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesRequest) ListRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesRequest.newBuilder() to construct. private ListRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,45 +28,38 @@ private ListRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRoutesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -93,31 +68,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -128,8 +101,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -138,7 +109,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -147,12 +117,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -162,7 +129,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +137,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -189,15 +154,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -206,18 +172,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -226,29 +188,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -257,18 +219,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -277,29 +235,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -308,7 +266,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -349,7 +307,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -368,19 +327,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = - (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,136 +371,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListRoutesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * route list request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListRoutesRequest) com.google.cloud.datastream.v1alpha1.ListRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListRoutesRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,9 +507,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override @@ -572,11 +528,8 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListRoutesRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListRoutesRequest result = - new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ListRoutesRequest result = new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -604,39 +557,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListRoutesReques public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListRoutesRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesRequest)other); } else { super.mergeFrom(other); return this; @@ -644,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -695,43 +646,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -741,27 +686,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -770,23 +710,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -794,39 +731,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -836,23 +762,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -860,10 +780,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -872,7 +790,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -880,8 +797,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -890,20 +805,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -912,7 +824,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -924,8 +835,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -935,13 +844,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -950,8 +859,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -961,14 +868,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -976,8 +884,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -987,22 +893,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -1012,7 +914,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1022,8 +923,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -1033,14 +932,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1050,20 +947,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1072,21 +967,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1094,35 +988,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1132,21 +1019,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1156,20 +1039,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1178,21 +1059,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1200,35 +1080,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1238,30 +1111,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1271,12 +1140,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListRoutesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListRoutesRequest) private static final com.google.cloud.datastream.v1alpha1.ListRoutesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(); } @@ -1285,27 +1154,27 @@ public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1320,4 +1189,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java index 0e5b922bfe95..992784abb2fb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesRequestOrBuilder - extends +public interface ListRoutesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -63,14 +36,11 @@ public interface ListRoutesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +63,48 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java index 5f1087e8b0cc..c49f73030006 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route list response
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesResponse} */ -public final class ListRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesResponse) ListRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesResponse.newBuilder() to construct. private ListRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesResponse() { routes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,37 +27,33 @@ private ListRoutesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListRoutesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List routes_; /** - * - * *
    * List of Routes.
    * 
@@ -87,8 +65,6 @@ public java.util.List getRoutesList( return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -96,13 +72,11 @@ public java.util.List getRoutesList( * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -114,8 +88,6 @@ public int getRoutesCount() { return routes_.size(); } /** - * - * *
    * List of Routes.
    * 
@@ -127,8 +99,6 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { return routes_.get(index); } /** - * - * *
    * List of Routes.
    * 
@@ -136,24 +106,21 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( + int index) { return routes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -162,30 +129,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -194,46 +161,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -241,23 +199,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -289,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, routes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -310,17 +267,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = - (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,136 +307,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListRoutesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * route list response
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListRoutesResponse) com.google.cloud.datastream.v1alpha1.ListRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListRoutesResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +448,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override @@ -517,18 +469,14 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListRoutesResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListRoutesResponse result = - new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(this); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse result = new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -556,39 +504,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListRoutesRespon public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListRoutesResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesResponse)other); } else { super.mergeFrom(other); return this; @@ -596,8 +543,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -616,10 +562,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRoutesFieldBuilder() - : null; + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; } else { routesBuilder_.addAllMessages(other.routes_); } @@ -666,39 +611,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.Route m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.Route m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Route.parser(), + extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -708,28 +650,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List routes_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> - routesBuilder_; + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> routesBuilder_; /** - * - * *
      * List of Routes.
      * 
@@ -744,8 +679,6 @@ public java.util.List getRoutesList( } } /** - * - * *
      * List of Routes.
      * 
@@ -760,8 +693,6 @@ public int getRoutesCount() { } } /** - * - * *
      * List of Routes.
      * 
@@ -776,15 +707,14 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder setRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder setRoutes( + int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -798,8 +728,6 @@ public Builder setRoutes(int index, com.google.cloud.datastream.v1alpha1.Route v return this; } /** - * - * *
      * List of Routes.
      * 
@@ -818,8 +746,6 @@ public Builder setRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -840,15 +766,14 @@ public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder addRoutes( + int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -862,15 +787,14 @@ public Builder addRoutes(int index, com.google.cloud.datastream.v1alpha1.Route v return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder addRoutes( + com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -881,8 +805,6 @@ public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route.Builder buil return this; } /** - * - * *
      * List of Routes.
      * 
@@ -901,8 +823,6 @@ public Builder addRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -913,7 +833,8 @@ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); @@ -921,8 +842,6 @@ public Builder addAllRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -940,8 +859,6 @@ public Builder clearRoutes() { return this; } /** - * - * *
      * List of Routes.
      * 
@@ -959,44 +876,39 @@ public Builder removeRoutes(int index) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder( + int index) { return getRoutesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( + int index) { if (routesBuilder_ == null) { - return routes_.get(index); - } else { + return routes_.get(index); } else { return routesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesOrBuilderList() { + public java.util.List + getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { @@ -1004,8 +916,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(in } } /** - * - * *
      * List of Routes.
      * 
@@ -1013,48 +923,42 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(in * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + return getRoutesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder(int index) { - return getRoutesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesBuilderList() { + public java.util.List + getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { - routesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( - routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); routes_ = null; } return routesBuilder_; @@ -1062,21 +966,19 @@ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1085,22 +987,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1108,37 +1009,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1148,22 +1042,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1171,52 +1061,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1224,90 +1104,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1317,30 +1183,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1350,12 +1212,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListRoutesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListRoutesResponse) private static final com.google.cloud.datastream.v1alpha1.ListRoutesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(); } @@ -1364,27 +1226,27 @@ public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1399,4 +1261,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java index 60a9d2d0ebde..159ae49cda6c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesResponseOrBuilder - extends +public interface ListRoutesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List getRoutesList(); + java.util.List + getRoutesList(); /** - * - * *
    * List of Routes.
    * 
@@ -44,8 +25,6 @@ public interface ListRoutesResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Route getRoutes(int index); /** - * - * *
    * List of Routes.
    * 
@@ -54,102 +33,84 @@ public interface ListRoutesResponseOrBuilder */ int getRoutesCount(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List + java.util.List getRoutesOrBuilderList(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java index ce4fcb43f512..cf1cc2afc422 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} */ -public final class ListStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} + */ +public final class ListStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsRequest) ListStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsRequest.newBuilder() to construct. private ListStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsRequest() { parent_ = ""; pageToken_ = ""; @@ -38,45 +24,38 @@ private ListStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -85,31 +64,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -120,8 +97,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -129,7 +104,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -138,12 +112,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -152,7 +123,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -161,15 +131,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -178,15 +147,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -195,18 +165,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ @java.lang.Override @@ -215,29 +181,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -246,18 +212,14 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int ORDER_BY_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ @java.lang.Override @@ -266,29 +228,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -297,7 +259,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +270,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -338,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -357,19 +320,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = - (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -397,128 +364,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListStreamsRequest) com.google.cloud.datastream.v1alpha1.ListStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListStreamsRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -532,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override @@ -553,11 +517,8 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListStreamsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListStreamsRequest result = - new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ListStreamsRequest result = new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -585,39 +546,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListStreamsReque public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListStreamsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsRequest)other); } else { super.mergeFrom(other); return this; @@ -625,8 +585,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -676,43 +635,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -722,27 +675,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -751,23 +699,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -775,39 +720,28 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { @@ -817,23 +751,17 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -841,10 +769,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -852,7 +778,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -860,8 +785,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -869,20 +792,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -890,7 +810,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -902,8 +821,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -912,13 +829,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -927,8 +844,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -937,14 +852,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -952,8 +868,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -962,22 +876,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -986,7 +896,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -996,8 +905,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -1006,14 +913,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1023,20 +928,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1045,21 +948,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1067,35 +969,28 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilter( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1105,21 +1000,17 @@ public Builder clearFilter() { return this; } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1129,20 +1020,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1151,21 +1040,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1173,35 +1061,28 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1211,30 +1092,26 @@ public Builder clearOrderBy() { return this; } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1244,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListStreamsRequest) private static final com.google.cloud.datastream.v1alpha1.ListStreamsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(); } @@ -1258,27 +1135,27 @@ public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1293,4 +1170,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java index f6d4220d5ec5..a4c32d0969eb 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsRequestOrBuilder - extends +public interface ListStreamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -62,14 +35,11 @@ public interface ListStreamsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java index b624888139bb..75292376feb1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} */ -public final class ListStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} + */ +public final class ListStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsResponse) ListStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsResponse.newBuilder() to construct. private ListStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsResponse() { streams_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -37,37 +23,33 @@ private ListStreamsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List streams_; /** - * - * *
    * List of streams
    * 
@@ -79,8 +61,6 @@ public java.util.List getStreamsLis return streams_; } /** - * - * *
    * List of streams
    * 
@@ -88,13 +68,11 @@ public java.util.List getStreamsLis * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
    * List of streams
    * 
@@ -106,8 +84,6 @@ public int getStreamsCount() { return streams_.size(); } /** - * - * *
    * List of streams
    * 
@@ -119,8 +95,6 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { return streams_.get(index); } /** - * - * *
    * List of streams
    * 
@@ -128,24 +102,21 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( + int index) { return streams_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -154,30 +125,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -186,46 +157,37 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_; } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -233,23 +195,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +220,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -281,7 +241,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, streams_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -302,17 +263,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = - (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; - if (!getStreamsList().equals(other.getStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,128 +303,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListStreamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListStreamsResponse) com.google.cloud.datastream.v1alpha1.ListStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListStreamsResponse.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override @@ -501,18 +461,14 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListStreamsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListStreamsResponse result = - new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(this); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse result = new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListStreamsResponse result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -540,39 +496,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListStreamsRespo public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListStreamsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsResponse) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsResponse)other); } else { super.mergeFrom(other); return this; @@ -580,8 +535,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -600,10 +554,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRespons streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -650,39 +603,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.Stream m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.Stream m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.parser(), + extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -692,28 +642,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> - streamsBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamsBuilder_; /** - * - * *
      * List of streams
      * 
@@ -728,8 +671,6 @@ public java.util.List getStreamsLis } } /** - * - * *
      * List of streams
      * 
@@ -744,8 +685,6 @@ public int getStreamsCount() { } } /** - * - * *
      * List of streams
      * 
@@ -760,15 +699,14 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder setStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder setStreams( + int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -782,8 +720,6 @@ public Builder setStreams(int index, com.google.cloud.datastream.v1alpha1.Stream return this; } /** - * - * *
      * List of streams
      * 
@@ -802,8 +738,6 @@ public Builder setStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -824,15 +758,14 @@ public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder addStreams( + int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -846,15 +779,14 @@ public Builder addStreams(int index, com.google.cloud.datastream.v1alpha1.Stream return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder addStreams( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(builderForValue.build()); @@ -865,8 +797,6 @@ public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream.Builder bu return this; } /** - * - * *
      * List of streams
      * 
@@ -885,8 +815,6 @@ public Builder addStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -897,7 +825,8 @@ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -905,8 +834,6 @@ public Builder addAllStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -924,8 +851,6 @@ public Builder clearStreams() { return this; } /** - * - * *
      * List of streams
      * 
@@ -943,44 +868,39 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder( + int index) { return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( + int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -988,8 +908,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( } } /** - * - * *
      * List of streams
      * 
@@ -997,48 +915,42 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder(int index) { - return getStreamsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder( + int index) { + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; @@ -1046,21 +958,19 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1069,22 +979,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1092,37 +1001,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1132,22 +1034,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1155,52 +1053,42 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList unreachable_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { + public com.google.protobuf.ProtocolStringList + getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1208,90 +1096,76 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable(java.lang.Iterable values) { + public Builder addAllUnreachable( + java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unreachable_); onChanged(); return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1301,30 +1175,26 @@ public Builder clearUnreachable() { return this; } /** - * - * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; - * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1334,12 +1204,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListStreamsResponse) private static final com.google.cloud.datastream.v1alpha1.ListStreamsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(); } @@ -1348,27 +1218,27 @@ public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1383,4 +1253,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java index 00f820f81aa4..ce3acb89aaa1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsResponseOrBuilder - extends +public interface ListStreamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
    * List of streams
    * 
@@ -44,8 +25,6 @@ public interface ListStreamsResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Stream getStreams(int index); /** - * - * *
    * List of streams
    * 
@@ -54,102 +33,84 @@ public interface ListStreamsResponseOrBuilder */ int getStreamsCount(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java index 062b08347727..4aad4ba28cda 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlColumn} */ -public final class MysqlColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlColumn) MysqlColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlColumn.newBuilder() to construct. private MysqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlColumn() { columnName_ = ""; dataType_ = ""; @@ -45,43 +27,38 @@ private MysqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlColumn.class, - com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlColumn.class, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object columnName_ = ""; /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getColumnName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } } /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -121,19 +98,15 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The dataType. */ @java.lang.Override @@ -142,30 +115,30 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -176,14 +149,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -192,18 +162,14 @@ public int getLength() { } public static final int COLLATION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object collation_ = ""; /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The collation. */ @java.lang.Override @@ -212,29 +178,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -245,14 +211,11 @@ public com.google.protobuf.ByteString getCollationBytes() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_ = false; /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; - * * @return The primaryKey. */ @java.lang.Override @@ -263,14 +226,11 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_ = false; /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; - * * @return The nullable. */ @java.lang.Override @@ -281,14 +241,11 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_ = 0; /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ @java.lang.Override @@ -297,7 +254,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +265,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -347,19 +304,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -369,21 +330,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlColumn other = - (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (!getCollation().equals(other.getCollation())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.MysqlColumn other = (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (!getCollation() + .equals(other.getCollation())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,9 +371,11 @@ public int hashCode() { hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -414,136 +383,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlColumn} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlColumn) com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlColumn.class, - com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlColumn.class, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlColumn.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -559,9 +522,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override @@ -580,11 +543,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlColumn buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlColumn result = - new com.google.cloud.datastream.v1alpha1.MysqlColumn(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.MysqlColumn result = new com.google.cloud.datastream.v1alpha1.MysqlColumn(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -618,39 +578,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlColumn resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlColumn) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlColumn)other); } else { super.mergeFrom(other); return this; @@ -658,8 +617,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; bitField0_ |= 0x00000001; @@ -713,55 +671,47 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - columnName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - collation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - nullable_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + columnName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + nullable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -771,25 +721,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object columnName_ = ""; /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The columnName. */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; @@ -798,21 +745,20 @@ public java.lang.String getColumnName() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -820,35 +766,28 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } columnName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return This builder for chaining. */ public Builder clearColumnName() { @@ -858,21 +797,17 @@ public Builder clearColumnName() { return this; } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The bytes for columnName to set. * @return This builder for chaining. */ - public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnName_ = value; bitField0_ |= 0x00000001; @@ -882,21 +817,19 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -905,22 +838,21 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -928,37 +860,30 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return This builder for chaining. */ public Builder clearDataType() { @@ -968,22 +893,18 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -991,16 +912,13 @@ public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int length_; + private int length_ ; /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -1008,33 +926,27 @@ public int getLength() { return length_; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1046,20 +958,18 @@ public Builder clearLength() { private java.lang.Object collation_ = ""; /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -1068,21 +978,20 @@ public java.lang.String getCollation() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The bytes for collation. */ - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -1090,35 +999,28 @@ public com.google.protobuf.ByteString getCollationBytes() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollation( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } collation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return This builder for chaining. */ public Builder clearCollation() { @@ -1128,21 +1030,17 @@ public Builder clearCollation() { return this; } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCollationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); collation_ = value; bitField0_ |= 0x00000008; @@ -1150,16 +1048,13 @@ public Builder setCollationBytes(com.google.protobuf.ByteString value) { return this; } - private boolean primaryKey_; + private boolean primaryKey_ ; /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @return The primaryKey. */ @java.lang.Override @@ -1167,33 +1062,27 @@ public boolean getPrimaryKey() { return primaryKey_; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; - * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1203,16 +1092,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @return The nullable. */ @java.lang.Override @@ -1220,33 +1106,27 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; - * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1256,16 +1136,13 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_; + private int ordinalPosition_ ; /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ @java.lang.Override @@ -1273,33 +1150,27 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1308,9 +1179,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1320,12 +1191,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlColumn) private static final com.google.cloud.datastream.v1alpha1.MysqlColumn DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlColumn(); } @@ -1334,27 +1205,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1369,4 +1240,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java index eb736dee3c31..28517c044bdf 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java @@ -1,153 +1,110 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlColumnOrBuilder - extends +public interface MysqlColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ java.lang.String getColumnName(); /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - com.google.protobuf.ByteString getColumnNameBytes(); + com.google.protobuf.ByteString + getColumnNameBytes(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The collation. */ java.lang.String getCollation(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The bytes for collation. */ - com.google.protobuf.ByteString getCollationBytes(); + com.google.protobuf.ByteString + getCollationBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java index f6b1926cce36..3e06d55b5594 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL database.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlDatabase} */ -public final class MysqlDatabase extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlDatabase extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlDatabase) MysqlDatabaseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlDatabase.newBuilder() to construct. private MysqlDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlDatabase() { databaseName_ = ""; mysqlTables_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private MysqlDatabase() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlDatabase(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); } public static final int DATABASE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object databaseName_ = ""; /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The databaseName. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getDatabaseName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; } } /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The bytes for databaseName. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseNameBytes() { + public com.google.protobuf.ByteString + getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseName_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { } public static final int MYSQL_TABLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List mysqlTables_; /** - * - * *
    * Tables in the database.
    * 
@@ -137,8 +111,6 @@ public java.util.List getMysqlT return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -146,13 +118,11 @@ public java.util.List getMysqlT * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlTablesOrBuilderList() { return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -164,8 +134,6 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** - * - * *
    * Tables in the database.
    * 
@@ -177,8 +145,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) return mysqlTables_.get(index); } /** - * - * *
    * Tables in the database.
    * 
@@ -192,7 +158,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, databaseName_); } for (int i = 0; i < mysqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, mysqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlDatabase)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlDatabase other = - (com.google.cloud.datastream.v1alpha1.MysqlDatabase) obj; + com.google.cloud.datastream.v1alpha1.MysqlDatabase other = (com.google.cloud.datastream.v1alpha1.MysqlDatabase) obj; - if (!getDatabaseName().equals(other.getDatabaseName())) return false; - if (!getMysqlTablesList().equals(other.getMysqlTablesList())) return false; + if (!getDatabaseName() + .equals(other.getDatabaseName())) return false; + if (!getMysqlTablesList() + .equals(other.getMysqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,135 +235,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlDatabase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlDatabase} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlDatabase) com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlDatabase.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override @@ -433,18 +395,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlDatabase buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlDatabase result = - new com.google.cloud.datastream.v1alpha1.MysqlDatabase(this); + com.google.cloud.datastream.v1alpha1.MysqlDatabase result = new com.google.cloud.datastream.v1alpha1.MysqlDatabase(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.MysqlDatabase result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlDatabase result) { if (mysqlTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); @@ -467,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlDatabase re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlDatabase) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlDatabase) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlDatabase)other); } else { super.mergeFrom(other); return this; @@ -507,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) return this; if (!other.getDatabaseName().isEmpty()) { databaseName_ = other.databaseName_; bitField0_ |= 0x00000001; @@ -532,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase othe mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlTablesFieldBuilder() - : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlTablesFieldBuilder() : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -567,33 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - databaseName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1alpha1.MysqlTable m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), - extensionRegistry); - if (mysqlTablesBuilder_ == null) { - ensureMysqlTablesIsMutable(); - mysqlTables_.add(m); - } else { - mysqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + databaseName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1alpha1.MysqlTable m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), + extensionRegistry); + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(m); + } else { + mysqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,25 +555,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object databaseName_ = ""; /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @return The databaseName. */ public java.lang.String getDatabaseName() { java.lang.Object ref = databaseName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; @@ -630,21 +579,20 @@ public java.lang.String getDatabaseName() { } } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @return The bytes for databaseName. */ - public com.google.protobuf.ByteString getDatabaseNameBytes() { + public com.google.protobuf.ByteString + getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseName_ = b; return b; } else { @@ -652,35 +600,28 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { } } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @param value The databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @return This builder for chaining. */ public Builder clearDatabaseName() { @@ -690,21 +631,17 @@ public Builder clearDatabaseName() { return this; } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @param value The bytes for databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseName_ = value; bitField0_ |= 0x00000001; @@ -713,25 +650,18 @@ public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlTables_ = - new java.util.ArrayList(mysqlTables_); + mysqlTables_ = new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> - mysqlTablesBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> mysqlTablesBuilder_; /** - * - * *
      * Tables in the database.
      * 
@@ -746,8 +676,6 @@ public java.util.List getMysqlT } } /** - * - * *
      * Tables in the database.
      * 
@@ -762,8 +690,6 @@ public int getMysqlTablesCount() { } } /** - * - * *
      * Tables in the database.
      * 
@@ -778,8 +704,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) } } /** - * - * *
      * Tables in the database.
      * 
@@ -801,8 +725,6 @@ public Builder setMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -821,8 +743,6 @@ public Builder setMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -843,8 +763,6 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1alpha1.MysqlTable va return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -866,8 +784,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -886,8 +802,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -906,8 +820,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -918,7 +830,8 @@ public Builder addAllMysqlTables( java.lang.Iterable values) { if (mysqlTablesBuilder_ == null) { ensureMysqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlTables_); onChanged(); } else { mysqlTablesBuilder_.addAllMessages(values); @@ -926,8 +839,6 @@ public Builder addAllMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -945,8 +856,6 @@ public Builder clearMysqlTables() { return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -964,8 +873,6 @@ public Builder removeMysqlTables(int index) { return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -977,8 +884,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui return getMysqlTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the database.
      * 
@@ -988,22 +893,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( int index) { if (mysqlTablesBuilder_ == null) { - return mysqlTables_.get(index); - } else { + return mysqlTables_.get(index); } else { return mysqlTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesOrBuilderList() { + public java.util.List + getMysqlTablesOrBuilderList() { if (mysqlTablesBuilder_ != null) { return mysqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1011,8 +913,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } } /** - * - * *
      * Tables in the database.
      * 
@@ -1020,12 +920,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder() { - return getMysqlTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
@@ -1034,42 +932,37 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBui */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder( int index) { - return getMysqlTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesBuilderList() { + public java.util.List + getMysqlTablesBuilderList() { return getMysqlTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> getMysqlTablesFieldBuilder() { if (mysqlTablesBuilder_ == null) { - mysqlTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder>( - mysqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + mysqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder>( + mysqlTables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); mysqlTables_ = null; } return mysqlTablesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1079,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlDatabase) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlDatabase) private static final com.google.cloud.datastream.v1alpha1.MysqlDatabase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlDatabase(); } @@ -1093,27 +986,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlDatabase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlDatabase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java index 8e8acb30e976..a40566827204 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlDatabaseOrBuilder - extends +public interface MysqlDatabaseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlDatabase) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The databaseName. */ java.lang.String getDatabaseName(); /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The bytes for databaseName. */ - com.google.protobuf.ByteString getDatabaseNameBytes(); + com.google.protobuf.ByteString + getDatabaseNameBytes(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List getMysqlTablesList(); + java.util.List + getMysqlTablesList(); /** - * - * *
    * Tables in the database.
    * 
@@ -69,8 +45,6 @@ public interface MysqlDatabaseOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index); /** - * - * *
    * Tables in the database.
    * 
@@ -79,24 +53,21 @@ public interface MysqlDatabaseOrBuilder */ int getMysqlTablesCount(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List + java.util.List getMysqlTablesOrBuilderList(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java index 724e78ceee11..db3b1b1d5afd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlProfile} */ -public final class MysqlProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlProfile) MysqlProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlProfile.newBuilder() to construct. private MysqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlProfile() { hostname_ = ""; username_ = ""; @@ -45,43 +27,38 @@ private MysqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlProfile.class, - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlProfile.class, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -123,14 +100,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -139,18 +113,14 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -159,29 +129,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -190,20 +160,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ @java.lang.Override @@ -212,31 +176,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -247,14 +209,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int SSL_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -262,25 +221,18 @@ public boolean hasSslConfig() { return sslConfig_ != null; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
@@ -289,13 +241,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,7 +256,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -336,7 +286,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -345,7 +296,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (sslConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSslConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSslConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -355,21 +307,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlProfile other = - (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; + com.google.cloud.datastream.v1alpha1.MysqlProfile other = (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (hasSslConfig() != other.hasSslConfig()) return false; if (hasSslConfig()) { - if (!getSslConfig().equals(other.getSslConfig())) return false; + if (!getSslConfig() + .equals(other.getSslConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -400,135 +356,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlProfile) com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlProfile.class, - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlProfile.class, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override @@ -567,11 +517,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlProfile result = - new com.google.cloud.datastream.v1alpha1.MysqlProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.MysqlProfile result = new com.google.cloud.datastream.v1alpha1.MysqlProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -591,7 +538,9 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlProfile res result.password_ = password_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); + result.sslConfig_ = sslConfigBuilder_ == null + ? sslConfig_ + : sslConfigBuilder_.build(); } } @@ -599,39 +548,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlProfile res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile)other); } else { super.mergeFrom(other); return this; @@ -639,8 +587,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -688,43 +635,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getSslConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -734,25 +677,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -761,21 +701,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -783,35 +722,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -821,21 +753,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -843,16 +771,13 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -860,33 +785,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -898,20 +817,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -920,21 +837,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -942,35 +858,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -980,21 +889,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1004,22 +909,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1028,23 +929,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1052,39 +950,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return This builder for chaining. */ public Builder clearPassword() { @@ -1094,23 +981,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1120,47 +1001,34 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> - sslConfigBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> sslConfigBuilder_; /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ public boolean hasSslConfig() { return ((bitField0_ & 0x00000010) != 0); } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { if (sslConfigBuilder_ == null) { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } else { return sslConfigBuilder_.getMessage(); } } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1181,8 +1049,6 @@ public Builder setSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1201,8 +1067,6 @@ public Builder setSslConfig( return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1211,10 +1075,9 @@ public Builder setSslConfig( */ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig value) { if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && sslConfig_ != null - && sslConfig_ - != com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) && + sslConfig_ != null && + sslConfig_ != com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) { getSslConfigBuilder().mergeFrom(value); } else { sslConfig_ = value; @@ -1227,8 +1090,6 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1246,8 +1107,6 @@ public Builder clearSslConfig() { return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1260,8 +1119,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder getSslConfigB return getSslConfigFieldBuilder().getBuilder(); } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1272,14 +1129,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig if (sslConfigBuilder_ != null) { return sslConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1287,24 +1141,21 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> getSslConfigFieldBuilder() { if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( - getSslConfig(), getParentForChildren(), isClean()); + sslConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( + getSslConfig(), + getParentForChildren(), + isClean()); sslConfig_ = null; } return sslConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1314,12 +1165,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlProfile) private static final com.google.cloud.datastream.v1alpha1.MysqlProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlProfile(); } @@ -1328,27 +1179,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1363,4 +1214,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java index 71fc05343c77..e84fd0e1ab31 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java @@ -1,147 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlProfileOrBuilder - extends +public interface MysqlProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ boolean hasSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java index c6e399e1a099..26113feeec34 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL database structure
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlRdbms} */ -public final class MysqlRdbms extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlRdbms extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlRdbms) MysqlRdbmsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlRdbms.newBuilder() to construct. private MysqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlRdbms() { mysqlDatabases_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); } public static final int MYSQL_DATABASES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List mysqlDatabases_; /** - * - * *
    * Mysql databases on the server
    * 
@@ -81,13 +59,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List - getMysqlDatabasesList() { + public java.util.List getMysqlDatabasesList() { return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -95,13 +70,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlDatabasesOrBuilderList() { return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -113,8 +86,6 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -126,8 +97,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int return mysqlDatabases_.get(index); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -141,7 +110,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -167,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mysqlDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mysqlDatabases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, mysqlDatabases_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -177,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlRdbms other = - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) obj; + com.google.cloud.datastream.v1alpha1.MysqlRdbms other = (com.google.cloud.datastream.v1alpha1.MysqlRdbms) obj; - if (!getMysqlDatabasesList().equals(other.getMysqlDatabasesList())) return false; + if (!getMysqlDatabasesList() + .equals(other.getMysqlDatabasesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -206,136 +176,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL database structure
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlRdbms} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlRdbms) com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override @@ -372,18 +336,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlRdbms result = - new com.google.cloud.datastream.v1alpha1.MysqlRdbms(this); + com.google.cloud.datastream.v1alpha1.MysqlRdbms result = new com.google.cloud.datastream.v1alpha1.MysqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.MysqlRdbms result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlRdbms result) { if (mysqlDatabasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); @@ -403,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlRdbms resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms)other); } else { super.mergeFrom(other); return this; @@ -443,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) return this; if (mysqlDatabasesBuilder_ == null) { if (!other.mysqlDatabases_.isEmpty()) { if (mysqlDatabases_.isEmpty()) { @@ -463,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) mysqlDatabasesBuilder_ = null; mysqlDatabases_ = other.mysqlDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlDatabasesFieldBuilder() - : null; + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlDatabasesFieldBuilder() : null; } else { mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); } @@ -498,27 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.MysqlDatabase m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), - extensionRegistry); - if (mysqlDatabasesBuilder_ == null) { - ensureMysqlDatabasesIsMutable(); - mysqlDatabases_.add(m); - } else { - mysqlDatabasesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.MysqlDatabase m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), + extensionRegistry); + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(m); + } else { + mysqlDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -528,38 +483,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List mysqlDatabases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = - new java.util.ArrayList( - mysqlDatabases_); + mysqlDatabases_ = new java.util.ArrayList(mysqlDatabases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> - mysqlDatabasesBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> mysqlDatabasesBuilder_; /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesList() { + public java.util.List getMysqlDatabasesList() { if (mysqlDatabasesBuilder_ == null) { return java.util.Collections.unmodifiableList(mysqlDatabases_); } else { @@ -567,8 +512,6 @@ private void ensureMysqlDatabasesIsMutable() { } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -583,8 +526,6 @@ public int getMysqlDatabasesCount() { } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -599,8 +540,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -622,8 +561,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -642,8 +579,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -664,8 +599,6 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1alpha1.MysqlDatab return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -687,8 +620,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -707,8 +638,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -727,8 +656,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -739,7 +666,8 @@ public Builder addAllMysqlDatabases( java.lang.Iterable values) { if (mysqlDatabasesBuilder_ == null) { ensureMysqlDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlDatabases_); onChanged(); } else { mysqlDatabasesBuilder_.addAllMessages(values); @@ -747,8 +675,6 @@ public Builder addAllMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -766,8 +692,6 @@ public Builder clearMysqlDatabases() { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -785,8 +709,6 @@ public Builder removeMysqlDatabases(int index) { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -798,8 +720,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -809,22 +729,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( int index) { if (mysqlDatabasesBuilder_ == null) { - return mysqlDatabases_.get(index); - } else { + return mysqlDatabases_.get(index); } else { return mysqlDatabasesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesOrBuilderList() { + public java.util.List + getMysqlDatabasesOrBuilderList() { if (mysqlDatabasesBuilder_ != null) { return mysqlDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -832,8 +749,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -841,12 +756,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder() { - return getMysqlDatabasesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -855,35 +768,26 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDataba */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder( int index) { - return getMysqlDatabasesFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesBuilderList() { + public java.util.List + getMysqlDatabasesBuilderList() { return getMysqlDatabasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> getMysqlDatabasesFieldBuilder() { if (mysqlDatabasesBuilder_ == null) { - mysqlDatabasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( + mysqlDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( mysqlDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,9 +796,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDataba } return mysqlDatabasesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -904,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlRdbms) private static final com.google.cloud.datastream.v1alpha1.MysqlRdbms DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlRdbms(); } @@ -918,27 +822,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -953,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java index 57ea7c1afc30..a66f896a8c8c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlRdbmsOrBuilder - extends +public interface MysqlRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List getMysqlDatabasesList(); + java.util.List + getMysqlDatabasesList(); /** - * - * *
    * Mysql databases on the server
    * 
@@ -44,8 +25,6 @@ public interface MysqlRdbmsOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int index); /** - * - * *
    * Mysql databases on the server
    * 
@@ -54,24 +33,21 @@ public interface MysqlRdbmsOrBuilder */ int getMysqlDatabasesCount(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List + java.util.List getMysqlDatabasesOrBuilderList(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java index 94fe82ebe64e..ebfd960e9e4e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSourceConfig} */ -public final class MysqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlSourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlSourceConfig) MysqlSourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlSourceConfig.newBuilder() to construct. private MysqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private MysqlSourceConfig() {} + private MysqlSourceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); } public static final int ALLOWLIST_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1alpha1.MysqlRdbms allowlist_; /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -110,22 +82,17 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBuilder() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } public static final int REJECTLIST_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist_; /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ @java.lang.Override @@ -133,25 +100,18 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
@@ -160,13 +120,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrBuilder() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -195,10 +153,12 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRejectlist()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,21 +168,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = - (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist().equals(other.getAllowlist())) return false; + if (!getAllowlist() + .equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist().equals(other.getRejectlist())) return false; + if (!getRejectlist() + .equals(other.getRejectlist())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,136 +210,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlSourceConfig) com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override @@ -418,11 +372,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result = - new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result = new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,10 +381,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowlist_ = allowlistBuilder_ == null ? allowlist_ : allowlistBuilder_.build(); + result.allowlist_ = allowlistBuilder_ == null + ? allowlist_ + : allowlistBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rejectlist_ = rejectlistBuilder_ == null ? rejectlist_ : rejectlistBuilder_.build(); + result.rejectlist_ = rejectlistBuilder_ == null + ? rejectlist_ + : rejectlistBuilder_.build(); } } @@ -441,39 +396,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSourceConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig)other); } else { super.mergeFrom(other); return this; @@ -481,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -515,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getAllowlistFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRejectlistFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAllowlistFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRejectlistFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1alpha1.MysqlRdbms allowlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - allowlistBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> allowlistBuilder_; /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ public boolean hasAllowlist() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return The allowlist. */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { if (allowlistBuilder_ == null) { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } else { return allowlistBuilder_.getMessage(); } } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -609,8 +549,6 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms valu return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -629,8 +567,6 @@ public Builder setAllowlist( return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -639,9 +575,9 @@ public Builder setAllowlist( */ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (allowlistBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && allowlist_ != null - && allowlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + allowlist_ != null && + allowlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { getAllowlistBuilder().mergeFrom(value); } else { allowlist_ = value; @@ -654,8 +590,6 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -673,8 +607,6 @@ public Builder clearAllowlist() { return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -687,8 +619,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getAllowlistBuild return getAllowlistFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -699,14 +629,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -714,17 +641,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getAllowlist(), getParentForChildren(), isClean()); + allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getAllowlist(), + getParentForChildren(), + isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -732,47 +656,34 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu private com.google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> rejectlistBuilder_; /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return The rejectlist. */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { if (rejectlistBuilder_ == null) { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } else { return rejectlistBuilder_.getMessage(); } } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -793,8 +704,6 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -813,8 +722,6 @@ public Builder setRejectlist( return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -823,10 +730,9 @@ public Builder setRejectlist( */ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (rejectlistBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && rejectlist_ != null - && rejectlist_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + rejectlist_ != null && + rejectlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { getRejectlistBuilder().mergeFrom(value); } else { rejectlist_ = value; @@ -839,8 +745,6 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -858,8 +762,6 @@ public Builder clearRejectlist() { return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -872,8 +774,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getRejectlistBuil return getRejectlistFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -884,14 +784,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -899,24 +796,21 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getRejectlist(), getParentForChildren(), isClean()); + rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getRejectlist(), + getParentForChildren(), + isClean()); rejectlist_ = null; } return rejectlistBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -926,12 +820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlSourceConfig) private static final com.google.cloud.datastream.v1alpha1.MysqlSourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(); } @@ -940,27 +834,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -975,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java index f1a3bb820631..c8c8491a76f5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSourceConfigOrBuilder - extends +public interface MysqlSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -59,32 +35,24 @@ public interface MysqlSourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBuilder(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java index 64680bd7c7cf..8462dbcaca78 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSslConfig} */ -public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlSslConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlSslConfig) MysqlSslConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlSslConfig.newBuilder() to construct. private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlSslConfig() { clientKey_ = ""; clientCertificate_ = ""; @@ -45,37 +27,33 @@ private MysqlSslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlSslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); } public static final int CLIENT_KEY_FIELD_NUMBER = 11; - @SuppressWarnings("serial") private volatile java.lang.Object clientKey_ = ""; /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -83,7 +61,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ @java.lang.Override @@ -92,15 +69,14 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -108,15 +84,16 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -127,14 +104,11 @@ public com.google.protobuf.ByteString getClientKeyBytes() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 12; private boolean clientKeySet_ = false; /** - * - * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ @java.lang.Override @@ -143,12 +117,9 @@ public boolean getClientKeySet() { } public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 13; - @SuppressWarnings("serial") private volatile java.lang.Object clientCertificate_ = ""; /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -156,7 +127,6 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ @java.lang.Override @@ -165,15 +135,14 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -181,15 +150,16 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -200,14 +170,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 14; private boolean clientCertificateSet_ = false; /** - * - * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ @java.lang.Override @@ -216,19 +183,15 @@ public boolean getClientCertificateSet() { } public static final int CA_CERTIFICATE_FIELD_NUMBER = 15; - @SuppressWarnings("serial") private volatile java.lang.Object caCertificate_ = ""; /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ @java.lang.Override @@ -237,30 +200,30 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -271,14 +234,11 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 16; private boolean caCertificateSet_ = false; /** - * - * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ @java.lang.Override @@ -287,7 +247,6 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -299,7 +258,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clientKey_); } @@ -331,19 +291,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clientKey_); } if (clientKeySet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, clientKeySet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, clientKeySet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clientCertificate_); } if (clientCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, clientCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, clientCertificateSet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, caCertificate_); } if (caCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, caCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, caCertificateSet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -353,20 +316,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSslConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = - (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; - - if (!getClientKey().equals(other.getClientKey())) return false; - if (getClientKeySet() != other.getClientKeySet()) return false; - if (!getClientCertificate().equals(other.getClientCertificate())) return false; - if (getClientCertificateSet() != other.getClientCertificateSet()) return false; - if (!getCaCertificate().equals(other.getCaCertificate())) return false; - if (getCaCertificateSet() != other.getCaCertificateSet()) return false; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; + + if (!getClientKey() + .equals(other.getClientKey())) return false; + if (getClientKeySet() + != other.getClientKeySet()) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; + if (getClientCertificateSet() + != other.getClientCertificateSet()) return false; + if (!getCaCertificate() + .equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() + != other.getCaCertificateSet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,150 +349,147 @@ public int hashCode() { hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; hash = (53 * hash) + getClientKey().hashCode(); hash = (37 * hash) + CLIENT_KEY_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientKeySet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientKeySet()); hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getClientCertificate().hashCode(); hash = (37 * hash) + CLIENT_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClientCertificateSet()); hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCaCertificate().hashCode(); hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaCertificateSet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlSslConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * MySQL SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSslConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlSslConfig) com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlSslConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -539,9 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override @@ -560,11 +525,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlSslConfig result = - new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.MysqlSslConfig result = new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -595,39 +557,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSslConfig r public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlSslConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSslConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSslConfig)other); } else { super.mergeFrom(other); return this; @@ -635,8 +596,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSslConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) return this; if (!other.getClientKey().isEmpty()) { clientKey_ = other.clientKey_; bitField0_ |= 0x00000001; @@ -687,49 +647,42 @@ public Builder mergeFrom( case 0: done = true; break; - case 90: - { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 96: - { - clientKeySet_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 96 - case 106: - { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 106 - case 112: - { - clientCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 112 - case 122: - { - caCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 122 - case 128: - { - caCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 128 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 90: { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 96: { + clientKeySet_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 96 + case 106: { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 106 + case 112: { + clientCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 112 + case 122: { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 122 + case 128: { + caCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 128 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -739,13 +692,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object clientKey_ = ""; /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -753,13 +703,13 @@ public Builder mergeFrom(
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -768,8 +718,6 @@ public java.lang.String getClientKey() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -777,14 +725,15 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -792,8 +741,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -801,22 +748,18 @@ public com.google.protobuf.ByteString getClientKeyBytes() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clientKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -824,7 +767,6 @@ public Builder setClientKey(java.lang.String value) {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKey() { @@ -834,8 +776,6 @@ public Builder clearClientKey() { return this; } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -843,14 +783,12 @@ public Builder clearClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientKey_ = value; bitField0_ |= 0x00000001; @@ -858,16 +796,13 @@ public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { return this; } - private boolean clientKeySet_; + private boolean clientKeySet_ ; /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ @java.lang.Override @@ -875,33 +810,27 @@ public boolean getClientKeySet() { return clientKeySet_; } /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clientKeySet to set. * @return This builder for chaining. */ public Builder setClientKeySet(boolean value) { - + clientKeySet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKeySet() { @@ -913,8 +842,6 @@ public Builder clearClientKeySet() { private java.lang.Object clientCertificate_ = ""; /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -922,13 +849,13 @@ public Builder clearClientKeySet() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -937,8 +864,6 @@ public java.lang.String getClientCertificate() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -946,14 +871,15 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -961,8 +887,6 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -970,22 +894,18 @@ public com.google.protobuf.ByteString getClientCertificateBytes() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientCertificate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } clientCertificate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -993,7 +913,6 @@ public Builder setClientCertificate(java.lang.String value) {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificate() { @@ -1003,8 +922,6 @@ public Builder clearClientCertificate() { return this; } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -1012,14 +929,12 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientCertificate_ = value; bitField0_ |= 0x00000004; @@ -1027,16 +942,13 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { return this; } - private boolean clientCertificateSet_; + private boolean clientCertificateSet_ ; /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ @java.lang.Override @@ -1044,33 +956,27 @@ public boolean getClientCertificateSet() { return clientCertificateSet_; } /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The clientCertificateSet to set. * @return This builder for chaining. */ public Builder setClientCertificateSet(boolean value) { - + clientCertificateSet_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificateSet() { @@ -1082,21 +988,19 @@ public Builder clearClientCertificateSet() { private java.lang.Object caCertificate_ = ""; /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1105,22 +1009,21 @@ public java.lang.String getCaCertificate() { } } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1128,37 +1031,30 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { } } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCaCertificate( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } caCertificate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCaCertificate() { @@ -1168,22 +1064,18 @@ public Builder clearCaCertificate() { return this; } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCaCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); caCertificate_ = value; bitField0_ |= 0x00000010; @@ -1191,16 +1083,13 @@ public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { return this; } - private boolean caCertificateSet_; + private boolean caCertificateSet_ ; /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ @java.lang.Override @@ -1208,33 +1097,27 @@ public boolean getCaCertificateSet() { return caCertificateSet_; } /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The caCertificateSet to set. * @return This builder for chaining. */ public Builder setCaCertificateSet(boolean value) { - + caCertificateSet_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearCaCertificateSet() { @@ -1243,9 +1126,9 @@ public Builder clearCaCertificateSet() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1255,12 +1138,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlSslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlSslConfig) private static final com.google.cloud.datastream.v1alpha1.MysqlSslConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(); } @@ -1269,27 +1152,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1304,4 +1187,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java similarity index 77% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java index 2a4721faf0ab..3cdea7e380a2 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSslConfigOrBuilder - extends +public interface MysqlSslConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSslConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -33,13 +15,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ java.lang.String getClientKey(); /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -47,27 +26,22 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString getClientKeyBytes(); + com.google.protobuf.ByteString + getClientKeyBytes(); /** - * - * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ boolean getClientKeySet(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -75,13 +49,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -89,60 +60,49 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString getClientCertificateBytes(); + com.google.protobuf.ByteString + getClientCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ boolean getClientCertificateSet(); /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString getCaCertificateBytes(); + com.google.protobuf.ByteString + getCaCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ boolean getCaCertificateSet(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java index bfc73930825c..fd40faa1952f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlTable} */ -public final class MysqlTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlTable) MysqlTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlTable.newBuilder() to construct. private MysqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlTable() { tableName_ = ""; mysqlColumns_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private MysqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new MysqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlTable.class, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlTable.class, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); } public static final int TABLE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object tableName_ = ""; /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getTableName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; } } /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ @java.lang.Override - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTableNameBytes() { } public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List mysqlColumns_; /** - * - * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -139,8 +113,6 @@ public java.util.List getMysql
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -150,13 +122,11 @@ public java.util.List getMysql
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMysqlColumnsOrBuilderList() {
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -170,8 +140,6 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -185,8 +153,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
     return mysqlColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -202,7 +168,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +179,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -234,7 +200,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < mysqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, mysqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -244,16 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.MysqlTable other =
-        (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
+    com.google.cloud.datastream.v1alpha1.MysqlTable other = (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
 
-    if (!getTableName().equals(other.getTableName())) return false;
-    if (!getMysqlColumnsList().equals(other.getMysqlColumnsList())) return false;
+    if (!getTableName()
+        .equals(other.getTableName())) return false;
+    if (!getMysqlColumnsList()
+        .equals(other.getMysqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -276,136 +244,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * MySQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlTable} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlTable) com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlTable.class, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlTable.class, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlTable.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override @@ -443,18 +405,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlTable buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlTable result = - new com.google.cloud.datastream.v1alpha1.MysqlTable(this); + com.google.cloud.datastream.v1alpha1.MysqlTable result = new com.google.cloud.datastream.v1alpha1.MysqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.MysqlTable result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlTable result) { if (mysqlColumnsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); @@ -477,39 +435,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlTable resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlTable) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlTable) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlTable)other); } else { super.mergeFrom(other); return this; @@ -517,8 +474,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; bitField0_ |= 0x00000001; @@ -542,10 +498,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlColumnsFieldBuilder() - : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlColumnsFieldBuilder() : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -577,33 +532,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - tableName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1alpha1.MysqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), - extensionRegistry); - if (mysqlColumnsBuilder_ == null) { - ensureMysqlColumnsIsMutable(); - mysqlColumns_.add(m); - } else { - mysqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1alpha1.MysqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), + extensionRegistry); + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(m); + } else { + mysqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,25 +565,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object tableName_ = ""; /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The tableName. */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; @@ -640,21 +589,20 @@ public java.lang.String getTableName() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -662,35 +610,28 @@ public com.google.protobuf.ByteString getTableNameBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return This builder for chaining. */ public Builder clearTableName() { @@ -700,21 +641,17 @@ public Builder clearTableName() { return this; } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The bytes for tableName to set. * @return This builder for chaining. */ - public Builder setTableNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableName_ = value; bitField0_ |= 0x00000001; @@ -723,26 +660,18 @@ public Builder setTableNameBytes(com.google.protobuf.ByteString value) { } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlColumns_ = - new java.util.ArrayList( - mysqlColumns_); + mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlColumn, - com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, - com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> - mysqlColumnsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> mysqlColumnsBuilder_; /** - * - * *
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -759,8 +688,6 @@ public java.util.List getMysql
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -777,8 +704,6 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -795,8 +720,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -820,8 +743,6 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -842,8 +763,6 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -866,8 +785,6 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1alpha1.MysqlColumn
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -891,8 +808,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -913,8 +828,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -935,8 +848,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -949,7 +860,8 @@ public Builder addAllMysqlColumns(
         java.lang.Iterable values) {
       if (mysqlColumnsBuilder_ == null) {
         ensureMysqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, mysqlColumns_);
         onChanged();
       } else {
         mysqlColumnsBuilder_.addAllMessages(values);
@@ -957,8 +869,6 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -978,8 +888,6 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -999,8 +907,6 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1014,8 +920,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
       return getMysqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1027,14 +931,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
     public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
         int index) {
       if (mysqlColumnsBuilder_ == null) {
-        return mysqlColumns_.get(index);
-      } else {
+        return mysqlColumns_.get(index);  } else {
         return mysqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1043,8 +944,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
      *
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List
-        getMysqlColumnsOrBuilderList() {
+    public java.util.List 
+         getMysqlColumnsOrBuilderList() {
       if (mysqlColumnsBuilder_ != null) {
         return mysqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1052,8 +953,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1063,12 +962,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder() {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1079,12 +976,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder(
         int index) {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1093,30 +988,27 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      *
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List
-        getMysqlColumnsBuilderList() {
+    public java.util.List 
+         getMysqlColumnsBuilderList() {
       return getMysqlColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.MysqlColumn,
-            com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
-            com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>
+        com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> 
         getMysqlColumnsFieldBuilder() {
       if (mysqlColumnsBuilder_ == null) {
-        mysqlColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.MysqlColumn,
-                com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
-                com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>(
-                mysqlColumns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        mysqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>(
+                mysqlColumns_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         mysqlColumns_ = null;
       }
       return mysqlColumnsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1126,12 +1018,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlTable)
   private static final com.google.cloud.datastream.v1alpha1.MysqlTable DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlTable();
   }
@@ -1140,27 +1032,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public MysqlTable parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public MysqlTable parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1175,4 +1067,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
similarity index 72%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
index e8ed3fe41239..e597ddda4838 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface MysqlTableOrBuilder
-    extends
+public interface MysqlTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ java.lang.String getTableName(); /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - com.google.protobuf.ByteString getTableNameBytes(); + com.google.protobuf.ByteString + getTableNameBytes(); /** - * - * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -59,10 +36,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List getMysqlColumnsList();
+  java.util.List 
+      getMysqlColumnsList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -73,8 +49,6 @@ public interface MysqlTableOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int index);
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -85,8 +59,6 @@ public interface MysqlTableOrBuilder
    */
   int getMysqlColumnsCount();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -95,11 +67,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getMysqlColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -108,5 +78,6 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
similarity index 63%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
index 9e0f13dadc44..1588dda42808 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
@@ -1,72 +1,53 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
- *
- *
  * 
  * No connectivity settings.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.NoConnectivitySettings} */ -public final class NoConnectivitySettings extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NoConnectivitySettings extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.NoConnectivitySettings) NoConnectivitySettingsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NoConnectivitySettings.newBuilder() to construct. private NoConnectivitySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private NoConnectivitySettings() {} + private NoConnectivitySettings() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new NoConnectivitySettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +78,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = - (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * No connectivity settings.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.NoConnectivitySettings} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.NoConnectivitySettings) com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,9 +232,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override @@ -279,8 +253,7 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial() { - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = - new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); onBuilt(); return result; } @@ -289,39 +262,38 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)other); } else { super.mergeFrom(other); return this; @@ -329,8 +301,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other) { - if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -357,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -373,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -385,12 +355,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.NoConnectivitySettings) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.NoConnectivitySettings) private static final com.google.cloud.datastream.v1alpha1.NoConnectivitySettings DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(); } @@ -399,27 +369,27 @@ public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoConnectivitySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoConnectivitySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -434,4 +404,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java new file mode 100644 index 000000000000..fe72f9f2bf88 --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface NoConnectivitySettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java index 6fc08ce0949b..1c22769728ea 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,42 +28,37 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OperationMetadata.class, - com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1alpha1.OperationMetadata.class, com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -89,15 +66,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -105,14 +78,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -122,15 +92,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -138,15 +104,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -154,14 +116,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -169,18 +128,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ @java.lang.Override @@ -189,29 +144,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -220,18 +175,14 @@ public com.google.protobuf.ByteString getTargetBytes() { } public static final int VERB_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ @java.lang.Override @@ -240,29 +191,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -271,18 +222,14 @@ public com.google.protobuf.ByteString getVerbBytes() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ @java.lang.Override @@ -291,29 +238,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -324,8 +271,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -334,7 +279,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -343,18 +287,14 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; - @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ @java.lang.Override @@ -363,29 +303,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -396,16 +336,11 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int VALIDATION_RESULT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ @java.lang.Override @@ -413,45 +348,30 @@ public boolean hasValidationResult() { return validationResult_ != null; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult() { - return validationResult_ == null - ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder - getValidationResultOrBuilder() { - return validationResult_ == null - ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() - : validationResult_; + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder() { + return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -463,7 +383,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -498,10 +419,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -513,13 +436,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (validationResult_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValidationResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getValidationResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -529,30 +454,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OperationMetadata other = - (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; + com.google.cloud.datastream.v1alpha1.OperationMetadata other = (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (hasValidationResult() != other.hasValidationResult()) return false; if (hasValidationResult()) { - if (!getValidationResult().equals(other.getValidationResult())) return false; + if (!getValidationResult() + .equals(other.getValidationResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -580,7 +512,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasValidationResult()) { @@ -593,136 +526,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.OperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OperationMetadata) com.google.cloud.datastream.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OperationMetadata.class, - com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1alpha1.OperationMetadata.class, com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OperationMetadata.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -751,9 +677,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override @@ -772,11 +698,8 @@ public com.google.cloud.datastream.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.datastream.v1alpha1.OperationMetadata result = - new com.google.cloud.datastream.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.OperationMetadata result = new com.google.cloud.datastream.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -784,10 +707,14 @@ public com.google.cloud.datastream.v1alpha1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -805,8 +732,9 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadat result.apiVersion_ = apiVersion_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.validationResult_ = - validationResultBuilder_ == null ? validationResult_ : validationResultBuilder_.build(); + result.validationResult_ = validationResultBuilder_ == null + ? validationResult_ + : validationResultBuilder_.build(); } } @@ -814,39 +742,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadat public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OperationMetadata) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OperationMetadata)other); } else { super.mergeFrom(other); return this; @@ -854,8 +781,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -914,62 +840,58 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - input.readMessage( - getValidationResultFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getValidationResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -979,63 +901,43 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1051,17 +953,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1072,21 +971,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1099,15 +994,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1120,15 +1011,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1136,48 +1023,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1185,35 +1060,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1224,14 +1088,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1247,16 +1108,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1267,20 +1126,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && endTime_ != null - && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1293,14 +1149,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1313,14 +1166,11 @@ public Builder clearEndTime() { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1328,44 +1178,36 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getEndTime(), getParentForChildren(), isClean()); + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1373,20 +1215,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1395,21 +1235,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1417,35 +1256,28 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTarget( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1455,21 +1287,17 @@ public Builder clearTarget() { return this; } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1479,20 +1307,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1501,21 +1327,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1523,35 +1348,28 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerb( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1561,21 +1379,17 @@ public Builder clearVerb() { return this; } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVerbBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1585,20 +1399,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1607,21 +1419,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1629,35 +1440,28 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1667,21 +1471,17 @@ public Builder clearStatusMessage() { return this; } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setStatusMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1689,10 +1489,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { return this; } - private boolean requestedCancellation_; + private boolean requestedCancellation_ ; /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1701,7 +1499,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1709,8 +1506,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1719,20 +1514,17 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1741,7 +1533,6 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1753,20 +1544,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1775,21 +1564,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1797,35 +1585,28 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1835,21 +1616,17 @@ public Builder clearApiVersion() { return this; } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setApiVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; @@ -1859,61 +1636,41 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, - com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> - validationResultBuilder_; + com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> validationResultBuilder_; /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ public boolean hasValidationResult() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ public com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult() { if (validationResultBuilder_ == null) { - return validationResult_ == null - ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; } else { return validationResultBuilder_.getMessage(); } } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setValidationResult( - com.google.cloud.datastream.v1alpha1.ValidationResult value) { + public Builder setValidationResult(com.google.cloud.datastream.v1alpha1.ValidationResult value) { if (validationResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1927,15 +1684,11 @@ public Builder setValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationResult( com.google.cloud.datastream.v1alpha1.ValidationResult.Builder builderForValue) { @@ -1949,23 +1702,17 @@ public Builder setValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeValidationResult( - com.google.cloud.datastream.v1alpha1.ValidationResult value) { + public Builder mergeValidationResult(com.google.cloud.datastream.v1alpha1.ValidationResult value) { if (validationResultBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && validationResult_ != null - && validationResult_ - != com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + validationResult_ != null && + validationResult_ != com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) { getValidationResultBuilder().mergeFrom(value); } else { validationResult_ = value; @@ -1978,15 +1725,11 @@ public Builder mergeValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValidationResult() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1999,73 +1742,55 @@ public Builder clearValidationResult() { return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder - getValidationResultBuilder() { + public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder getValidationResultBuilder() { bitField0_ |= 0x00000080; onChanged(); return getValidationResultFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder - getValidationResultOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder() { if (validationResultBuilder_ != null) { return validationResultBuilder_.getMessageOrBuilder(); } else { - return validationResult_ == null - ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? + com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; } } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, - com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> + com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> getValidationResultFieldBuilder() { if (validationResultBuilder_ == null) { - validationResultBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, - com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder>( - getValidationResult(), getParentForChildren(), isClean()); + validationResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder>( + getValidationResult(), + getParentForChildren(), + isClean()); validationResult_ = null; } return validationResultBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2075,12 +1800,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OperationMetadata) private static final com.google.cloud.datastream.v1alpha1.OperationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OperationMetadata(); } @@ -2089,27 +1814,27 @@ public static com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2124,4 +1849,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java index 8edd85534536..af0667416d8e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,74 +130,54 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ boolean hasValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java index ef0d9c326b80..1fecf2345a1f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleColumn} */ -public final class OracleColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleColumn) OracleColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleColumn.newBuilder() to construct. private OracleColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleColumn() { columnName_ = ""; dataType_ = ""; @@ -45,43 +27,38 @@ private OracleColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleColumn.class, - com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleColumn.class, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object columnName_ = ""; /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getColumnName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } } /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ @java.lang.Override - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -121,18 +98,14 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ @java.lang.Override @@ -141,29 +114,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -174,14 +147,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -192,14 +162,11 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -210,14 +177,11 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -226,18 +190,14 @@ public int getScale() { } public static final int ENCODING_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The encoding. */ @java.lang.Override @@ -246,29 +206,29 @@ public java.lang.String getEncoding() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The bytes for encoding. */ @java.lang.Override - public com.google.protobuf.ByteString getEncodingBytes() { + public com.google.protobuf.ByteString + getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encoding_ = b; return b; } else { @@ -279,14 +239,11 @@ public com.google.protobuf.ByteString getEncodingBytes() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -297,14 +254,11 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -315,14 +269,11 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -331,7 +282,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -343,7 +293,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -387,25 +338,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encoding_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -415,23 +372,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleColumn other = - (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (getPrecision() != other.getPrecision()) return false; - if (getScale() != other.getScale()) return false; - if (!getEncoding().equals(other.getEncoding())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.OracleColumn other = (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!getEncoding() + .equals(other.getEncoding())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -456,9 +421,11 @@ public int hashCode() { hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -467,135 +434,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleColumn} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleColumn) com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleColumn.class, - com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleColumn.class, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleColumn.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +574,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override @@ -634,11 +595,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleColumn buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleColumn result = - new com.google.cloud.datastream.v1alpha1.OracleColumn(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.OracleColumn result = new com.google.cloud.datastream.v1alpha1.OracleColumn(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -678,39 +636,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleColumn res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleColumn) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleColumn) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleColumn)other); } else { super.mergeFrom(other); return this; @@ -718,8 +675,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; bitField0_ |= 0x00000001; @@ -779,67 +735,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - columnName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - encoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: - { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - nullable_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + columnName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + encoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: { + nullable_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -849,25 +795,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object columnName_ = ""; /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The columnName. */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; @@ -876,21 +819,20 @@ public java.lang.String getColumnName() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -898,35 +840,28 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } columnName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return This builder for chaining. */ public Builder clearColumnName() { @@ -936,21 +871,17 @@ public Builder clearColumnName() { return this; } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The bytes for columnName to set. * @return This builder for chaining. */ - public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); columnName_ = value; bitField0_ |= 0x00000001; @@ -960,20 +891,18 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -982,21 +911,20 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -1004,35 +932,28 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataType( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return This builder for chaining. */ public Builder clearDataType() { @@ -1042,21 +963,17 @@ public Builder clearDataType() { return this; } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDataTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -1064,16 +981,13 @@ public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { return this; } - private int length_; + private int length_ ; /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -1081,33 +995,27 @@ public int getLength() { return length_; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Column length.
      * 
* * int32 length = 3; - * * @return This builder for chaining. */ public Builder clearLength() { @@ -1117,16 +1025,13 @@ public Builder clearLength() { return this; } - private int precision_; + private int precision_ ; /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return The precision. */ @java.lang.Override @@ -1134,33 +1039,27 @@ public int getPrecision() { return precision_; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Column precision.
      * 
* * int32 precision = 4; - * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -1170,16 +1069,13 @@ public Builder clearPrecision() { return this; } - private int scale_; + private int scale_ ; /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return The scale. */ @java.lang.Override @@ -1187,33 +1083,27 @@ public int getScale() { return scale_; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Column scale.
      * 
* * int32 scale = 5; - * * @return This builder for chaining. */ public Builder clearScale() { @@ -1225,20 +1115,18 @@ public Builder clearScale() { private java.lang.Object encoding_ = ""; /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; @@ -1247,21 +1135,20 @@ public java.lang.String getEncoding() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - public com.google.protobuf.ByteString getEncodingBytes() { + public com.google.protobuf.ByteString + getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encoding_ = b; return b; } else { @@ -1269,35 +1156,28 @@ public com.google.protobuf.ByteString getEncodingBytes() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncoding( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } encoding_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -1307,21 +1187,17 @@ public Builder clearEncoding() { return this; } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @param value The bytes for encoding to set. * @return This builder for chaining. */ - public Builder setEncodingBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEncodingBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); encoding_ = value; bitField0_ |= 0x00000020; @@ -1329,16 +1205,13 @@ public Builder setEncodingBytes(com.google.protobuf.ByteString value) { return this; } - private boolean primaryKey_; + private boolean primaryKey_ ; /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return The primaryKey. */ @java.lang.Override @@ -1346,33 +1219,27 @@ public boolean getPrimaryKey() { return primaryKey_; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; - * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1382,16 +1249,13 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_; + private boolean nullable_ ; /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return The nullable. */ @java.lang.Override @@ -1399,33 +1263,27 @@ public boolean getNullable() { return nullable_; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** - * - * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; - * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1435,16 +1293,13 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_; + private int ordinalPosition_ ; /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ @java.lang.Override @@ -1452,33 +1307,27 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** - * - * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; - * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1487,9 +1336,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1499,12 +1348,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleColumn) private static final com.google.cloud.datastream.v1alpha1.OracleColumn DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleColumn(); } @@ -1513,27 +1362,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1548,4 +1397,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java index 7d1e8da8dc40..b338d0bad6e4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java @@ -1,177 +1,128 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleColumnOrBuilder - extends +public interface OracleColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ java.lang.String getColumnName(); /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - com.google.protobuf.ByteString getColumnNameBytes(); + com.google.protobuf.ByteString + getColumnNameBytes(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ int getPrecision(); /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ int getScale(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The encoding. */ java.lang.String getEncoding(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - com.google.protobuf.ByteString getEncodingBytes(); + com.google.protobuf.ByteString + getEncodingBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java index a49a3ca382e2..c1607c7cc730 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleProfile} */ -public final class OracleProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleProfile) OracleProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleProfile.newBuilder() to construct. private OracleProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleProfile() { hostname_ = ""; username_ = ""; @@ -46,54 +28,50 @@ private OracleProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleProfile.class, - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleProfile.class, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ @java.lang.Override @@ -102,29 +80,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -135,14 +113,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** - * - * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -151,18 +126,14 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ @java.lang.Override @@ -171,29 +142,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -202,18 +173,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ @java.lang.Override @@ -222,29 +189,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -253,18 +220,14 @@ public com.google.protobuf.ByteString getPasswordBytes() { } public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object databaseService_ = ""; /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ @java.lang.Override @@ -273,29 +236,29 @@ public java.lang.String getDatabaseService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; } } /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ @java.lang.Override - public com.google.protobuf.ByteString getDatabaseServiceBytes() { + public com.google.protobuf.ByteString + getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseService_ = b; return b; } else { @@ -304,36 +267,32 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; - private static final class ConnectionAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } - public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** - * - * *
    * Connection string attributes
    * 
@@ -341,21 +300,20 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** Use {@link #getConnectionAttributesMap()} instead. */ + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** - * - * *
    * Connection string attributes
    * 
@@ -367,8 +325,6 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** - * - * *
    * Connection string attributes
    * 
@@ -376,20 +332,17 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Connection string attributes
    * 
@@ -397,10 +350,9 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -410,7 +362,6 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -422,7 +373,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -438,7 +390,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, @@ -456,7 +409,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -467,15 +421,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseService_); } - for (java.util.Map.Entry entry : - internalGetConnectionAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry connectionAttributes__ = - ConnectionAttributesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); + for (java.util.Map.Entry entry + : internalGetConnectionAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + connectionAttributes__ = ConnectionAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, connectionAttributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -485,21 +439,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleProfile other = - (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; - - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getDatabaseService().equals(other.getDatabaseService())) return false; - if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) - return false; + com.google.cloud.datastream.v1alpha1.OracleProfile other = (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; + + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getDatabaseService() + .equals(other.getDatabaseService())) return false; + if (!internalGetConnectionAttributes().equals( + other.internalGetConnectionAttributes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -531,155 +489,151 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleProfile} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleProfile) com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 6: return internalGetMutableConnectionAttributes(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleProfile.class, - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleProfile.class, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -694,9 +648,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @java.lang.Override @@ -715,11 +669,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleProfile result = - new com.google.cloud.datastream.v1alpha1.OracleProfile(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.OracleProfile result = new com.google.cloud.datastream.v1alpha1.OracleProfile(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -751,39 +702,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleProfile re public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile)other); } else { super.mergeFrom(other); return this; @@ -791,8 +741,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -816,7 +765,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile othe bitField0_ |= 0x00000010; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom( + other.internalGetConnectionAttributes()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -844,56 +794,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - databaseService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry - connectionAttributes__ = - input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableConnectionAttributes() - .getMutableMap() - .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + databaseService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + com.google.protobuf.MapEntry + connectionAttributes__ = input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableConnectionAttributes().getMutableMap().put( + connectionAttributes__.getKey(), connectionAttributes__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -903,25 +843,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object hostname_ = ""; /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -930,21 +867,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -952,35 +888,28 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostname( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearHostname() { @@ -990,21 +919,17 @@ public Builder clearHostname() { return this; } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -1012,16 +937,13 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { return this; } - private int port_; + private int port_ ; /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @return The port. */ @java.lang.Override @@ -1029,33 +951,27 @@ public int getPort() { return port_; } /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; - * * @return This builder for chaining. */ public Builder clearPort() { @@ -1067,20 +983,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1089,21 +1003,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1111,35 +1024,28 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1149,21 +1055,17 @@ public Builder clearUsername() { return this; } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1173,20 +1075,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1195,21 +1095,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1217,35 +1116,28 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPassword( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1255,21 +1147,17 @@ public Builder clearPassword() { return this; } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1279,20 +1167,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseService_ = ""; /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ public java.lang.String getDatabaseService() { java.lang.Object ref = databaseService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; @@ -1301,21 +1187,20 @@ public java.lang.String getDatabaseService() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - public com.google.protobuf.ByteString getDatabaseServiceBytes() { + public com.google.protobuf.ByteString + getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseService_ = b; return b; } else { @@ -1323,35 +1208,28 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseService( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } databaseService_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDatabaseService() { @@ -1361,21 +1239,17 @@ public Builder clearDatabaseService() { return this; } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDatabaseServiceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); databaseService_ = value; bitField0_ |= 0x00000010; @@ -1383,8 +1257,8 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.MapField connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField internalGetConnectionAttributes() { if (connectionAttributes_ == null) { @@ -1393,13 +1267,11 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { } return connectionAttributes_; } - private com.google.protobuf.MapField internalGetMutableConnectionAttributes() { if (connectionAttributes_ == null) { - connectionAttributes_ = - com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); + connectionAttributes_ = com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); } if (!connectionAttributes_.isMutable()) { connectionAttributes_ = connectionAttributes_.copy(); @@ -1408,13 +1280,10 @@ public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { onChanged(); return connectionAttributes_; } - public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1422,21 +1291,20 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** Use {@link #getConnectionAttributesMap()} instead. */ + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1448,8 +1316,6 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** - * - * *
      * Connection string attributes
      * 
@@ -1457,20 +1323,17 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Connection string attributes
      * 
@@ -1478,10 +1341,9 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1489,57 +1351,53 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } return map.get(key); } - public Builder clearConnectionAttributes() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableConnectionAttributes().getMutableMap().clear(); + internalGetMutableConnectionAttributes().getMutableMap() + .clear(); return this; } /** - * - * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder removeConnectionAttributes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableConnectionAttributes().getMutableMap().remove(key); + public Builder removeConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableConnectionAttributes().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableConnectionAttributes() { + public java.util.Map + getMutableConnectionAttributes() { bitField0_ |= 0x00000020; return internalGetMutableConnectionAttributes().getMutableMap(); } /** - * - * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableConnectionAttributes().getMutableMap().put(key, value); + public Builder putConnectionAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableConnectionAttributes().getMutableMap() + .put(key, value); bitField0_ |= 0x00000020; return this; } /** - * - * *
      * Connection string attributes
      * 
@@ -1548,13 +1406,14 @@ public Builder putConnectionAttributes(java.lang.String key, java.lang.String va */ public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap().putAll(values); + internalGetMutableConnectionAttributes().getMutableMap() + .putAll(values); bitField0_ |= 0x00000020; return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1564,12 +1423,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleProfile) private static final com.google.cloud.datastream.v1alpha1.OracleProfile DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleProfile(); } @@ -1578,27 +1437,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1613,4 +1472,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java index d18aa9ccf56b..582e3f25168a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java @@ -1,144 +1,103 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleProfileOrBuilder - extends +public interface OracleProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ java.lang.String getDatabaseService(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - com.google.protobuf.ByteString getDatabaseServiceBytes(); + com.google.protobuf.ByteString + getDatabaseServiceBytes(); /** - * - * *
    * Connection string attributes
    * 
@@ -147,31 +106,30 @@ public interface OracleProfileOrBuilder */ int getConnectionAttributesCount(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - boolean containsConnectionAttributes(java.lang.String key); - /** Use {@link #getConnectionAttributesMap()} instead. */ + boolean containsConnectionAttributes( + java.lang.String key); + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getConnectionAttributes(); + java.util.Map + getConnectionAttributes(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.util.Map getConnectionAttributesMap(); + java.util.Map + getConnectionAttributesMap(); /** - * - * *
    * Connection string attributes
    * 
@@ -179,18 +137,17 @@ public interface OracleProfileOrBuilder * map<string, string> connection_attributes = 6; */ /* nullable */ - java.lang.String getConnectionAttributesOrDefault( +java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrThrow(java.lang.String key); + java.lang.String getConnectionAttributesOrThrow( + java.lang.String key); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java index fbb5e4fe71f7..c20853c55526 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleRdbms} */ -public final class OracleRdbms extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleRdbms extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleRdbms) OracleRdbmsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleRdbms.newBuilder() to construct. private OracleRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleRdbms() { oracleSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleRdbms.class, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleRdbms.class, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); } public static final int ORACLE_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List oracleSchemas_; /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -85,8 +63,6 @@ public java.util.List getOrac return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -94,13 +70,11 @@ public java.util.List getOrac * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getOracleSchemasOrBuilderList() { return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -112,8 +86,6 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -125,8 +97,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in return oracleSchemas_.get(index); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -140,7 +110,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,7 +121,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -166,7 +136,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < oracleSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, oracleSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, oracleSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -176,15 +147,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleRdbms other = - (com.google.cloud.datastream.v1alpha1.OracleRdbms) obj; + com.google.cloud.datastream.v1alpha1.OracleRdbms other = (com.google.cloud.datastream.v1alpha1.OracleRdbms) obj; - if (!getOracleSchemasList().equals(other.getOracleSchemasList())) return false; + if (!getOracleSchemasList() + .equals(other.getOracleSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -205,136 +176,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleRdbms} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleRdbms) com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleRdbms.class, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleRdbms.class, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +315,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override @@ -371,18 +336,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleRdbms result = - new com.google.cloud.datastream.v1alpha1.OracleRdbms(this); + com.google.cloud.datastream.v1alpha1.OracleRdbms result = new com.google.cloud.datastream.v1alpha1.OracleRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.OracleRdbms result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleRdbms result) { if (oracleSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); @@ -402,39 +363,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleRdbms resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleRdbms) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms)other); } else { super.mergeFrom(other); return this; @@ -442,8 +402,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) return this; if (oracleSchemasBuilder_ == null) { if (!other.oracleSchemas_.isEmpty()) { if (oracleSchemas_.isEmpty()) { @@ -462,10 +421,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) oracleSchemasBuilder_ = null; oracleSchemas_ = other.oracleSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - oracleSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleSchemasFieldBuilder() - : null; + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleSchemasFieldBuilder() : null; } else { oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); } @@ -497,27 +455,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.OracleSchema m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), - extensionRegistry); - if (oracleSchemasBuilder_ == null) { - ensureOracleSchemasIsMutable(); - oracleSchemas_.add(m); - } else { - oracleSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.OracleSchema m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), + extensionRegistry); + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(m); + } else { + oracleSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -527,38 +483,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List oracleSchemas_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = - new java.util.ArrayList( - oracleSchemas_); + oracleSchemas_ = new java.util.ArrayList(oracleSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> - oracleSchemasBuilder_; + com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> oracleSchemasBuilder_; /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasList() { + public java.util.List getOracleSchemasList() { if (oracleSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(oracleSchemas_); } else { @@ -566,8 +512,6 @@ private void ensureOracleSchemasIsMutable() { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -582,8 +526,6 @@ public int getOracleSchemasCount() { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -598,8 +540,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -621,8 +561,6 @@ public Builder setOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -641,8 +579,6 @@ public Builder setOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -663,8 +599,6 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1alpha1.OracleSchem return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -686,8 +620,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -706,8 +638,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -726,8 +656,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -738,7 +666,8 @@ public Builder addAllOracleSchemas( java.lang.Iterable values) { if (oracleSchemasBuilder_ == null) { ensureOracleSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleSchemas_); onChanged(); } else { oracleSchemasBuilder_.addAllMessages(values); @@ -746,8 +675,6 @@ public Builder addAllOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -765,8 +692,6 @@ public Builder clearOracleSchemas() { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -784,8 +709,6 @@ public Builder removeOracleSchemas(int index) { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -797,8 +720,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema return getOracleSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -808,22 +729,19 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( int index) { if (oracleSchemasBuilder_ == null) { - return oracleSchemas_.get(index); - } else { + return oracleSchemas_.get(index); } else { return oracleSchemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasOrBuilderList() { + public java.util.List + getOracleSchemasOrBuilderList() { if (oracleSchemasBuilder_ != null) { return oracleSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -831,8 +749,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -840,12 +756,10 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder() { - return getOracleSchemasFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -854,35 +768,26 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchema */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder( int index) { - return getOracleSchemasFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasBuilderList() { + public java.util.List + getOracleSchemasBuilderList() { return getOracleSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> getOracleSchemasFieldBuilder() { if (oracleSchemasBuilder_ == null) { - oracleSchemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( + oracleSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( oracleSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -891,9 +796,9 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchema } return oracleSchemasBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +808,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleRdbms) private static final com.google.cloud.datastream.v1alpha1.OracleRdbms DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleRdbms(); } @@ -917,27 +822,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,4 +857,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java index 289431c57ec1..82b3cf952cd1 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleRdbmsOrBuilder - extends +public interface OracleRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List getOracleSchemasList(); + java.util.List + getOracleSchemasList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -44,8 +25,6 @@ public interface OracleRdbmsOrBuilder */ com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int index); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -54,24 +33,21 @@ public interface OracleRdbmsOrBuilder */ int getOracleSchemasCount(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List + java.util.List getOracleSchemasOrBuilderList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java index 83a2223cdb5c..13411b1d0340 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSchema} */ -public final class OracleSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleSchema) OracleSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleSchema.newBuilder() to construct. private OracleSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleSchema() { schemaName_ = ""; oracleTables_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private OracleSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSchema.class, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSchema.class, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); } public static final int SCHEMA_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The schemaName. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } public static final int ORACLE_TABLES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List oracleTables_; /** - * - * *
    * Tables in the schema.
    * 
@@ -137,8 +111,6 @@ public java.util.List getOracl return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -146,13 +118,11 @@ public java.util.List getOracl * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getOracleTablesOrBuilderList() { return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -164,8 +134,6 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** - * - * *
    * Tables in the schema.
    * 
@@ -177,8 +145,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde return oracleTables_.get(index); } /** - * - * *
    * Tables in the schema.
    * 
@@ -192,7 +158,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +169,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); } @@ -224,7 +190,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); } for (int i = 0; i < oracleTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, oracleTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -234,16 +201,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleSchema other = - (com.google.cloud.datastream.v1alpha1.OracleSchema) obj; + com.google.cloud.datastream.v1alpha1.OracleSchema other = (com.google.cloud.datastream.v1alpha1.OracleSchema) obj; - if (!getSchemaName().equals(other.getSchemaName())) return false; - if (!getOracleTablesList().equals(other.getOracleTablesList())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getOracleTablesList() + .equals(other.getOracleTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,135 +235,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSchema} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleSchema) com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSchema.class, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSchema.class, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleSchema.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -412,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override @@ -433,18 +395,14 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSchema buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleSchema result = - new com.google.cloud.datastream.v1alpha1.OracleSchema(this); + com.google.cloud.datastream.v1alpha1.OracleSchema result = new com.google.cloud.datastream.v1alpha1.OracleSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.OracleSchema result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleSchema result) { if (oracleTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); @@ -467,39 +425,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSchema res public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleSchema) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSchema) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSchema)other); } else { super.mergeFrom(other); return this; @@ -507,8 +464,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) return this; if (!other.getSchemaName().isEmpty()) { schemaName_ = other.schemaName_; bitField0_ |= 0x00000001; @@ -532,10 +488,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000002); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleTablesFieldBuilder() - : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleTablesFieldBuilder() : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -567,33 +522,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1alpha1.OracleTable m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleTable.parser(), - extensionRegistry); - if (oracleTablesBuilder_ == null) { - ensureOracleTablesIsMutable(); - oracleTables_.add(m); - } else { - oracleTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + schemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1alpha1.OracleTable m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleTable.parser(), + extensionRegistry); + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(m); + } else { + oracleTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -603,25 +555,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object schemaName_ = ""; /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -630,21 +579,20 @@ public java.lang.String getSchemaName() { } } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -652,35 +600,28 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } schemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -690,21 +631,17 @@ public Builder clearSchemaName() { return this; } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); schemaName_ = value; bitField0_ |= 0x00000001; @@ -713,26 +650,18 @@ public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleTables_ = - new java.util.ArrayList( - oracleTables_); + oracleTables_ = new java.util.ArrayList(oracleTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder, - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> - oracleTablesBuilder_; + com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> oracleTablesBuilder_; /** - * - * *
      * Tables in the schema.
      * 
@@ -747,8 +676,6 @@ public java.util.List getOracl } } /** - * - * *
      * Tables in the schema.
      * 
@@ -763,8 +690,6 @@ public int getOracleTablesCount() { } } /** - * - * *
      * Tables in the schema.
      * 
@@ -779,8 +704,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde } } /** - * - * *
      * Tables in the schema.
      * 
@@ -802,8 +725,6 @@ public Builder setOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -822,8 +743,6 @@ public Builder setOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -844,8 +763,6 @@ public Builder addOracleTables(com.google.cloud.datastream.v1alpha1.OracleTable return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -867,8 +784,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -887,8 +802,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -907,8 +820,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -919,7 +830,8 @@ public Builder addAllOracleTables( java.lang.Iterable values) { if (oracleTablesBuilder_ == null) { ensureOracleTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleTables_); onChanged(); } else { oracleTablesBuilder_.addAllMessages(values); @@ -927,8 +839,6 @@ public Builder addAllOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -946,8 +856,6 @@ public Builder clearOracleTables() { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -965,8 +873,6 @@ public Builder removeOracleTables(int index) { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -978,8 +884,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB return getOracleTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the schema.
      * 
@@ -989,22 +893,19 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( int index) { if (oracleTablesBuilder_ == null) { - return oracleTables_.get(index); - } else { + return oracleTables_.get(index); } else { return oracleTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesOrBuilderList() { + public java.util.List + getOracleTablesOrBuilderList() { if (oracleTablesBuilder_ != null) { return oracleTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1012,8 +913,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } } /** - * - * *
      * Tables in the schema.
      * 
@@ -1021,12 +920,10 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder() { - return getOracleTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
@@ -1035,42 +932,37 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesB */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder( int index) { - return getOracleTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesBuilderList() { + public java.util.List + getOracleTablesBuilderList() { return getOracleTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder, - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> getOracleTablesFieldBuilder() { if (oracleTablesBuilder_ == null) { - oracleTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder, - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder>( - oracleTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + oracleTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder>( + oracleTables_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); oracleTables_ = null; } return oracleTablesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1080,12 +972,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleSchema) private static final com.google.cloud.datastream.v1alpha1.OracleSchema DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleSchema(); } @@ -1094,27 +986,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1021,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java index b102cf539f43..639a404fa068 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSchemaOrBuilder - extends +public interface OracleSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The schemaName. */ java.lang.String getSchemaName(); /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString getSchemaNameBytes(); + com.google.protobuf.ByteString + getSchemaNameBytes(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List getOracleTablesList(); + java.util.List + getOracleTablesList(); /** - * - * *
    * Tables in the schema.
    * 
@@ -69,8 +45,6 @@ public interface OracleSchemaOrBuilder */ com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int index); /** - * - * *
    * Tables in the schema.
    * 
@@ -79,24 +53,21 @@ public interface OracleSchemaOrBuilder */ int getOracleTablesCount(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List + java.util.List getOracleTablesOrBuilderList(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( + int index); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java index e04c97a2170d..92cf8a22ac9b 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java @@ -1,81 +1,60 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSourceConfig} */ -public final class OracleSourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleSourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleSourceConfig) OracleSourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleSourceConfig.newBuilder() to construct. private OracleSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private OracleSourceConfig() {} + private OracleSourceConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); } public static final int ALLOWLIST_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1alpha1.OracleRdbms allowlist_; /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -110,22 +82,17 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrBuilder() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } public static final int REJECTLIST_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.OracleRdbms rejectlist_; /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ @java.lang.Override @@ -133,25 +100,18 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
@@ -160,13 +120,10 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOrBuilder() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -178,7 +135,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -195,10 +153,12 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRejectlist()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -208,21 +168,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = - (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist().equals(other.getAllowlist())) return false; + if (!getAllowlist() + .equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist().equals(other.getRejectlist())) return false; + if (!getRejectlist() + .equals(other.getRejectlist())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -249,136 +210,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Oracle data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleSourceConfig) com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -397,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override @@ -418,11 +372,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleSourceConfig result = - new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.OracleSourceConfig result = new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -430,10 +381,14 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowlist_ = allowlistBuilder_ == null ? allowlist_ : allowlistBuilder_.build(); + result.allowlist_ = allowlistBuilder_ == null + ? allowlist_ + : allowlistBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rejectlist_ = rejectlistBuilder_ == null ? rejectlist_ : rejectlistBuilder_.build(); + result.rejectlist_ = rejectlistBuilder_ == null + ? rejectlist_ + : rejectlistBuilder_.build(); } } @@ -441,39 +396,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSourceConf public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSourceConfig)other); } else { super.mergeFrom(other); return this; @@ -481,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -515,25 +468,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getAllowlistFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getRejectlistFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getAllowlistFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getRejectlistFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -543,52 +497,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.datastream.v1alpha1.OracleRdbms allowlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - allowlistBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> allowlistBuilder_; /** - * - * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ public boolean hasAllowlist() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return The allowlist. */ public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { if (allowlistBuilder_ == null) { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } else { return allowlistBuilder_.getMessage(); } } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -609,8 +549,6 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms val return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -629,8 +567,6 @@ public Builder setAllowlist( return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -639,10 +575,9 @@ public Builder setAllowlist( */ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (allowlistBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && allowlist_ != null - && allowlist_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + allowlist_ != null && + allowlist_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { getAllowlistBuilder().mergeFrom(value); } else { allowlist_ = value; @@ -655,8 +590,6 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -674,8 +607,6 @@ public Builder clearAllowlist() { return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -688,8 +619,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getAllowlistBuil return getAllowlistFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -700,14 +629,11 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? + com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -715,17 +641,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getAllowlist(), getParentForChildren(), isClean()); + allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getAllowlist(), + getParentForChildren(), + isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -733,47 +656,34 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB private com.google.cloud.datastream.v1alpha1.OracleRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> rejectlistBuilder_; /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return The rejectlist. */ public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { if (rejectlistBuilder_ == null) { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } else { return rejectlistBuilder_.getMessage(); } } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -794,8 +704,6 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms va return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -814,8 +722,6 @@ public Builder setRejectlist( return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -824,10 +730,9 @@ public Builder setRejectlist( */ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (rejectlistBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && rejectlist_ != null - && rejectlist_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + rejectlist_ != null && + rejectlist_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { getRejectlistBuilder().mergeFrom(value); } else { rejectlist_ = value; @@ -840,8 +745,6 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -859,8 +762,6 @@ public Builder clearRejectlist() { return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -873,8 +774,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getRejectlistBui return getRejectlistFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -885,14 +784,11 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? + com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -900,24 +796,21 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getRejectlist(), getParentForChildren(), isClean()); + rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getRejectlist(), + getParentForChildren(), + isClean()); rejectlist_ = null; } return rejectlistBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -927,12 +820,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleSourceConfig) private static final com.google.cloud.datastream.v1alpha1.OracleSourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(); } @@ -941,27 +834,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,4 +869,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java similarity index 71% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java index 2a8dd4e18eb0..351b94f331fe 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSourceConfigOrBuilder - extends +public interface OracleSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -59,32 +35,24 @@ public interface OracleSourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrBuilder(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java similarity index 74% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java index 859418867d39..8e3675f5a3d4 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleTable} */ -public final class OracleTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleTable) OracleTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleTable.newBuilder() to construct. private OracleTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleTable() { tableName_ = ""; oracleColumns_ = java.util.Collections.emptyList(); @@ -44,43 +26,38 @@ private OracleTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new OracleTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleTable.class, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleTable.class, com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); } public static final int TABLE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object tableName_ = ""; /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ @java.lang.Override @@ -89,29 +66,29 @@ public java.lang.String getTableName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; } } /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ @java.lang.Override - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -120,12 +97,9 @@ public com.google.protobuf.ByteString getTableNameBytes() { } public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List oracleColumns_; /** - * - * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -139,8 +113,6 @@ public java.util.List getOrac
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -150,13 +122,11 @@ public java.util.List getOrac
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getOracleColumnsOrBuilderList() {
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -170,8 +140,6 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -185,8 +153,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
     return oracleColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -202,7 +168,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -214,7 +179,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -234,7 +200,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < oracleColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, oracleColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -244,16 +211,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.OracleTable other =
-        (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
+    com.google.cloud.datastream.v1alpha1.OracleTable other = (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
 
-    if (!getTableName().equals(other.getTableName())) return false;
-    if (!getOracleColumnsList().equals(other.getOracleColumnsList())) return false;
+    if (!getTableName()
+        .equals(other.getTableName())) return false;
+    if (!getOracleColumnsList()
+        .equals(other.getOracleColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -276,136 +244,130 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Oracle table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleTable} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleTable) com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleTable.class, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleTable.class, com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleTable.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +384,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override @@ -443,18 +405,14 @@ public com.google.cloud.datastream.v1alpha1.OracleTable build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleTable buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleTable result = - new com.google.cloud.datastream.v1alpha1.OracleTable(this); + com.google.cloud.datastream.v1alpha1.OracleTable result = new com.google.cloud.datastream.v1alpha1.OracleTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.OracleTable result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleTable result) { if (oracleColumnsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); @@ -477,39 +435,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleTable resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleTable) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleTable) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleTable)other); } else { super.mergeFrom(other); return this; @@ -517,8 +474,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; bitField0_ |= 0x00000001; @@ -542,10 +498,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000002); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleColumnsFieldBuilder() - : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleColumnsFieldBuilder() : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -577,33 +532,30 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - tableName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.datastream.v1alpha1.OracleColumn m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), - extensionRegistry); - if (oracleColumnsBuilder_ == null) { - ensureOracleColumnsIsMutable(); - oracleColumns_.add(m); - } else { - oracleColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.datastream.v1alpha1.OracleColumn m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), + extensionRegistry); + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(m); + } else { + oracleColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -613,25 +565,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object tableName_ = ""; /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The tableName. */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; @@ -640,21 +589,20 @@ public java.lang.String getTableName() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -662,35 +610,28 @@ public com.google.protobuf.ByteString getTableNameBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } tableName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return This builder for chaining. */ public Builder clearTableName() { @@ -700,21 +641,17 @@ public Builder clearTableName() { return this; } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The bytes for tableName to set. * @return This builder for chaining. */ - public Builder setTableNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); tableName_ = value; bitField0_ |= 0x00000001; @@ -723,26 +660,18 @@ public Builder setTableNameBytes(com.google.protobuf.ByteString value) { } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleColumns_ = - new java.util.ArrayList( - oracleColumns_); + oracleColumns_ = new java.util.ArrayList(oracleColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleColumn, - com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, - com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> - oracleColumnsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> oracleColumnsBuilder_; /** - * - * *
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -751,8 +680,7 @@ private void ensureOracleColumnsIsMutable() {
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsList() {
+    public java.util.List getOracleColumnsList() {
       if (oracleColumnsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(oracleColumns_);
       } else {
@@ -760,8 +688,6 @@ private void ensureOracleColumnsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -778,8 +704,6 @@ public int getOracleColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -796,8 +720,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -821,8 +743,6 @@ public Builder setOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -843,8 +763,6 @@ public Builder setOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -867,8 +785,6 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1alpha1.OracleColum
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -892,8 +808,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -914,8 +828,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -936,8 +848,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -950,7 +860,8 @@ public Builder addAllOracleColumns(
         java.lang.Iterable values) {
       if (oracleColumnsBuilder_ == null) {
         ensureOracleColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, oracleColumns_);
         onChanged();
       } else {
         oracleColumnsBuilder_.addAllMessages(values);
@@ -958,8 +869,6 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -979,8 +888,6 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1000,8 +907,6 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1015,8 +920,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
       return getOracleColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1028,14 +931,11 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
     public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
         int index) {
       if (oracleColumnsBuilder_ == null) {
-        return oracleColumns_.get(index);
-      } else {
+        return oracleColumns_.get(index);  } else {
         return oracleColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1044,8 +944,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsOrBuilderList() {
+    public java.util.List 
+         getOracleColumnsOrBuilderList() {
       if (oracleColumnsBuilder_ != null) {
         return oracleColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1053,8 +953,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1064,12 +962,10 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder() {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1080,13 +976,10 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder(
         int index) {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1095,22 +988,16 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsBuilderList() {
+    public java.util.List 
+         getOracleColumnsBuilderList() {
       return getOracleColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.OracleColumn,
-            com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
-            com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>
+        com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> 
         getOracleColumnsFieldBuilder() {
       if (oracleColumnsBuilder_ == null) {
-        oracleColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.OracleColumn,
-                com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
-                com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
+        oracleColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
                 oracleColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1119,9 +1006,9 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
       }
       return oracleColumnsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1131,12 +1018,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleTable)
   private static final com.google.cloud.datastream.v1alpha1.OracleTable DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleTable();
   }
@@ -1145,27 +1032,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public OracleTable parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public OracleTable parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1180,4 +1067,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
similarity index 72%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
index effd7072d927..f47acc07a4da 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface OracleTableOrBuilder
-    extends
+public interface OracleTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ java.lang.String getTableName(); /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - com.google.protobuf.ByteString getTableNameBytes(); + com.google.protobuf.ByteString + getTableNameBytes(); /** - * - * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -59,10 +36,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List getOracleColumnsList();
+  java.util.List 
+      getOracleColumnsList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -73,8 +49,6 @@ public interface OracleTableOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int index);
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -85,8 +59,6 @@ public interface OracleTableOrBuilder
    */
   int getOracleColumnsCount();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -95,11 +67,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getOracleColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -108,5 +78,6 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
similarity index 62%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
index e16cb427205e..8af1bd02145b 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
- *
- *
  * 
  * The PrivateConnection resource is used to establish private connectivity
  * between Datastream and a customer's network.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
  */
-public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PrivateConnection extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
     PrivateConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PrivateConnection.newBuilder() to construct.
   private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PrivateConnection() {
     name_ = "";
     displayName_ = "";
@@ -46,56 +28,55 @@ private PrivateConnection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PrivateConnection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.PrivateConnection.class,
-            com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
+            com.google.cloud.datastream.v1alpha1.PrivateConnection.class, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Private Connection state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.PrivateConnection.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** STATE_UNSPECIFIED = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ STATE_UNSPECIFIED(0), /** - * - * *
      * The private connection is in creation state - creating resources.
      * 
@@ -104,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The private connection has been created with all of it's resources.
      * 
@@ -114,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(2), /** - * - * *
      * The private connection creation has failed.
      * 
@@ -126,11 +103,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** STATE_UNSPECIFIED = 0; */ + /** + * STATE_UNSPECIFIED = 0; + */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The private connection is in creation state - creating resources.
      * 
@@ -139,8 +116,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The private connection has been created with all of it's resources.
      * 
@@ -149,8 +124,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 2; /** - * - * *
      * The private connection creation has failed.
      * 
@@ -159,6 +132,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -183,53 +157,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return CREATED; - case 3: - return FAILED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return CREATED; + case 3: return FAILED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -247,18 +218,14 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -267,29 +234,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -300,15 +267,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -316,15 +279,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -332,14 +291,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -349,15 +305,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -365,15 +317,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -381,14 +329,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -396,34 +341,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -431,21 +374,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -457,8 +399,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -466,19 +406,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -486,11 +424,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -498,18 +436,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -518,29 +452,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -551,57 +485,37 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = - com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { + com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED : result; } public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1alpha1.Error error_; /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ @java.lang.Override @@ -609,53 +523,37 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error getError() { - return error_ == null - ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; } /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null - ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; } public static final int VPC_PEERING_CONFIG_FIELD_NUMBER = 100; private com.google.cloud.datastream.v1alpha1.VpcPeeringConfig vpcPeeringConfig_; /** - * - * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ @java.lang.Override @@ -663,25 +561,18 @@ public boolean hasVpcPeeringConfig() { return vpcPeeringConfig_ != null; } /** - * - * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig() { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } /** - * - * *
    * VPC Peering Config
    * 
@@ -689,15 +580,11 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder - getVpcPeeringConfigOrBuilder() { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -709,7 +596,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -719,14 +607,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (error_ != null) { @@ -748,34 +638,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } if (vpcPeeringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getVpcPeeringConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getVpcPeeringConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -785,33 +678,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.PrivateConnection)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.PrivateConnection other = - (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; + com.google.cloud.datastream.v1alpha1.PrivateConnection other = (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; if (hasVpcPeeringConfig()) { - if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; + if (!getVpcPeeringConfig() + .equals(other.getVpcPeeringConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -856,104 +755,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The PrivateConnection resource is used to establish private connectivity
    * between Datastream and a customer's network.
@@ -961,52 +852,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
       com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.PrivateConnection.class,
-              com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
+              com.google.cloud.datastream.v1alpha1.PrivateConnection.class, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.PrivateConnection.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1039,9 +933,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
     }
 
     @java.lang.Override
@@ -1060,11 +954,8 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.PrivateConnection buildPartial() {
-      com.google.cloud.datastream.v1alpha1.PrivateConnection result =
-          new com.google.cloud.datastream.v1alpha1.PrivateConnection(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1alpha1.PrivateConnection result = new com.google.cloud.datastream.v1alpha1.PrivateConnection(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1075,10 +966,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1091,11 +986,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null
+            ? error_
+            : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.vpcPeeringConfig_ =
-            vpcPeeringConfigBuilder_ == null ? vpcPeeringConfig_ : vpcPeeringConfigBuilder_.build();
+        result.vpcPeeringConfig_ = vpcPeeringConfigBuilder_ == null
+            ? vpcPeeringConfig_
+            : vpcPeeringConfigBuilder_.build();
       }
     }
 
@@ -1103,39 +1001,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.PrivateConnection) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnection) other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnection)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1143,8 +1040,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection other) {
-      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1156,7 +1052,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1198,68 +1095,64 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 48:
-              {
-                state_ = input.readEnum();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 48
-            case 58:
-              {
-                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 58
-            case 802:
-              {
-                input.readMessage(
-                    getVpcPeeringConfigFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000080;
-                break;
-              } // case 802
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 48: {
+              state_ = input.readEnum();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 48
+            case 58: {
+              input.readMessage(
+                  getErrorFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 58
+            case 802: {
+              input.readMessage(
+                  getVpcPeeringConfigFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000080;
+              break;
+            } // case 802
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1269,25 +1162,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1296,21 +1186,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1318,35 +1207,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1356,21 +1238,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1380,58 +1258,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1447,17 +1306,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1468,21 +1324,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1495,15 +1347,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1516,15 +1364,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1532,48 +1376,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1581,58 +1413,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1648,17 +1461,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1669,21 +1479,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1696,15 +1502,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1717,15 +1519,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1733,66 +1531,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1801,13 +1589,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -1815,21 +1600,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -1841,8 +1625,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1850,19 +1632,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1870,95 +1650,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1967,21 +1743,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1989,35 +1764,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2027,21 +1795,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2051,33 +1815,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -2088,37 +1841,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = - com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The state to set. * @return This builder for chaining. */ @@ -2132,16 +1872,11 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.PrivateConnection.S return this; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return This builder for chaining. */ public Builder clearState() { @@ -2153,58 +1888,39 @@ public Builder clearState() { private com.google.cloud.datastream.v1alpha1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> - errorBuilder_; + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorBuilder_; /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ public com.google.cloud.datastream.v1alpha1.Error getError() { if (errorBuilder_ == null) { - return error_ == null - ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() - : error_; + return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; } else { return errorBuilder_.getMessage(); } } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setError(com.google.cloud.datastream.v1alpha1.Error value) { if (errorBuilder_ == null) { @@ -2220,17 +1936,14 @@ public Builder setError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder setError( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -2241,21 +1954,17 @@ public Builder setError(com.google.cloud.datastream.v1alpha1.Error.Builder build return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && error_ != null - && error_ != com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + error_ != null && + error_ != com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -2268,15 +1977,11 @@ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2289,15 +1994,11 @@ public Builder clearError() { return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -2305,48 +2006,36 @@ public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null - ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() - : error_; + return error_ == null ? + com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; } } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - getError(), getParentForChildren(), isClean()); + errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + getError(), + getParentForChildren(), + isClean()); error_ = null; } return errorBuilder_; @@ -2354,55 +2043,41 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { private com.google.cloud.datastream.v1alpha1.VpcPeeringConfig vpcPeeringConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> - vpcPeeringConfigBuilder_; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> vpcPeeringConfigBuilder_; /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ public boolean hasVpcPeeringConfig() { return ((bitField0_ & 0x00000080) != 0); } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig() { if (vpcPeeringConfigBuilder_ == null) { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } else { return vpcPeeringConfigBuilder_.getMessage(); } } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public Builder setVpcPeeringConfig( - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { + public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2416,8 +2091,6 @@ public Builder setVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
@@ -2436,21 +2109,17 @@ public Builder setVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public Builder mergeVpcPeeringConfig( - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { + public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && vpcPeeringConfig_ != null - && vpcPeeringConfig_ - != com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) && + vpcPeeringConfig_ != null && + vpcPeeringConfig_ != com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) { getVpcPeeringConfigBuilder().mergeFrom(value); } else { vpcPeeringConfig_ = value; @@ -2463,8 +2132,6 @@ public Builder mergeVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
@@ -2482,42 +2149,33 @@ public Builder clearVpcPeeringConfig() { return this; } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder - getVpcPeeringConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder getVpcPeeringConfigBuilder() { bitField0_ |= 0x00000080; onChanged(); return getVpcPeeringConfigFieldBuilder().getBuilder(); } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder - getVpcPeeringConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { if (vpcPeeringConfigBuilder_ != null) { return vpcPeeringConfigBuilder_.getMessageOrBuilder(); } else { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } } /** - * - * *
      * VPC Peering Config
      * 
@@ -2525,24 +2183,21 @@ public Builder clearVpcPeeringConfig() { * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> getVpcPeeringConfigFieldBuilder() { if (vpcPeeringConfigBuilder_ == null) { - vpcPeeringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( - getVpcPeeringConfig(), getParentForChildren(), isClean()); + vpcPeeringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( + getVpcPeeringConfig(), + getParentForChildren(), + isClean()); vpcPeeringConfig_ = null; } return vpcPeeringConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2552,12 +2207,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.PrivateConnection) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.PrivateConnection) private static final com.google.cloud.datastream.v1alpha1.PrivateConnection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.PrivateConnection(); } @@ -2566,27 +2221,27 @@ public static com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2601,4 +2256,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java index f24fa8f909fa..2291fedc4f43 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface PrivateConnectionOrBuilder - extends +public interface PrivateConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface PrivateConnectionOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,143 +121,105 @@ public interface PrivateConnectionOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. The state of the Private Connection.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The state. */ com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState(); /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The error. */ com.google.cloud.datastream.v1alpha1.Error getError(); /** - * - * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder(); /** - * - * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ boolean hasVpcPeeringConfig(); /** - * - * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig(); /** - * - * *
    * VPC Peering Config
    * 
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java similarity index 66% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java index 8dec0210319c..a01d999056aa 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java @@ -1,79 +1,58 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Private Connectivity
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnectivity} */ -public final class PrivateConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PrivateConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.PrivateConnectivity) PrivateConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PrivateConnectivity.newBuilder() to construct. private PrivateConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrivateConnectivity() { privateConnectionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PrivateConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); } public static final int PRIVATE_CONNECTION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionName_ = ""; /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionName. */ @java.lang.Override @@ -82,7 +61,8 @@ public java.lang.String getPrivateConnectionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionName_ = s; return s; @@ -90,15 +70,16 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionName. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -107,7 +88,6 @@ public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -119,7 +99,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnectionName_); } @@ -143,15 +124,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.PrivateConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.PrivateConnectivity other = - (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) obj; + com.google.cloud.datastream.v1alpha1.PrivateConnectivity other = (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) obj; - if (!getPrivateConnectionName().equals(other.getPrivateConnectionName())) return false; + if (!getPrivateConnectionName() + .equals(other.getPrivateConnectionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -171,136 +152,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Private Connectivity
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.PrivateConnectivity) com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +284,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override @@ -331,11 +305,8 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.PrivateConnectivity result = - new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.PrivateConnectivity result = new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -351,39 +322,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectiv public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.PrivateConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnectivity)other); } else { super.mergeFrom(other); return this; @@ -391,8 +361,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnectivity other) { - if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) return this; if (!other.getPrivateConnectionName().isEmpty()) { privateConnectionName_ = other.privateConnectionName_; bitField0_ |= 0x00000001; @@ -424,19 +393,17 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - privateConnectionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + privateConnectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -446,19 +413,18 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object privateConnectionName_ = ""; /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionName. */ public java.lang.String getPrivateConnectionName() { java.lang.Object ref = privateConnectionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionName_ = s; return s; @@ -468,14 +434,15 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionName. */ - public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -484,14 +451,12 @@ public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The privateConnectionName to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } privateConnectionName_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -499,7 +464,6 @@ public Builder setPrivateConnectionName(java.lang.String value) { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPrivateConnectionName() { @@ -510,23 +474,21 @@ public Builder clearPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for privateConnectionName to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPrivateConnectionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); privateConnectionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -536,12 +498,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.PrivateConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.PrivateConnectivity) private static final com.google.cloud.datastream.v1alpha1.PrivateConnectivity DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(); } @@ -550,27 +512,27 @@ public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -585,4 +547,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java new file mode 100644 index 000000000000..fcc6ed472d1a --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface PrivateConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The privateConnectionName. + */ + java.lang.String getPrivateConnectionName(); + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for privateConnectionName. + */ + com.google.protobuf.ByteString + getPrivateConnectionNameBytes(); +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java index 69d0ff4bed5f..36a1c72966bd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * The Route resource is the child of the PrivateConnection resource.
  * It used to define a route for a PrivateConnection setup.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
  */
-public final class Route extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Route extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Route)
     RouteOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Route() {
     name_ = "";
     displayName_ = "";
@@ -46,54 +28,50 @@ private Route() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Route();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(int number) {
+  protected com.google.protobuf.MapField internalGetMapField(
+      int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException("Invalid map field number: " + number);
+        throw new RuntimeException(
+            "Invalid map field number: " + number);
     }
   }
-
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.Route.class,
-            com.google.cloud.datastream.v1alpha1.Route.Builder.class);
+            com.google.cloud.datastream.v1alpha1.Route.class, com.google.cloud.datastream.v1alpha1.Route.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -102,29 +80,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -135,15 +113,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -151,15 +125,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -167,14 +137,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -184,15 +151,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -200,15 +163,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -216,14 +175,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -231,34 +187,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -266,21 +220,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -292,8 +245,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -301,19 +252,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -321,11 +270,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -333,18 +282,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -353,29 +298,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -384,18 +329,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; - @SuppressWarnings("serial") private volatile java.lang.Object destinationAddress_ = ""; /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ @java.lang.Override @@ -404,29 +345,29 @@ public java.lang.String getDestinationAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; } } /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationAddressBytes() { + public com.google.protobuf.ByteString + getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -437,14 +378,11 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_ = 0; /** - * - * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ @java.lang.Override @@ -453,7 +391,6 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,7 +402,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -475,8 +413,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -499,20 +441,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -521,7 +465,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, destinationPort_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -531,27 +476,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Route)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Route other = - (com.google.cloud.datastream.v1alpha1.Route) obj; + com.google.cloud.datastream.v1alpha1.Route other = (com.google.cloud.datastream.v1alpha1.Route) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDestinationAddress().equals(other.getDestinationAddress())) return false; - if (getDestinationPort() != other.getDestinationPort()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDestinationAddress() + .equals(other.getDestinationAddress())) return false; + if (getDestinationPort() + != other.getDestinationPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -588,104 +539,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Route resource is the child of the PrivateConnection resource.
    * It used to define a route for a PrivateConnection setup.
@@ -693,52 +637,55 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Route)
       com.google.cloud.datastream.v1alpha1.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.Route.class,
-              com.google.cloud.datastream.v1alpha1.Route.Builder.class);
+              com.google.cloud.datastream.v1alpha1.Route.class, com.google.cloud.datastream.v1alpha1.Route.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.Route.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -762,9 +709,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
     }
 
     @java.lang.Override
@@ -783,11 +730,8 @@ public com.google.cloud.datastream.v1alpha1.Route build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.Route buildPartial() {
-      com.google.cloud.datastream.v1alpha1.Route result =
-          new com.google.cloud.datastream.v1alpha1.Route(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1alpha1.Route result = new com.google.cloud.datastream.v1alpha1.Route(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -798,10 +742,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Route result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null
+            ? updateTime_
+            : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -822,39 +770,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Route result) {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.Route) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.Route) other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.Route)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -874,7 +821,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Route other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -915,61 +863,55 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000004;
-                break;
-              } // case 26
-            case 34:
-              {
-                com.google.protobuf.MapEntry labels__ =
-                    input.readMessage(
-                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
-                        extensionRegistry);
-                internalGetMutableLabels()
-                    .getMutableMap()
-                    .put(labels__.getKey(), labels__.getValue());
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            case 42:
-              {
-                displayName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000010;
-                break;
-              } // case 42
-            case 50:
-              {
-                destinationAddress_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000020;
-                break;
-              } // case 50
-            case 56:
-              {
-                destinationPort_ = input.readInt32();
-                bitField0_ |= 0x00000040;
-                break;
-              } // case 56
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              input.readMessage(
+                  getUpdateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000004;
+              break;
+            } // case 26
+            case 34: {
+              com.google.protobuf.MapEntry
+              labels__ = input.readMessage(
+                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              internalGetMutableLabels().getMutableMap().put(
+                  labels__.getKey(), labels__.getValue());
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 42: {
+              displayName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 42
+            case 50: {
+              destinationAddress_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000020;
+              break;
+            } // case 50
+            case 56: {
+              destinationPort_ = input.readInt32();
+              bitField0_ |= 0x00000040;
+              break;
+            } // case 56
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -979,25 +921,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1006,21 +945,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1028,35 +966,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -1066,21 +997,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1090,58 +1017,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1157,17 +1065,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1178,21 +1083,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1205,15 +1106,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1226,15 +1123,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1242,48 +1135,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1291,58 +1172,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1358,17 +1220,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1379,21 +1238,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1406,15 +1261,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1427,15 +1278,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1443,66 +1290,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1511,13 +1348,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -1525,21 +1359,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -1551,8 +1384,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1560,19 +1391,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1580,95 +1409,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1677,21 +1502,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1699,35 +1523,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1737,21 +1554,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1761,20 +1574,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationAddress_ = ""; /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ public java.lang.String getDestinationAddress() { java.lang.Object ref = destinationAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; @@ -1783,21 +1594,20 @@ public java.lang.String getDestinationAddress() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ - public com.google.protobuf.ByteString getDestinationAddressBytes() { + public com.google.protobuf.ByteString + getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -1805,35 +1615,28 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationAddress( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } destinationAddress_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDestinationAddress() { @@ -1843,21 +1646,17 @@ public Builder clearDestinationAddress() { return this; } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDestinationAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationAddress_ = value; bitField0_ |= 0x00000020; @@ -1865,16 +1664,13 @@ public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) return this; } - private int destinationPort_; + private int destinationPort_ ; /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ @java.lang.Override @@ -1882,33 +1678,27 @@ public int getDestinationPort() { return destinationPort_; } /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** - * - * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; - * * @return This builder for chaining. */ public Builder clearDestinationPort() { @@ -1917,9 +1707,9 @@ public Builder clearDestinationPort() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1929,12 +1719,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Route) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Route) private static final com.google.cloud.datastream.v1alpha1.Route DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Route(); } @@ -1943,27 +1733,27 @@ public static com.google.cloud.datastream.v1alpha1.Route getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1978,4 +1768,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java similarity index 69% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java index cc4b9e20fec5..c4e09b3473e6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface RouteOrBuilder - extends +public interface RouteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Route) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface RouteOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,80 +121,66 @@ public interface RouteOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ java.lang.String getDestinationAddress(); /** - * - * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ - com.google.protobuf.ByteString getDestinationAddressBytes(); + com.google.protobuf.ByteString + getDestinationAddressBytes(); /** - * - * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; - * * @return The destinationPort. */ int getDestinationPort(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java index 42be3f0d2a9f..c2b5caf83c8a 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Schema file format.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.SchemaFileFormat} */ -public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum SchemaFileFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified schema file format.
    * 
@@ -39,8 +21,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Do not attach schema file.
    * 
@@ -49,8 +29,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ NO_SCHEMA_FILE(1), /** - * - * *
    * Avro schema format.
    * 
@@ -62,8 +40,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * Unspecified schema file format.
    * 
@@ -72,8 +48,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Do not attach schema file.
    * 
@@ -82,8 +56,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** - * - * *
    * Avro schema format.
    * 
@@ -92,6 +64,7 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int AVRO_SCHEMA_FILE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,51 +89,49 @@ public static SchemaFileFormat valueOf(int value) { */ public static SchemaFileFormat forNumber(int value) { switch (value) { - case 0: - return SCHEMA_FILE_FORMAT_UNSPECIFIED; - case 1: - return NO_SCHEMA_FILE; - case 2: - return AVRO_SCHEMA_FILE; - default: - return null; + case 0: return SCHEMA_FILE_FORMAT_UNSPECIFIED; + case 1: return NO_SCHEMA_FILE; + case 2: return AVRO_SCHEMA_FILE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaFileFormat findValueByNumber(int number) { - return SchemaFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaFileFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaFileFormat findValueByNumber(int number) { + return SchemaFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final SchemaFileFormat[] VALUES = values(); - public static SchemaFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SchemaFileFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -176,3 +147,4 @@ private SchemaFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.SchemaFileFormat) } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java index 184a9bdbe545..a180e7816ce0 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java @@ -1,84 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * The configuration of the stream source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.SourceConfig} */ -public final class SourceConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SourceConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.SourceConfig) SourceConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SourceConfig.newBuilder() to construct. private SourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceConfig() { sourceConnectionProfileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.SourceConfig.class, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.SourceConfig.class, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); } private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - public enum SourceStreamConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; - private SourceStreamConfigCase(int value) { this.value = value; } @@ -94,40 +72,32 @@ public static SourceStreamConfigCase valueOf(int value) { public static SourceStreamConfigCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_SOURCE_CONFIG; - case 101: - return MYSQL_SOURCE_CONFIG; - case 0: - return SOURCESTREAMCONFIG_NOT_SET; - default: - return null; + case 100: return ORACLE_SOURCE_CONFIG; + case 101: return MYSQL_SOURCE_CONFIG; + case 0: return SOURCESTREAMCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public SourceStreamConfigCase getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); + public SourceStreamConfigCase + getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber( + sourceStreamConfigCase_); } public static final int SOURCE_CONNECTION_PROFILE_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object sourceConnectionProfileName_ = ""; /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConnectionProfileName. */ @java.lang.Override @@ -136,30 +106,29 @@ public java.lang.String getSourceConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfileName_ = s; return s; } } /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -169,14 +138,11 @@ public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER = 100; /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -184,26 +150,21 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } /** - * - * *
    * Oracle data source configuration
    * 
@@ -211,24 +172,20 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER = 101; /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -236,26 +193,21 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } /** - * - * *
    * MySQL data source configuration
    * 
@@ -263,16 +215,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder - getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -284,17 +234,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } getUnknownFields().writeTo(output); } @@ -306,18 +255,15 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,23 +273,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.SourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.SourceConfig other = - (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; + com.google.cloud.datastream.v1alpha1.SourceConfig other = (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; - if (!getSourceConnectionProfileName().equals(other.getSourceConnectionProfileName())) - return false; + if (!getSourceConnectionProfileName() + .equals(other.getSourceConnectionProfileName())) return false; if (!getSourceStreamConfigCase().equals(other.getSourceStreamConfigCase())) return false; switch (sourceStreamConfigCase_) { case 100: - if (!getOracleSourceConfig().equals(other.getOracleSourceConfig())) return false; + if (!getOracleSourceConfig() + .equals(other.getOracleSourceConfig())) return false; break; case 101: - if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; + if (!getMysqlSourceConfig() + .equals(other.getMysqlSourceConfig())) return false; break; case 0: default: @@ -379,135 +326,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.SourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The configuration of the stream source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.SourceConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.SourceConfig) com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.SourceConfig.class, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.SourceConfig.class, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.SourceConfig.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -525,9 +466,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override @@ -546,11 +487,8 @@ public com.google.cloud.datastream.v1alpha1.SourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.SourceConfig result = - new com.google.cloud.datastream.v1alpha1.SourceConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.SourceConfig result = new com.google.cloud.datastream.v1alpha1.SourceConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -566,10 +504,12 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.SourceConfig res private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.SourceConfig result) { result.sourceStreamConfigCase_ = sourceStreamConfigCase_; result.sourceStreamConfig_ = this.sourceStreamConfig_; - if (sourceStreamConfigCase_ == 100 && oracleSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 100 && + oracleSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = oracleSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 101 && mysqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 101 && + mysqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } } @@ -578,39 +518,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.SourceConfi public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.SourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.SourceConfig) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.SourceConfig)other); } else { super.mergeFrom(other); return this; @@ -618,28 +557,24 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.SourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) return this; if (!other.getSourceConnectionProfileName().isEmpty()) { sourceConnectionProfileName_ = other.sourceConnectionProfileName_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getSourceStreamConfigCase()) { - case ORACLE_SOURCE_CONFIG: - { - mergeOracleSourceConfig(other.getOracleSourceConfig()); - break; - } - case MYSQL_SOURCE_CONFIG: - { - mergeMysqlSourceConfig(other.getMysqlSourceConfig()); - break; - } - case SOURCESTREAMCONFIG_NOT_SET: - { - break; - } + case ORACLE_SOURCE_CONFIG: { + mergeOracleSourceConfig(other.getOracleSourceConfig()); + break; + } + case MYSQL_SOURCE_CONFIG: { + mergeMysqlSourceConfig(other.getMysqlSourceConfig()); + break; + } + case SOURCESTREAMCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -667,33 +602,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - sourceConnectionProfileName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: - { - input.readMessage( - getOracleSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - sourceStreamConfigCase_ = 100; - break; - } // case 802 - case 810: - { - input.readMessage( - getMysqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - sourceStreamConfigCase_ = 101; - break; - } // case 810 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + sourceConnectionProfileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: { + input.readMessage( + getOracleSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 100; + break; + } // case 802 + case 810: { + input.readMessage( + getMysqlSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + sourceStreamConfigCase_ = 101; + break; + } // case 810 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -703,12 +636,12 @@ public Builder mergeFrom( } // finally return this; } - private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - - public SourceStreamConfigCase getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); + public SourceStreamConfigCase + getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber( + sourceStreamConfigCase_); } public Builder clearSourceStreamConfig() { @@ -722,21 +655,18 @@ public Builder clearSourceStreamConfig() { private java.lang.Object sourceConnectionProfileName_ = ""; /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConnectionProfileName. */ public java.lang.String getSourceConnectionProfileName() { java.lang.Object ref = sourceConnectionProfileName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfileName_ = s; return s; @@ -745,22 +675,20 @@ public java.lang.String getSourceConnectionProfileName() { } } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ - public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -768,37 +696,28 @@ public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { } } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceConnectionProfileName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } sourceConnectionProfileName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearSourceConnectionProfileName() { @@ -808,22 +727,17 @@ public Builder clearSourceConnectionProfileName() { return this; } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSourceConnectionProfileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); sourceConnectionProfileName_ = value; bitField0_ |= 0x00000001; @@ -832,19 +746,13 @@ public Builder setSourceConnectionProfileNameBytes(com.google.protobuf.ByteStrin } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> - oracleSourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> oracleSourceConfigBuilder_; /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -852,14 +760,11 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override @@ -877,16 +782,13 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo } } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder setOracleSourceConfig( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -900,8 +802,6 @@ public Builder setOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
@@ -920,25 +820,18 @@ public Builder setOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder mergeOracleSourceConfig( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 100 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 100 && + sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -954,8 +847,6 @@ public Builder mergeOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
@@ -979,21 +870,16 @@ public Builder clearOracleSourceConfig() { return this; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder - getOracleSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { return getOracleSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle data source configuration
      * 
@@ -1001,8 +887,7 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { return oracleSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1013,8 +898,6 @@ public Builder clearOracleSourceConfig() { } } /** - * - * *
      * Oracle data source configuration
      * 
@@ -1022,20 +905,14 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> getOracleSourceConfigFieldBuilder() { if (oracleSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 100)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } - oracleSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( + oracleSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1047,19 +924,13 @@ public Builder clearOracleSourceConfig() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> - mysqlSourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> mysqlSourceConfigBuilder_; /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -1067,14 +938,11 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override @@ -1092,16 +960,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf } } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder setMysqlSourceConfig( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1115,8 +980,6 @@ public Builder setMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1135,25 +998,18 @@ public Builder setMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder mergeMysqlSourceConfig( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 101 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 101 && + sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1169,8 +1025,6 @@ public Builder mergeMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1194,21 +1048,16 @@ public Builder clearMysqlSourceConfig() { return this; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder - getMysqlSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder getMysqlSourceConfigBuilder() { return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1216,8 +1065,7 @@ public Builder clearMysqlSourceConfig() { * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder - getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { return mysqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1228,8 +1076,6 @@ public Builder clearMysqlSourceConfig() { } } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1237,20 +1083,14 @@ public Builder clearMysqlSourceConfig() { * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> getMysqlSourceConfigFieldBuilder() { if (mysqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 101)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } - mysqlSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( + mysqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1260,9 +1100,9 @@ public Builder clearMysqlSourceConfig() { onChanged(); return mysqlSourceConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1272,12 +1112,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.SourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.SourceConfig) private static final com.google.cloud.datastream.v1alpha1.SourceConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.SourceConfig(); } @@ -1286,27 +1126,27 @@ public static com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1321,4 +1161,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java index 561e3858db81..158bed906b77 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java @@ -1,82 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface SourceConfigOrBuilder - extends +public interface SourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.SourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConnectionProfileName. */ java.lang.String getSourceConnectionProfileName(); /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ - com.google.protobuf.ByteString getSourceConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes(); /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ boolean hasOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration
    * 
@@ -86,32 +55,24 @@ public interface SourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder(); /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ boolean hasMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration
    * 
@@ -120,6 +81,5 @@ public interface SourceConfigOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase - getSourceStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java index ced1a1c814c3..c034ed54915c 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java @@ -1,72 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Static IP address connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity} */ -public final class StaticServiceIpConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StaticServiceIpConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) StaticServiceIpConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StaticServiceIpConnectivity.newBuilder() to construct. private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StaticServiceIpConnectivity() {} + private StaticServiceIpConnectivity() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StaticServiceIpConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -78,7 +59,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -96,13 +78,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -121,136 +102,129 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Static IP address connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -258,14 +232,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } @@ -280,8 +253,7 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = - new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); onBuilt(); return result; } @@ -290,50 +262,46 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { - if (other - == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { + if (other == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -360,13 +328,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -376,9 +343,9 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -388,43 +355,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - private static final com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StaticServiceIpConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StaticServiceIpConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -436,8 +401,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 000000000000..70408cec0b1a --- /dev/null +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface StaticServiceIpConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder { +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java index 21ea5d44eff2..29adf92561ac 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} */ -public final class Stream extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} + */ +public final class Stream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream) StreamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stream() { name_ = ""; displayName_ = ""; @@ -38,54 +24,51 @@ private Stream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.class, - com.google.cloud.datastream.v1alpha1.Stream.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.class, com.google.cloud.datastream.v1alpha1.Stream.Builder.class); } /** - * - * *
    * Stream state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.Stream.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { + public enum State + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified stream state.
      * 
@@ -94,8 +77,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The stream has been created.
      * 
@@ -104,8 +85,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * The stream is running.
      * 
@@ -114,8 +93,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The stream is paused.
      * 
@@ -124,8 +101,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(3), /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -135,8 +110,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAINTENANCE(4),
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -146,8 +119,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FAILED(5),
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -156,8 +127,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_PERMANENTLY(6), /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -166,8 +135,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STARTING(7), /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -180,8 +147,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified stream state.
      * 
@@ -190,8 +155,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The stream has been created.
      * 
@@ -200,8 +163,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * The stream is running.
      * 
@@ -210,8 +171,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The stream is paused.
      * 
@@ -220,8 +179,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 3; /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -231,8 +188,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -242,8 +197,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FAILED_VALUE = 5;
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -252,8 +205,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -262,8 +213,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STARTING_VALUE = 7; /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -273,6 +222,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DRAINING_VALUE = 8;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -297,61 +247,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATED;
-        case 2:
-          return RUNNING;
-        case 3:
-          return PAUSED;
-        case 4:
-          return MAINTENANCE;
-        case 5:
-          return FAILED;
-        case 6:
-          return FAILED_PERMANENTLY;
-        case 7:
-          return STARTING;
-        case 8:
-          return DRAINING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATED;
+        case 2: return RUNNING;
+        case 3: return PAUSED;
+        case 4: return MAINTENANCE;
+        case 5: return FAILED;
+        case 6: return FAILED_PERMANENTLY;
+        case 7: return STARTING;
+        case 8: return DRAINING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.datastream.v1alpha1.Stream.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -368,38 +312,29 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.Stream.State)
   }
 
-  public interface BackfillAllStrategyOrBuilder
-      extends
+  public interface BackfillAllStrategyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ boolean hasOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -409,32 +344,24 @@ public interface BackfillAllStrategyOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ boolean hasMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -443,12 +370,9 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase - getExcludedObjectsCase(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } /** - * - * *
    * Backfill strategy to automatically backfill the Stream's objects.
    * Specific objects can be excluded.
@@ -456,56 +380,52 @@ public interface BackfillAllStrategyOrBuilder
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy}
    */
-  public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BackfillAllStrategy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       BackfillAllStrategyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BackfillAllStrategy.newBuilder() to construct.
     private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BackfillAllStrategy() {}
+    private BackfillAllStrategy() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BackfillAllStrategy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class,
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
+              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
     }
 
     private int excludedObjectsCase_ = 0;
     private java.lang.Object excludedObjects_;
-
     public enum ExcludedObjectsCase
-        implements
-            com.google.protobuf.Internal.EnumLite,
+        implements com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ORACLE_EXCLUDED_OBJECTS(1),
       MYSQL_EXCLUDED_OBJECTS(2),
       EXCLUDEDOBJECTS_NOT_SET(0);
       private final int value;
-
       private ExcludedObjectsCase(int value) {
         this.value = value;
       }
@@ -521,36 +441,30 @@ public static ExcludedObjectsCase valueOf(int value) {
 
       public static ExcludedObjectsCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return ORACLE_EXCLUDED_OBJECTS;
-          case 2:
-            return MYSQL_EXCLUDED_OBJECTS;
-          case 0:
-            return EXCLUDEDOBJECTS_NOT_SET;
-          default:
-            return null;
+          case 1: return ORACLE_EXCLUDED_OBJECTS;
+          case 2: return MYSQL_EXCLUDED_OBJECTS;
+          case 0: return EXCLUDEDOBJECTS_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ExcludedObjectsCase getExcludedObjectsCase() {
-      return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
+    public ExcludedObjectsCase
+    getExcludedObjectsCase() {
+      return ExcludedObjectsCase.forNumber(
+          excludedObjectsCase_);
     }
 
     public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -558,26 +472,21 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -585,24 +494,20 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder - getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -610,26 +515,21 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -637,16 +537,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder - getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -658,7 +556,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (excludedObjectsCase_ == 1) { output.writeMessage(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } @@ -675,14 +574,12 @@ public int getSerializedSize() { size = 0; if (excludedObjectsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } if (excludedObjectsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -692,21 +589,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = - (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; switch (excludedObjectsCase_) { case 1: - if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; + if (!getOracleExcludedObjects() + .equals(other.getOracleExcludedObjects())) return false; break; case 2: - if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; + if (!getMysqlExcludedObjects() + .equals(other.getMysqlExcludedObjects())) return false; break; case 0: default: @@ -740,95 +638,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -838,8 +728,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -847,34 +735,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
         com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class,
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
       }
 
-      // Construct using
-      // com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder()
-      private Builder() {}
+      // Construct using com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder()
+      private Builder() {
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-        super(parent);
       }
 
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+        super(parent);
+
+      }
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -891,14 +778,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
-          getDefaultInstanceForType() {
+      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstanceForType() {
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
 
@@ -913,29 +799,26 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy build() {
 
       @java.lang.Override
       public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy buildPartial() {
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result =
-            new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(this);
-        if (bitField0_ != 0) {
-          buildPartial0(result);
-        }
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result = new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(this);
+        if (bitField0_ != 0) { buildPartial0(result); }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(
-          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
+      private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(
-          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
+      private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
         result.excludedObjectsCase_ = excludedObjectsCase_;
         result.excludedObjects_ = this.excludedObjects_;
-        if (excludedObjectsCase_ == 1 && oracleExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 1 &&
+            oracleExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = oracleExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 2 && mysqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 2 &&
+            mysqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build();
         }
       }
@@ -944,67 +827,58 @@ private void buildPartialOneofs(
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) {
-          return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) other);
+          return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(
-          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other) {
-        if (other
-            == com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance())
-          return this;
+      public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other) {
+        if (other == com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance()) return this;
         switch (other.getExcludedObjectsCase()) {
-          case ORACLE_EXCLUDED_OBJECTS:
-            {
-              mergeOracleExcludedObjects(other.getOracleExcludedObjects());
-              break;
-            }
-          case MYSQL_EXCLUDED_OBJECTS:
-            {
-              mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
-              break;
-            }
-          case EXCLUDEDOBJECTS_NOT_SET:
-            {
-              break;
-            }
+          case ORACLE_EXCLUDED_OBJECTS: {
+            mergeOracleExcludedObjects(other.getOracleExcludedObjects());
+            break;
+          }
+          case MYSQL_EXCLUDED_OBJECTS: {
+            mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
+            break;
+          }
+          case EXCLUDEDOBJECTS_NOT_SET: {
+            break;
+          }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -1032,27 +906,26 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10:
-                {
-                  input.readMessage(
-                      getOracleExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
-                  excludedObjectsCase_ = 1;
-                  break;
-                } // case 10
-              case 18:
-                {
-                  input.readMessage(
-                      getMysqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
-                  excludedObjectsCase_ = 2;
-                  break;
-                } // case 18
-              default:
-                {
-                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                    done = true; // was an endgroup tag
-                  }
-                  break;
-                } // default:
+              case 10: {
+                input.readMessage(
+                    getOracleExcludedObjectsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                excludedObjectsCase_ = 1;
+                break;
+              } // case 10
+              case 18: {
+                input.readMessage(
+                    getMysqlExcludedObjectsFieldBuilder().getBuilder(),
+                    extensionRegistry);
+                excludedObjectsCase_ = 2;
+                break;
+              } // case 18
+              default: {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1062,12 +935,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
-
       private int excludedObjectsCase_ = 0;
       private java.lang.Object excludedObjects_;
-
-      public ExcludedObjectsCase getExcludedObjectsCase() {
-        return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
+      public ExcludedObjectsCase
+          getExcludedObjectsCase() {
+        return ExcludedObjectsCase.forNumber(
+            excludedObjectsCase_);
       }
 
       public Builder clearExcludedObjects() {
@@ -1080,19 +953,13 @@ public Builder clearExcludedObjects() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.datastream.v1alpha1.OracleRdbms,
-              com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder,
-              com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>
-          oracleExcludedObjectsBuilder_;
+          com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleExcludedObjectsBuilder_;
       /**
-       *
-       *
        * 
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -1100,14 +967,11 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override @@ -1125,16 +989,13 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder setOracleExcludedObjects( - com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1148,8 +1009,6 @@ public Builder setOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1168,25 +1027,18 @@ public Builder setOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder mergeOracleExcludedObjects( - com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 1 - && excludedObjects_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 1 && + excludedObjects_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1202,8 +1054,6 @@ public Builder mergeOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1227,21 +1077,16 @@ public Builder clearOracleExcludedObjects() { return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder - getOracleExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleExcludedObjectsBuilder() { return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1249,8 +1094,7 @@ public Builder clearOracleExcludedObjects() { * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder - getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1261,8 +1105,6 @@ public Builder clearOracleExcludedObjects() { } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1270,20 +1112,14 @@ public Builder clearOracleExcludedObjects() { * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder() { if (oracleExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 1)) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); + excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1295,19 +1131,13 @@ public Builder clearOracleExcludedObjects() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - mysqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlExcludedObjectsBuilder_; /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -1315,14 +1145,11 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override @@ -1340,16 +1167,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder setMysqlExcludedObjects( - com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1363,8 +1187,6 @@ public Builder setMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1383,25 +1205,18 @@ public Builder setMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder mergeMysqlExcludedObjects( - com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 2 - && excludedObjects_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 2 && + excludedObjects_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1417,8 +1232,6 @@ public Builder mergeMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1442,21 +1255,16 @@ public Builder clearMysqlExcludedObjects() { return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder - getMysqlExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlExcludedObjectsBuilder() { return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1464,8 +1272,7 @@ public Builder clearMysqlExcludedObjects() { * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder - getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 2) && (mysqlExcludedObjectsBuilder_ != null)) { return mysqlExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1476,8 +1283,6 @@ public Builder clearMysqlExcludedObjects() { } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1485,19 +1290,14 @@ public Builder clearMysqlExcludedObjects() { * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder() { if (mysqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 2)) { excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1507,7 +1307,6 @@ public Builder clearMysqlExcludedObjects() { onChanged(); return mysqlExcludedObjectsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1520,44 +1319,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) - private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillAllStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillAllStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1569,65 +1365,61 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface BackfillNoneStrategyOrBuilder - extends + public interface BackfillNoneStrategyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + } /** - * - * *
    * Backfill strategy to disable automatic backfill for the Stream's objects.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy} */ - public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class BackfillNoneStrategy extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) BackfillNoneStrategyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackfillNoneStrategy.newBuilder() to construct. private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BackfillNoneStrategy() {} + private BackfillNoneStrategy() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BackfillNoneStrategy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1639,7 +1431,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -1657,13 +1450,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1682,95 +1474,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1780,42 +1564,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Backfill strategy to disable automatic backfill for the Stream's objects.
      * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1823,16 +1604,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } @java.lang.Override @@ -1846,8 +1625,7 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = - new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); onBuilt(); return result; } @@ -1856,53 +1634,46 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { - if (other - == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { + if (other == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1929,13 +1700,12 @@ public Builder mergeFrom( case 0: done = true; break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1945,7 +1715,6 @@ public Builder mergeFrom( } // finally return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1958,44 +1727,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillNoneStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillNoneStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2007,24 +1773,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - public enum BackfillStrategyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKFILL_ALL(101), BACKFILL_NONE(102), BACKFILLSTRATEGY_NOT_SET(0); private final int value; - private BackfillStrategyCase(int value) { this.value = value; } @@ -2040,39 +1803,32 @@ public static BackfillStrategyCase valueOf(int value) { public static BackfillStrategyCase forNumber(int value) { switch (value) { - case 101: - return BACKFILL_ALL; - case 102: - return BACKFILL_NONE; - case 0: - return BACKFILLSTRATEGY_NOT_SET; - default: - return null; + case 101: return BACKFILL_ALL; + case 102: return BACKFILL_NONE; + case 0: return BACKFILLSTRATEGY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BackfillStrategyCase getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber(backfillStrategyCase_); + public BackfillStrategyCase + getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber( + backfillStrategyCase_); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ @java.lang.Override @@ -2081,29 +1837,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -2114,15 +1870,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -2130,15 +1882,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -2146,14 +1894,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2163,15 +1908,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2179,15 +1920,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2195,14 +1932,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2210,34 +1944,32 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
    * Labels.
    * 
@@ -2245,21 +1977,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
    * Labels.
    * 
@@ -2271,8 +2002,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -2280,19 +2009,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -2300,11 +2027,11 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2312,18 +2039,14 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ @java.lang.Override @@ -2332,29 +2055,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2365,16 +2088,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ @java.lang.Override @@ -2382,55 +2100,37 @@ public boolean hasSourceConfig() { return sourceConfig_ != null; } /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig() { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; } /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder() { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; } public static final int DESTINATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1alpha1.DestinationConfig destinationConfig_; /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ @java.lang.Override @@ -2438,89 +2138,63 @@ public boolean hasDestinationConfig() { return destinationConfig_ != null; } /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig() { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; } /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder - getDestinationConfigOrBuilder() { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { + return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; } public static final int STATE_FIELD_NUMBER = 8; private int state_ = 0; /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.State getState() { - com.google.cloud.datastream.v1alpha1.Stream.State result = - com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); + @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.State getState() { + com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED : result; } public static final int BACKFILL_ALL_FIELD_NUMBER = 101; /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -2528,27 +2202,22 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -2557,24 +2226,20 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
    * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
-      getBackfillAllOrBuilder() {
+  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
     if (backfillStrategyCase_ == 101) {
-      return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
+       return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
     }
     return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
   }
 
   public static final int BACKFILL_NONE_FIELD_NUMBER = 102;
   /**
-   *
-   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -2582,26 +2247,21 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } /** - * - * *
    * Do not automatically backfill any objects.
    * 
@@ -2609,97 +2269,75 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackf * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } public static final int ERRORS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") private java.util.List errors_; /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2711,7 +2349,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2721,8 +2360,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -2739,13 +2382,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - output.writeMessage( - 102, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } getUnknownFields().writeTo(output); } @@ -2760,47 +2400,49 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (sourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSourceConfig()); } if (destinationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDestinationConfig()); } if (state_ != com.google.cloud.datastream.v1alpha1.Stream.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2810,42 +2452,51 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream other = - (com.google.cloud.datastream.v1alpha1.Stream) obj; + com.google.cloud.datastream.v1alpha1.Stream other = (com.google.cloud.datastream.v1alpha1.Stream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasSourceConfig() != other.hasSourceConfig()) return false; if (hasSourceConfig()) { - if (!getSourceConfig().equals(other.getSourceConfig())) return false; + if (!getSourceConfig() + .equals(other.getSourceConfig())) return false; } if (hasDestinationConfig() != other.hasDestinationConfig()) return false; if (hasDestinationConfig()) { - if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; + if (!getDestinationConfig() + .equals(other.getDestinationConfig())) return false; } if (state_ != other.state_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: - if (!getBackfillAll().equals(other.getBackfillAll())) return false; + if (!getBackfillAll() + .equals(other.getBackfillAll())) return false; break; case 102: - if (!getBackfillNone().equals(other.getBackfillNone())) return false; + if (!getBackfillNone() + .equals(other.getBackfillNone())) return false; break; case 0: default: @@ -2908,148 +2559,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream) com.google.cloud.datastream.v1alpha1.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.class, - com.google.cloud.datastream.v1alpha1.Stream.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.class, com.google.cloud.datastream.v1alpha1.Stream.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Stream.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -3097,9 +2748,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @java.lang.Override @@ -3118,12 +2769,9 @@ public com.google.cloud.datastream.v1alpha1.Stream build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream buildPartial() { - com.google.cloud.datastream.v1alpha1.Stream result = - new com.google.cloud.datastream.v1alpha1.Stream(this); + com.google.cloud.datastream.v1alpha1.Stream result = new com.google.cloud.datastream.v1alpha1.Stream(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -3147,10 +2795,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null + ? updateTime_ + : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -3160,14 +2812,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.sourceConfig_ = - sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); + result.sourceConfig_ = sourceConfigBuilder_ == null + ? sourceConfig_ + : sourceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.destinationConfig_ = - destinationConfigBuilder_ == null - ? destinationConfig_ - : destinationConfigBuilder_.build(); + result.destinationConfig_ = destinationConfigBuilder_ == null + ? destinationConfig_ + : destinationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -3177,10 +2829,12 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream result) { result.backfillStrategyCase_ = backfillStrategyCase_; result.backfillStrategy_ = this.backfillStrategy_; - if (backfillStrategyCase_ == 101 && backfillAllBuilder_ != null) { + if (backfillStrategyCase_ == 101 && + backfillAllBuilder_ != null) { result.backfillStrategy_ = backfillAllBuilder_.build(); } - if (backfillStrategyCase_ == 102 && backfillNoneBuilder_ != null) { + if (backfillStrategyCase_ == 102 && + backfillNoneBuilder_ != null) { result.backfillStrategy_ = backfillNoneBuilder_.build(); } } @@ -3189,39 +2843,38 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream resu public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Stream) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream)other); } else { super.mergeFrom(other); return this; @@ -3241,7 +2894,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -3275,30 +2929,26 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } switch (other.getBackfillStrategyCase()) { - case BACKFILL_ALL: - { - mergeBackfillAll(other.getBackfillAll()); - break; - } - case BACKFILL_NONE: - { - mergeBackfillNone(other.getBackfillNone()); - break; - } - case BACKFILLSTRATEGY_NOT_SET: - { - break; - } + case BACKFILL_ALL: { + mergeBackfillAll(other.getBackfillAll()); + break; + } + case BACKFILL_NONE: { + mergeBackfillNone(other.getBackfillNone()); + break; + } + case BACKFILLSTRATEGY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3326,93 +2976,91 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - input.readMessage( - getDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: - { - com.google.cloud.datastream.v1alpha1.Error m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 74 - case 810: - { - input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); - backfillStrategyCase_ = 101; - break; - } // case 810 - case 818: - { - input.readMessage(getBackfillNoneFieldBuilder().getBuilder(), extensionRegistry); - backfillStrategyCase_ = 102; - break; - } // case 818 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableLabels().getMutableMap().put( + labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getSourceConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getDestinationConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: { + com.google.cloud.datastream.v1alpha1.Error m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 74 + case 810: { + input.readMessage( + getBackfillAllFieldBuilder().getBuilder(), + extensionRegistry); + backfillStrategyCase_ = 101; + break; + } // case 810 + case 818: { + input.readMessage( + getBackfillNoneFieldBuilder().getBuilder(), + extensionRegistry); + backfillStrategyCase_ = 102; + break; + } // case 818 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3422,12 +3070,12 @@ public Builder mergeFrom( } // finally return this; } - private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - - public BackfillStrategyCase getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber(backfillStrategyCase_); + public BackfillStrategyCase + getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber( + backfillStrategyCase_); } public Builder clearBackfillStrategy() { @@ -3441,20 +3089,18 @@ public Builder clearBackfillStrategy() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3463,21 +3109,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3485,35 +3130,28 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearName() { @@ -3523,21 +3161,17 @@ public Builder clearName() { return this; } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3547,58 +3181,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3614,17 +3229,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3635,21 +3247,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3662,15 +3270,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3683,15 +3287,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -3699,48 +3299,36 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3748,58 +3336,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3815,17 +3384,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3836,21 +3402,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + updateTime_ != null && + updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3863,15 +3425,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -3884,15 +3442,11 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -3900,66 +3454,56 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return updateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); + updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), + getParentForChildren(), + isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3968,13 +3512,10 @@ private com.google.protobuf.MapField interna onChanged(); return labels_; } - public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
      * Labels.
      * 
@@ -3982,21 +3523,20 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetLabels().getMap().containsKey(key); } - /** Use {@link #getLabelsMap()} instead. */ + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** - * - * *
      * Labels.
      * 
@@ -4008,8 +3548,6 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -4017,19 +3555,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( + public /* nullable */ +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -4037,95 +3573,91 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableLabels().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableLabels() { + public java.util.Map + getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableLabels().getMutableMap() + .put(key, value); bitField0_ |= 0x00000008; return this; } /** - * - * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); + public Builder putAllLabels( + java.util.Map values) { + internalGetMutableLabels().getMutableMap() + .putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -4134,21 +3666,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4156,35 +3687,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -4194,21 +3718,17 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -4218,58 +3738,39 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> - sourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> sourceConfigBuilder_; /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ public boolean hasSourceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ public com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig() { if (sourceConfigBuilder_ == null) { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; } else { return sourceConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig value) { if (sourceConfigBuilder_ == null) { @@ -4285,15 +3786,11 @@ public Builder setSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceConfig( com.google.cloud.datastream.v1alpha1.SourceConfig.Builder builderForValue) { @@ -4307,22 +3804,17 @@ public Builder setSourceConfig( return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig value) { if (sourceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && sourceConfig_ != null - && sourceConfig_ - != com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) && + sourceConfig_ != null && + sourceConfig_ != com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) { getSourceConfigBuilder().mergeFrom(value); } else { sourceConfig_ = value; @@ -4335,15 +3827,11 @@ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConf return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSourceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -4356,15 +3844,11 @@ public Builder clearSourceConfig() { return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.SourceConfig.Builder getSourceConfigBuilder() { bitField0_ |= 0x00000020; @@ -4372,48 +3856,36 @@ public com.google.cloud.datastream.v1alpha1.SourceConfig.Builder getSourceConfig return getSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder() { if (sourceConfigBuilder_ != null) { return sourceConfigBuilder_.getMessageOrBuilder(); } else { - return sourceConfig_ == null - ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() - : sourceConfig_; + return sourceConfig_ == null ? + com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; } } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> getSourceConfigFieldBuilder() { if (sourceConfigBuilder_ == null) { - sourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder>( - getSourceConfig(), getParentForChildren(), isClean()); + sourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder>( + getSourceConfig(), + getParentForChildren(), + isClean()); sourceConfig_ = null; } return sourceConfigBuilder_; @@ -4421,61 +3893,41 @@ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfi private com.google.cloud.datastream.v1alpha1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> - destinationConfigBuilder_; + com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> destinationConfigBuilder_; /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ public boolean hasDestinationConfig() { return ((bitField0_ & 0x00000040) != 0); } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ public com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig() { if (destinationConfigBuilder_ == null) { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; } else { return destinationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setDestinationConfig( - com.google.cloud.datastream.v1alpha1.DestinationConfig value) { + public Builder setDestinationConfig(com.google.cloud.datastream.v1alpha1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4489,15 +3941,11 @@ public Builder setDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinationConfig( com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder builderForValue) { @@ -4511,23 +3959,17 @@ public Builder setDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDestinationConfig( - com.google.cloud.datastream.v1alpha1.DestinationConfig value) { + public Builder mergeDestinationConfig(com.google.cloud.datastream.v1alpha1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && destinationConfig_ != null - && destinationConfig_ - != com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) && + destinationConfig_ != null && + destinationConfig_ != com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) { getDestinationConfigBuilder().mergeFrom(value); } else { destinationConfig_ = value; @@ -4540,15 +3982,11 @@ public Builder mergeDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestinationConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4561,66 +3999,48 @@ public Builder clearDestinationConfig() { return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder - getDestinationConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder getDestinationConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDestinationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder - getDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { if (destinationConfigBuilder_ != null) { return destinationConfigBuilder_.getMessageOrBuilder(); } else { - return destinationConfig_ == null - ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() - : destinationConfig_; + return destinationConfig_ == null ? + com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; } } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> getDestinationConfigFieldBuilder() { if (destinationConfigBuilder_ == null) { - destinationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder>( - getDestinationConfig(), getParentForChildren(), isClean()); + destinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder>( + getDestinationConfig(), + getParentForChildren(), + isClean()); destinationConfig_ = null; } return destinationConfigBuilder_; @@ -4628,29 +4048,22 @@ public Builder clearDestinationConfig() { private int state_ = 0; /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -4661,33 +4074,24 @@ public Builder setStateValue(int value) { return this; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.State getState() { - com.google.cloud.datastream.v1alpha1.Stream.State result = - com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); - return result == null - ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); + return result == null ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED : result; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @param value The state to set. * @return This builder for chaining. */ @@ -4701,14 +4105,11 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.Stream.State value) return this; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return This builder for chaining. */ public Builder clearState() { @@ -4719,20 +4120,14 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> - backfillAllBuilder_; + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> backfillAllBuilder_; /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -4740,23 +4135,19 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillAllBuilder_ == null) { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) - backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } else { @@ -4767,8 +4158,6 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi } } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4776,8 +4165,7 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder setBackfillAll(
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder setBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4791,8 +4179,6 @@ public Builder setBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4812,8 +4198,6 @@ public Builder setBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4821,19 +4205,12 @@ public Builder setBackfillAll(
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder mergeBackfillAll(
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder mergeBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
-        if (backfillStrategyCase_ == 101
-            && backfillStrategy_
-                != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
-                    .getDefaultInstance()) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder(
-                      (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
-                          backfillStrategy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (backfillStrategyCase_ == 101 &&
+            backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance()) {
+          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_)
+              .mergeFrom(value).buildPartial();
         } else {
           backfillStrategy_ = value;
         }
@@ -4849,8 +4226,6 @@ public Builder mergeBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4875,8 +4250,6 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4884,13 +4257,10 @@ public Builder clearBackfillAll() {
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder
-        getBackfillAllBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder() {
       return getBackfillAllFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4899,21 +4269,17 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     @java.lang.Override
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
-        getBackfillAllOrBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
       if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) {
         return backfillAllBuilder_.getMessageOrBuilder();
       } else {
         if (backfillStrategyCase_ == 101) {
-          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
-              backfillStrategy_;
+          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
         }
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4922,20 +4288,14 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> 
         getBackfillAllFieldBuilder() {
       if (backfillAllBuilder_ == null) {
         if (!(backfillStrategyCase_ == 101)) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
+          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
         }
-        backfillAllBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
+        backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
                 (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_,
                 getParentForChildren(),
                 isClean());
@@ -4947,20 +4307,13 @@ public Builder clearBackfillAll() {
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>
-        backfillNoneBuilder_;
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> backfillNoneBuilder_;
     /**
-     *
-     *
      * 
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -4968,46 +4321,35 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillNoneBuilder_ == null) { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } else { if (backfillStrategyCase_ == 102) { return backfillNoneBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setBackfillNone( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder setBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5021,14 +4363,11 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ public Builder setBackfillNone( com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder builderForValue) { @@ -5042,28 +4381,18 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder mergeBackfillNone( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder mergeBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 - && backfillStrategy_ - != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance()) { - backfillStrategy_ = - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_) - .mergeFrom(value) - .buildPartial(); + if (backfillStrategyCase_ == 102 && + backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) { + backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_) + .mergeFrom(value).buildPartial(); } else { backfillStrategy_ = value; } @@ -5079,14 +4408,11 @@ public Builder mergeBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ public Builder clearBackfillNone() { if (backfillNoneBuilder_ == null) { @@ -5105,70 +4431,50 @@ public Builder clearBackfillNone() { return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder - getBackfillNoneBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder() { return getBackfillNoneFieldBuilder().getBuilder(); } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { return backfillNoneBuilder_.getMessageOrBuilder(); } else { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> getBackfillNoneFieldBuilder() { if (backfillNoneBuilder_ == null) { if (!(backfillStrategyCase_ == 102)) { - backfillStrategy_ = - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } - backfillNoneBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_, + backfillNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_, getParentForChildren(), isClean()); backfillStrategy_ = null; @@ -5179,31 +4485,23 @@ public Builder clearBackfillNone() { } private java.util.List errors_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> - errorsBuilder_; + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorsBuilder_; /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -5213,15 +4511,11 @@ public java.util.List getErrorsList( } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -5231,15 +4525,11 @@ public int getErrorsCount() { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -5249,17 +4539,14 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5273,15 +4560,11 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -5295,15 +4578,11 @@ public Builder setErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { @@ -5319,17 +4598,14 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5343,17 +4619,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -5364,15 +4637,11 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder buil return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -5386,21 +4655,18 @@ public Builder addErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -5408,15 +4674,11 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -5429,15 +4691,11 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -5450,50 +4708,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -5501,70 +4748,56 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5574,12 +4807,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream) private static final com.google.cloud.datastream.v1alpha1.Stream DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream(); } @@ -5588,27 +4821,27 @@ public static com.google.cloud.datastream.v1alpha1.Stream getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5623,4 +4856,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java similarity index 67% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java index 73a0efacf9d7..621c578156bd 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface StreamOrBuilder - extends +public interface StreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,31 +90,30 @@ public interface StreamOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
@@ -167,182 +121,134 @@ public interface StreamOrBuilder * map<string, string> labels = 4; */ /* nullable */ - java.lang.String getLabelsOrDefault( +java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow(java.lang.String key); + java.lang.String getLabelsOrThrow( + java.lang.String key); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConfig. */ com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig(); /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConfig. */ com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig(); /** - * - * *
    * Required. Destination connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The state. */ com.google.cloud.datastream.v1alpha1.Stream.State getState(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll(); /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -350,106 +256,78 @@ java.lang.String getLabelsOrDefault(
    *
    * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
    */
-  com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
-      getBackfillAllOrBuilder();
+  com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder();
 
   /**
-   *
-   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ boolean hasBackfillNone(); /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone(); /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder - getBackfillNoneOrBuilder(); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1alpha1.Error getErrors(int index); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ int getErrorsCount(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * Output only. Errors on the Stream.
    * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index); public com.google.cloud.datastream.v1alpha1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java similarity index 68% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java index 9b22365ace71..77f28a0846b9 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java @@ -1,70 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} */ -public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} + */ +public final class UpdateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -73,9 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -83,8 +63,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -93,9 +71,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -103,8 +79,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -113,8 +87,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -124,16 +97,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -141,50 +109,33 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -200,7 +151,6 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -209,15 +159,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -233,15 +182,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,7 +200,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +211,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -282,10 +232,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -298,23 +250,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,130 +296,125 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -485,16 +434,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -508,26 +455,23 @@ public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result = - new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result) { + private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.connectionProfile_ = - connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -538,51 +482,46 @@ private void buildPartial0( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other) { - if (other - == com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -620,32 +559,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -655,18 +593,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -675,17 +607,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -694,23 +622,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -719,8 +641,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -736,8 +657,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -746,10 +665,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -760,8 +679,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -770,14 +687,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -790,8 +706,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -800,8 +714,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -814,8 +727,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -824,8 +735,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -833,8 +743,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -843,21 +751,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -866,21 +770,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -888,61 +788,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -956,15 +836,11 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -978,23 +854,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && connectionProfile_ != null - && connectionProfile_ - != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + connectionProfile_ != null && + connectionProfile_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -1007,15 +877,11 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1028,66 +894,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null - ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() - : connectionProfile_; + return connectionProfile_ == null ? + com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; } } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( - getConnectionProfile(), getParentForChildren(), isClean()); + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + getConnectionProfile(), + getParentForChildren(), + isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1095,8 +943,6 @@ public Builder clearConnectionProfile() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1112,13 +958,13 @@ public Builder clearConnectionProfile() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1127,8 +973,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1144,14 +988,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1159,8 +1004,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1176,22 +1019,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1207,7 +1046,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1217,8 +1055,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1234,23 +1070,21 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,43 +1094,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1308,8 +1140,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java similarity index 75% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java index 3cf917345c1a..8162512cd199 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateConnectionProfileRequestOrBuilder - extends +public interface UpdateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java index 422411ac0e99..08f5fa35621f 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java @@ -1,69 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} */ -public final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} + */ +public final class UpdateStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.UpdateStreamRequest) UpdateStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateStreamRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -72,9 +55,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -82,8 +63,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -92,9 +71,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -102,8 +79,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -112,8 +87,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -123,16 +97,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -140,49 +109,33 @@ public boolean hasStream() { return stream_ != null; } /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream getStream() { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -198,7 +151,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -207,15 +159,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -231,15 +182,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,15 +202,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** - * - * *
    * Optional. Only validate the stream with the changes, without actually updating it.
    * The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -269,14 +218,11 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** - * - * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -285,7 +231,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -297,7 +242,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -323,19 +269,23 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -345,25 +295,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = - (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -386,137 +340,136 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.UpdateStreamRequest) com.google.cloud.datastream.v1alpha1.UpdateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +491,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override @@ -559,11 +512,8 @@ public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result = - new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result = new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -571,10 +521,14 @@ public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null + ? updateMask_ + : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null + ? stream_ + : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -591,39 +545,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateStreamRequ public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest)other); } else { super.mergeFrom(other); return this; @@ -631,8 +584,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -676,43 +628,41 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getUpdateMaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStreamFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -722,18 +672,12 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -742,17 +686,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -761,23 +701,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -786,8 +720,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -803,8 +736,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -813,10 +744,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -827,8 +758,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -837,14 +766,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + updateMask_ != null && + updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -857,8 +785,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -867,8 +793,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -881,8 +806,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -891,8 +814,7 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -900,8 +822,6 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -910,21 +830,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -933,21 +849,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -955,58 +867,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ public com.google.cloud.datastream.v1alpha1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } else { return streamBuilder_.getMessage(); } } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { @@ -1022,17 +915,14 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -1043,21 +933,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder bui return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && stream_ != null - && stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + stream_ != null && + stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1070,15 +956,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1091,15 +973,11 @@ public Builder clearStream() { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000002; @@ -1107,48 +985,36 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null - ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() - : stream_; + return stream_ == null ? + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; } } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - getStream(), getParentForChildren(), isClean()); + streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + getStream(), + getParentForChildren(), + isClean()); stream_ = null; } return streamBuilder_; @@ -1156,8 +1022,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1173,13 +1037,13 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1188,8 +1052,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1205,14 +1067,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1220,8 +1083,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1237,22 +1098,18 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1268,7 +1125,6 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1278,8 +1134,6 @@ public Builder clearRequestId() { return this; } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1295,14 +1149,12 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1310,17 +1162,14 @@ public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { return this; } - private boolean validateOnly_; + private boolean validateOnly_ ; /** - * - * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ @java.lang.Override @@ -1328,35 +1177,29 @@ public boolean getValidateOnly() { return validateOnly_; } /** - * - * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1366,16 +1209,13 @@ public Builder clearValidateOnly() { return this; } - private boolean force_; + private boolean force_ ; /** - * - * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ @java.lang.Override @@ -1383,33 +1223,27 @@ public boolean getForce() { return force_; } /** - * - * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearForce() { @@ -1418,9 +1252,9 @@ public Builder clearForce() { onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1430,12 +1264,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.UpdateStreamRequest) private static final com.google.cloud.datastream.v1alpha1.UpdateStreamRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(); } @@ -1444,27 +1278,27 @@ public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1479,4 +1313,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java similarity index 78% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java index 8129fb190971..84c1b730b39e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateStreamRequestOrBuilder - extends +public interface UpdateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,34 +108,28 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Only validate the stream with the changes, without actually updating it.
    * The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java similarity index 72% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java index d2d3caa20ec4..85d2af13f379 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} */ -public final class Validation extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} + */ +public final class Validation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Validation) ValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Validation.newBuilder() to construct. private Validation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Validation() { description_ = ""; status_ = 0; @@ -38,43 +24,39 @@ private Validation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Validation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Validation.class, - com.google.cloud.datastream.v1alpha1.Validation.Builder.class); + com.google.cloud.datastream.v1alpha1.Validation.class, com.google.cloud.datastream.v1alpha1.Validation.Builder.class); } /** - * - * *
    * Validation execution status.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.Validation.Status} */ - public enum Status implements com.google.protobuf.ProtocolMessageEnum { + public enum Status + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified status.
      * 
@@ -83,8 +65,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_UNSPECIFIED(0), /** - * - * *
      * Validation did not execute.
      * 
@@ -93,8 +73,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ NOT_EXECUTED(1), /** - * - * *
      * Validation failed.
      * 
@@ -103,8 +81,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(2), /** - * - * *
      * Validation passed.
      * 
@@ -116,8 +92,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified status.
      * 
@@ -126,8 +100,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Validation did not execute.
      * 
@@ -136,8 +108,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_EXECUTED_VALUE = 1; /** - * - * *
      * Validation failed.
      * 
@@ -146,8 +116,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 2; /** - * - * *
      * Validation passed.
      * 
@@ -156,6 +124,7 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PASSED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -180,51 +149,50 @@ public static Status valueOf(int value) { */ public static Status forNumber(int value) { switch (value) { - case 0: - return STATUS_UNSPECIFIED; - case 1: - return NOT_EXECUTED; - case 2: - return FAILED; - case 3: - return PASSED; - default: - return null; + case 0: return STATUS_UNSPECIFIED; + case 1: return NOT_EXECUTED; + case 2: return FAILED; + case 3: return PASSED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1alpha1.Validation.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); - public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -242,18 +210,14 @@ private Status(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The description. */ @java.lang.Override @@ -262,29 +226,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -295,47 +259,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATUS_FIELD_NUMBER = 2; private int status_ = 0; /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The status. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { - com.google.cloud.datastream.v1alpha1.Validation.Status result = - com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); - return result == null - ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { + com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); + return result == null ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List message_; /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -347,8 +297,6 @@ public java.util.List ge return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -356,13 +304,11 @@ public java.util.List ge * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessageOrBuilderList() { return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -374,8 +320,6 @@ public int getMessageCount() { return message_.size(); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -387,8 +331,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind return message_.get(index); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -402,18 +344,14 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } public static final int CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The code. */ @java.lang.Override @@ -422,29 +360,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -453,7 +391,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -465,12 +402,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } - if (status_ - != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { + if (status_ != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < message_.size(); i++) { @@ -491,12 +428,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } - if (status_ - != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + if (status_ != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); } for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, message_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, message_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -509,18 +447,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Validation)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Validation other = - (com.google.cloud.datastream.v1alpha1.Validation) obj; + com.google.cloud.datastream.v1alpha1.Validation other = (com.google.cloud.datastream.v1alpha1.Validation) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (status_ != other.status_) return false; - if (!getMessageList().equals(other.getMessageList())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!getMessageList() + .equals(other.getMessageList())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -547,128 +487,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Validation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Validation) com.google.cloud.datastream.v1alpha1.ValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Validation.class, - com.google.cloud.datastream.v1alpha1.Validation.Builder.class); + com.google.cloud.datastream.v1alpha1.Validation.class, com.google.cloud.datastream.v1alpha1.Validation.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Validation.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -687,9 +625,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override @@ -708,18 +646,14 @@ public com.google.cloud.datastream.v1alpha1.Validation build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation buildPartial() { - com.google.cloud.datastream.v1alpha1.Validation result = - new com.google.cloud.datastream.v1alpha1.Validation(this); + com.google.cloud.datastream.v1alpha1.Validation result = new com.google.cloud.datastream.v1alpha1.Validation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.Validation result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.Validation result) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { message_ = java.util.Collections.unmodifiableList(message_); @@ -748,39 +682,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Validation resul public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Validation) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Validation) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Validation)other); } else { super.mergeFrom(other); return this; @@ -788,8 +721,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) { - if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000001; @@ -816,10 +748,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000004); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMessageFieldBuilder() - : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageFieldBuilder() : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -856,45 +787,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - status_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.cloud.datastream.v1alpha1.ValidationMessage m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), - extensionRegistry); - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(m); - } else { - messageBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.cloud.datastream.v1alpha1.ValidationMessage m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), + extensionRegistry); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(m); + } else { + messageBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -904,25 +830,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object description_ = ""; /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -931,21 +854,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -953,35 +875,28 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return This builder for chaining. */ public Builder clearDescription() { @@ -991,21 +906,17 @@ public Builder clearDescription() { return this; } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -1015,29 +926,22 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int status_ = 0; /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ @@ -1048,33 +952,24 @@ public Builder setStatusValue(int value) { return this; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The status. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { - com.google.cloud.datastream.v1alpha1.Validation.Status result = - com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); - return result == null - ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); + return result == null ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED : result; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @param value The status to set. * @return This builder for chaining. */ @@ -1088,14 +983,11 @@ public Builder setStatus(com.google.cloud.datastream.v1alpha1.Validation.Status return this; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return This builder for chaining. */ public Builder clearStatus() { @@ -1106,26 +998,18 @@ public Builder clearStatus() { } private java.util.List message_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - message_ = - new java.util.ArrayList( - message_); + message_ = new java.util.ArrayList(message_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> - messageBuilder_; + com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> messageBuilder_; /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1140,8 +1024,6 @@ public java.util.List ge } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1156,8 +1038,6 @@ public int getMessageCount() { } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1172,8 +1052,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1195,8 +1073,6 @@ public Builder setMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1215,8 +1091,6 @@ public Builder setMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1237,8 +1111,6 @@ public Builder addMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1260,8 +1132,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1280,8 +1150,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1300,8 +1168,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1309,11 +1175,11 @@ public Builder addMessage( * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ public Builder addAllMessage( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (messageBuilder_ == null) { ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, message_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, message_); onChanged(); } else { messageBuilder_.addAllMessages(values); @@ -1321,8 +1187,6 @@ public Builder addAllMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1340,8 +1204,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1359,8 +1221,6 @@ public Builder removeMessage(int index) { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1372,8 +1232,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage return getMessageFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1383,22 +1241,19 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { - return message_.get(index); - } else { + return message_.get(index); } else { return messageBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageOrBuilderList() { + public java.util.List + getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { @@ -1406,8 +1261,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1415,12 +1268,10 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1429,36 +1280,30 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder( int index) { - return getMessageFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageBuilderList() { + public java.util.List + getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> + com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder>( - message_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder>( + message_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); message_ = null; } return messageBuilder_; @@ -1466,20 +1311,18 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage private java.lang.Object code_ = ""; /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1488,21 +1331,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1510,35 +1352,28 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1548,30 +1383,26 @@ public Builder clearCode() { return this; } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1581,12 +1412,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Validation) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Validation) private static final com.google.cloud.datastream.v1alpha1.Validation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Validation(); } @@ -1595,27 +1426,27 @@ public static com.google.cloud.datastream.v1alpha1.Validation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Validation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1630,4 +1461,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java similarity index 64% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java index e390265e53c7..9b7a992e2b01 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represent user-facing validation result message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationMessage} */ -public final class ValidationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ValidationMessage) ValidationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidationMessage.newBuilder() to construct. private ValidationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidationMessage() { message_ = ""; level_ = 0; @@ -45,54 +27,51 @@ private ValidationMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationMessage.class, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationMessage.class, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); } /** - * - * *
    * Validation message level.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.ValidationMessage.Level} */ - public enum Level implements com.google.protobuf.ProtocolMessageEnum { + public enum Level + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unspecified level.
      * 
@@ -101,8 +80,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ LEVEL_UNSPECIFIED(0), /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -111,8 +88,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(1), /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -124,8 +99,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified level.
      * 
@@ -134,8 +107,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -144,8 +115,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 1; /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -154,6 +123,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -178,51 +148,49 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return WARNING; - case 2: - return ERROR; - default: - return null; + case 0: return LEVEL_UNSPECIFIED; + case 1: return WARNING; + case 2: return ERROR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -240,18 +208,14 @@ private Level(int value) { } public static final int MESSAGE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The message. */ @java.lang.Override @@ -260,29 +224,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -293,69 +257,56 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_ = 0; /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The level. */ - @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); - return result == null - ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); + return result == null ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED : result; } public static final int METADATA_FIELD_NUMBER = 3; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - @SuppressWarnings("serial") - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -363,21 +314,20 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -389,8 +339,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -398,19 +346,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -418,11 +364,11 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -430,18 +376,14 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } public static final int CODE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The code. */ @java.lang.Override @@ -450,29 +392,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -481,7 +423,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -493,17 +434,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (level_ - != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED - .getNumber()) { + if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, level_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -519,20 +463,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (level_ - != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); + if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, level_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -545,18 +488,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ValidationMessage)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ValidationMessage other = - (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; + com.google.cloud.datastream.v1alpha1.ValidationMessage other = (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (level_ != other.level_) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -584,156 +529,151 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ValidationMessage prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ValidationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Represent user-facing validation result message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationMessage} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ValidationMessage) com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: - throw new RuntimeException("Invalid map field number: " + number); + throw new RuntimeException( + "Invalid map field number: " + number); } } - @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationMessage.class, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationMessage.class, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ValidationMessage.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -746,9 +686,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @java.lang.Override @@ -767,11 +707,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage buildPartial() { - com.google.cloud.datastream.v1alpha1.ValidationMessage result = - new com.google.cloud.datastream.v1alpha1.ValidationMessage(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.datastream.v1alpha1.ValidationMessage result = new com.google.cloud.datastream.v1alpha1.ValidationMessage(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -797,39 +734,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ValidationMessag public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ValidationMessage) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationMessage) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationMessage)other); } else { super.mergeFrom(other); return this; @@ -837,8 +773,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; @@ -847,7 +782,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); bitField0_ |= 0x00000004; if (!other.getCode().isEmpty()) { code_ = other.code_; @@ -880,43 +816,36 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - level_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableMetadata() - .getMutableMap() - .put(metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + level_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -926,25 +855,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object message_ = ""; /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -953,21 +879,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -975,35 +900,28 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1013,21 +931,17 @@ public Builder clearMessage() { return this; } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; @@ -1037,29 +951,22 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private int level_ = 0; /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -1070,33 +977,24 @@ public Builder setLevelValue(int value) { return this; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The level. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); - return result == null - ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED - : result; + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); + return result == null ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED : result; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @param value The level to set. * @return This builder for chaining. */ @@ -1110,14 +1008,11 @@ public Builder setLevel(com.google.cloud.datastream.v1alpha1.ValidationMessage.L return this; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return This builder for chaining. */ public Builder clearLevel() { @@ -1127,20 +1022,21 @@ public Builder clearLevel() { return this; } - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField internalGetMutableMetadata() { if (metadata_ == null) { - metadata_ = - com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1149,13 +1045,10 @@ private com.google.protobuf.MapField interna onChanged(); return metadata_; } - public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1163,21 +1056,20 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetMetadata().getMap().containsKey(key); } - /** Use {@link #getMetadataMap()} instead. */ + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1189,8 +1081,6 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1198,19 +1088,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ java.lang.String getMetadataOrDefault( + public /* nullable */ +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1218,95 +1106,91 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } - public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMetadata().getMutableMap().clear(); + internalGetMutableMetadata().getMutableMap() + .clear(); return this; } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder removeMetadata(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableMetadata().getMutableMap().remove(key); + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated - public java.util.Map getMutableMetadata() { + public java.util.Map + getMutableMetadata() { bitField0_ |= 0x00000004; return internalGetMutableMetadata().getMutableMap(); } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putMetadata(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableMetadata().getMutableMap().put(key, value); + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); bitField0_ |= 0x00000004; return this; } /** - * - * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putAllMetadata(java.util.Map values) { - internalGetMutableMetadata().getMutableMap().putAll(values); + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object code_ = ""; /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1315,21 +1199,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1337,35 +1220,28 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return This builder for chaining. */ public Builder clearCode() { @@ -1375,30 +1251,26 @@ public Builder clearCode() { return this; } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1408,12 +1280,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ValidationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ValidationMessage) private static final com.google.cloud.datastream.v1alpha1.ValidationMessage DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ValidationMessage(); } @@ -1422,27 +1294,27 @@ public static com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1457,4 +1329,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java similarity index 65% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java index 68bfb2252af4..5c3535e27627 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java @@ -1,81 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationMessageOrBuilder - extends +public interface ValidationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The level. */ com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel(); /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -84,31 +55,30 @@ public interface ValidationMessageOrBuilder */ int getMetadataCount(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -116,43 +86,37 @@ public interface ValidationMessageOrBuilder * map<string, string> metadata = 3; */ /* nullable */ - java.lang.String getMetadataOrDefault( +java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ - java.lang.String defaultValue); +java.lang.String defaultValue); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.lang.String getMetadataOrThrow(java.lang.String key); + java.lang.String getMetadataOrThrow( + java.lang.String key); /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java index 8dfef25ef52f..3afd6fa66a95 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationOrBuilder - extends +public interface ValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Validation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The status. */ com.google.cloud.datastream.v1alpha1.Validation.Status getStatus(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List getMessageList(); + java.util.List + getMessageList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -94,8 +64,6 @@ public interface ValidationOrBuilder */ com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int index); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -104,49 +72,41 @@ public interface ValidationOrBuilder */ int getMessageCount(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List + java.util.List getMessageOrBuilderList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( + int index); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java similarity index 73% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java index a7454c61cbf0..e5ffa97ff9d5 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java @@ -1,79 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Contains the current validation results.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationResult} */ -public final class ValidationResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidationResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ValidationResult) ValidationResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidationResult.newBuilder() to construct. private ValidationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidationResult() { validations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ValidationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationResult.class, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationResult.class, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); } public static final int VALIDATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List validations_; /** - * - * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -86,8 +64,6 @@ public java.util.List getValida
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -96,13 +72,11 @@ public java.util.List getValida
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getValidationsOrBuilderList() {
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -115,8 +89,6 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -129,8 +101,6 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
     return validations_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -145,7 +115,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -157,7 +126,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -171,7 +141,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < validations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, validations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -181,15 +152,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ValidationResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.ValidationResult other =
-        (com.google.cloud.datastream.v1alpha1.ValidationResult) obj;
+    com.google.cloud.datastream.v1alpha1.ValidationResult other = (com.google.cloud.datastream.v1alpha1.ValidationResult) obj;
 
-    if (!getValidationsList().equals(other.getValidationsList())) return false;
+    if (!getValidationsList()
+        .equals(other.getValidationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -211,136 +182,129 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.datastream.v1alpha1.ValidationResult prototype) {
+  public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ValidationResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Contains the current validation results.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ValidationResult) com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationResult.class, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationResult.class, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ValidationResult.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -356,9 +320,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override @@ -377,18 +341,14 @@ public com.google.cloud.datastream.v1alpha1.ValidationResult build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationResult buildPartial() { - com.google.cloud.datastream.v1alpha1.ValidationResult result = - new com.google.cloud.datastream.v1alpha1.ValidationResult(this); + com.google.cloud.datastream.v1alpha1.ValidationResult result = new com.google.cloud.datastream.v1alpha1.ValidationResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.datastream.v1alpha1.ValidationResult result) { + private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ValidationResult result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -408,39 +368,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ValidationResult public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ValidationResult) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationResult) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationResult)other); } else { super.mergeFrom(other); return this; @@ -448,8 +407,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) return this; if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { @@ -468,10 +426,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult o validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000001); - validationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValidationsFieldBuilder() - : null; + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidationsFieldBuilder() : null; } else { validationsBuilder_.addAllMessages(other.validations_); } @@ -503,27 +460,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.datastream.v1alpha1.Validation m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Validation.parser(), - extensionRegistry); - if (validationsBuilder_ == null) { - ensureValidationsIsMutable(); - validations_.add(m); - } else { - validationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.datastream.v1alpha1.Validation m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Validation.parser(), + extensionRegistry); + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(m); + } else { + validationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -533,29 +488,21 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List validations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - validations_ = - new java.util.ArrayList(validations_); + validations_ = new java.util.ArrayList(validations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Validation, - com.google.cloud.datastream.v1alpha1.Validation.Builder, - com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> - validationsBuilder_; + com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> validationsBuilder_; /** - * - * *
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -571,8 +518,6 @@ public java.util.List getValida
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -588,8 +533,6 @@ public int getValidationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -605,8 +548,6 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -629,8 +570,6 @@ public Builder setValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -650,8 +589,6 @@ public Builder setValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -673,8 +610,6 @@ public Builder addValidations(com.google.cloud.datastream.v1alpha1.Validation va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -697,8 +632,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -718,8 +651,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -739,8 +670,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -752,7 +681,8 @@ public Builder addAllValidations(
         java.lang.Iterable values) {
       if (validationsBuilder_ == null) {
         ensureValidationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, validations_);
         onChanged();
       } else {
         validationsBuilder_.addAllMessages(values);
@@ -760,8 +690,6 @@ public Builder addAllValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -780,8 +708,6 @@ public Builder clearValidations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -800,8 +726,6 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -814,8 +738,6 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
       return getValidationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -826,14 +748,11 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
     public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
         int index) {
       if (validationsBuilder_ == null) {
-        return validations_.get(index);
-      } else {
+        return validations_.get(index);  } else {
         return validationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -841,8 +760,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
      *
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
-    public java.util.List
-        getValidationsOrBuilderList() {
+    public java.util.List 
+         getValidationsOrBuilderList() {
       if (validationsBuilder_ != null) {
         return validationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -850,8 +769,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -860,12 +777,10 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder() {
-      return getValidationsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -875,12 +790,10 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder(
         int index) {
-      return getValidationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -888,30 +801,27 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      *
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
-    public java.util.List
-        getValidationsBuilderList() {
+    public java.util.List 
+         getValidationsBuilderList() {
       return getValidationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Validation,
-            com.google.cloud.datastream.v1alpha1.Validation.Builder,
-            com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>
+        com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> 
         getValidationsFieldBuilder() {
       if (validationsBuilder_ == null) {
-        validationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.Validation,
-                com.google.cloud.datastream.v1alpha1.Validation.Builder,
-                com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
-                validations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
+                validations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         validations_ = null;
       }
       return validationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -921,12 +831,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ValidationResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ValidationResult)
   private static final com.google.cloud.datastream.v1alpha1.ValidationResult DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ValidationResult();
   }
@@ -935,27 +845,27 @@ public static com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public ValidationResult parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public ValidationResult parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -970,4 +880,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
similarity index 69%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
index b43f8e41655e..383c1067dd8a 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface ValidationResultOrBuilder
-    extends
+public interface ValidationResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -33,10 +15,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List getValidationsList();
+  java.util.List 
+      getValidationsList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -46,8 +27,6 @@ public interface ValidationResultOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.Validation getValidations(int index);
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -57,8 +36,6 @@ public interface ValidationResultOrBuilder
    */
   int getValidationsCount();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -66,11 +43,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List
+  java.util.List 
       getValidationsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -78,5 +53,6 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
+      int index);
 }
diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
similarity index 68%
rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
index 8576f0ffb8aa..247c096faa85 100644
--- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
+++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
- *
- *
  * 
  * The VPC Peering configuration is used to create VPC peering between
  * Datastream and the consumer's VPC.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
  */
-public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VpcPeeringConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
     VpcPeeringConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VpcPeeringConfig.newBuilder() to construct.
   private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VpcPeeringConfig() {
     vpcName_ = "";
     subnet_ = "";
@@ -45,43 +27,38 @@ private VpcPeeringConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new VpcPeeringConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-        .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class,
-            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
+            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
   }
 
   public static final int VPC_NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object vpcName_ = "";
   /**
-   *
-   *
    * 
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vpcName. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getVpcName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcName_ = s; return s; } } /** - * - * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vpcName. */ @java.lang.Override - public com.google.protobuf.ByteString getVpcNameBytes() { + public com.google.protobuf.ByteString + getVpcNameBytes() { java.lang.Object ref = vpcName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcName_ = b; return b; } else { @@ -121,18 +98,14 @@ public com.google.protobuf.ByteString getVpcNameBytes() { } public static final int SUBNET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object subnet_ = ""; /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ @java.lang.Override @@ -141,29 +114,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -172,7 +145,6 @@ public com.google.protobuf.ByteString getSubnetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,7 +156,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpcName_); } @@ -214,16 +187,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.VpcPeeringConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = - (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; - if (!getVpcName().equals(other.getVpcName())) return false; - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getVpcName() + .equals(other.getVpcName())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,104 +219,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The VPC Peering configuration is used to create VPC peering between
    * Datastream and the consumer's VPC.
@@ -350,32 +316,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
       com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class,
-              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
+              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -386,9 +353,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
@@ -407,11 +374,8 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig buildPartial() {
-      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig result =
-          new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(this);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig result = new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(this);
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -430,39 +394,38 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.VpcPeeringConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -470,8 +433,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other) {
-      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) return this;
       if (!other.getVpcName().isEmpty()) {
         vpcName_ = other.vpcName_;
         bitField0_ |= 0x00000001;
@@ -508,25 +470,22 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                vpcName_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                subnet_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              vpcName_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              subnet_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -536,25 +495,22 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object vpcName_ = "";
     /**
-     *
-     *
      * 
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vpcName. */ public java.lang.String getVpcName() { java.lang.Object ref = vpcName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcName_ = s; return s; @@ -563,21 +519,20 @@ public java.lang.String getVpcName() { } } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vpcName. */ - public com.google.protobuf.ByteString getVpcNameBytes() { + public com.google.protobuf.ByteString + getVpcNameBytes() { java.lang.Object ref = vpcName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcName_ = b; return b; } else { @@ -585,35 +540,28 @@ public com.google.protobuf.ByteString getVpcNameBytes() { } } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vpcName to set. * @return This builder for chaining. */ - public Builder setVpcName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } vpcName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearVpcName() { @@ -623,21 +571,17 @@ public Builder clearVpcName() { return this; } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for vpcName to set. * @return This builder for chaining. */ - public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setVpcNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); vpcName_ = value; bitField0_ |= 0x00000001; @@ -647,20 +591,18 @@ public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnet_ = ""; /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -669,21 +611,20 @@ public java.lang.String getSubnet() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -691,35 +632,28 @@ public com.google.protobuf.ByteString getSubnetBytes() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnet( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearSubnet() { @@ -729,30 +663,26 @@ public Builder clearSubnet() { return this; } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setSubnetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -762,12 +692,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.VpcPeeringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.VpcPeeringConfig) private static final com.google.cloud.datastream.v1alpha1.VpcPeeringConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(); } @@ -776,27 +706,27 @@ public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -811,4 +741,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java similarity index 60% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java index 70db0c12f3ca..88f4437562d6 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java +++ b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface VpcPeeringConfigOrBuilder - extends +public interface VpcPeeringConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.VpcPeeringConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vpcName. */ java.lang.String getVpcName(); /** - * - * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vpcName. */ - com.google.protobuf.ByteString getVpcNameBytes(); + com.google.protobuf.ByteString + getVpcNameBytes(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ java.lang.String getSubnet(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - com.google.protobuf.ByteString getSubnetBytes(); + com.google.protobuf.ByteString + getSubnetBytes(); } diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto similarity index 100% rename from java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto rename to owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java From fbaa284b58f03bf5e645db01811db70d9a9b4e71 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Sun, 7 May 2023 10:12:49 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-datastream/README.md | 4 +- .../cloud/datastream/v1/DatastreamClient.java | 0 .../datastream/v1/DatastreamSettings.java | 1 - .../cloud/datastream/v1/gapic_metadata.json | 0 .../cloud/datastream/v1/package-info.java | 0 .../datastream/v1/stub/DatastreamStub.java | 0 .../v1/stub/DatastreamStubSettings.java | 0 .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1/stub/GrpcDatastreamStub.java | 1 - .../HttpJsonDatastreamCallableFactory.java | 0 .../v1/stub/HttpJsonDatastreamStub.java | 1 - .../datastream/v1alpha1/DatastreamClient.java | 0 .../v1alpha1/DatastreamSettings.java | 1 - .../datastream/v1alpha1/gapic_metadata.json | 0 .../datastream/v1alpha1/package-info.java | 0 .../v1alpha1/stub/DatastreamStub.java | 0 .../v1alpha1/stub/DatastreamStubSettings.java | 0 .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1alpha1/stub/GrpcDatastreamStub.java | 1 - .../HttpJsonDatastreamCallableFactory.java | 0 .../v1alpha1/stub/HttpJsonDatastreamStub.java | 1 - .../v1/DatastreamClientHttpJsonTest.java | 0 .../datastream/v1/DatastreamClientTest.java | 0 .../cloud/datastream/v1/MockDatastream.java | 0 .../datastream/v1/MockDatastreamImpl.java | 0 .../cloud/datastream/v1/MockIAMPolicy.java | 0 .../datastream/v1/MockIAMPolicyImpl.java | 0 .../cloud/datastream/v1/MockLocations.java | 0 .../datastream/v1/MockLocationsImpl.java | 0 .../DatastreamClientHttpJsonTest.java | 0 .../v1alpha1/DatastreamClientTest.java | 0 .../datastream/v1alpha1/MockDatastream.java | 0 .../v1alpha1/MockDatastreamImpl.java | 0 .../cloud/datastream/v1/DatastreamGrpc.java | 3234 +++++++++++++++++ .../datastream/v1alpha1/DatastreamGrpc.java | 2782 ++++++++++++++ .../cloud/datastream/v1/AvroFileFormat.java | 244 +- .../v1/AvroFileFormatOrBuilder.java | 24 + .../cloud/datastream/v1/BackfillJob.java | 1060 ++++-- .../datastream/v1/BackfillJobOrBuilder.java | 109 +- .../v1/BigQueryDestinationConfig.java | 2456 ++++++++----- .../BigQueryDestinationConfigOrBuilder.java | 81 +- .../cloud/datastream/v1/BigQueryProfile.java | 244 +- .../v1/BigQueryProfileOrBuilder.java | 24 + .../datastream/v1/ConnectionProfile.java | 1909 ++++++---- .../datastream/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 191 +- .../v1/CreateConnectionProfileRequest.java | 737 ++-- ...eateConnectionProfileRequestOrBuilder.java | 79 +- .../v1/CreatePrivateConnectionRequest.java | 699 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 76 +- .../datastream/v1/CreateRouteRequest.java | 616 ++-- .../v1/CreateRouteRequestOrBuilder.java | 70 +- .../datastream/v1/CreateStreamRequest.java | 705 ++-- .../v1/CreateStreamRequestOrBuilder.java | 76 +- .../cloud/datastream/v1/DatastreamProto.java | 813 +++++ .../v1/DatastreamResourcesProto.java | 1187 ++++++ .../v1/DeleteConnectionProfileRequest.java | 441 ++- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../v1/DeletePrivateConnectionRequest.java | 477 ++- ...letePrivateConnectionRequestOrBuilder.java | 47 +- .../datastream/v1/DeleteRouteRequest.java | 425 ++- .../v1/DeleteRouteRequestOrBuilder.java | 44 +- .../datastream/v1/DeleteStreamRequest.java | 425 ++- .../v1/DeleteStreamRequestOrBuilder.java | 44 +- .../datastream/v1/DestinationConfig.java | 684 ++-- .../v1/DestinationConfigOrBuilder.java | 66 +- .../v1/DiscoverConnectionProfileRequest.java | 1073 ++++-- ...overConnectionProfileRequestOrBuilder.java | 97 +- .../v1/DiscoverConnectionProfileResponse.java | 605 +-- ...verConnectionProfileResponseOrBuilder.java | 45 +- .../com/google/cloud/datastream/v1/Error.java | 789 ++-- .../cloud/datastream/v1/ErrorOrBuilder.java | 83 +- .../datastream/v1/FetchStaticIpsRequest.java | 458 ++- .../v1/FetchStaticIpsRequestOrBuilder.java | 47 +- .../datastream/v1/FetchStaticIpsResponse.java | 432 ++- .../v1/FetchStaticIpsResponseOrBuilder.java | 45 +- .../v1/ForwardSshTunnelConnectivity.java | 658 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../datastream/v1/GcsDestinationConfig.java | 682 ++-- .../v1/GcsDestinationConfigOrBuilder.java | 54 +- .../cloud/datastream/v1/GcsProfile.java | 390 +- .../datastream/v1/GcsProfileOrBuilder.java | 36 +- .../v1/GetConnectionProfileRequest.java | 356 +- .../GetConnectionProfileRequestOrBuilder.java | 54 + .../v1/GetPrivateConnectionRequest.java | 356 +- .../GetPrivateConnectionRequestOrBuilder.java | 54 + .../cloud/datastream/v1/GetRouteRequest.java | 346 +- .../v1/GetRouteRequestOrBuilder.java | 54 + .../datastream/v1/GetStreamObjectRequest.java | 356 +- .../v1/GetStreamObjectRequestOrBuilder.java | 54 + .../cloud/datastream/v1/GetStreamRequest.java | 349 +- .../v1/GetStreamRequestOrBuilder.java | 54 + .../cloud/datastream/v1/JsonFileFormat.java | 534 ++- .../v1/JsonFileFormatOrBuilder.java | 36 +- .../v1/ListConnectionProfilesRequest.java | 617 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../v1/ListConnectionProfilesResponse.java | 589 +-- ...stConnectionProfilesResponseOrBuilder.java | 60 +- .../v1/ListPrivateConnectionsRequest.java | 617 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 65 +- .../v1/ListPrivateConnectionsResponse.java | 589 +-- ...stPrivateConnectionsResponseOrBuilder.java | 60 +- .../datastream/v1/ListRoutesRequest.java | 604 +-- .../v1/ListRoutesRequestOrBuilder.java | 65 +- .../datastream/v1/ListRoutesResponse.java | 586 +-- .../v1/ListRoutesResponseOrBuilder.java | 64 +- .../v1/ListStreamObjectsRequest.java | 461 ++- .../v1/ListStreamObjectsRequestOrBuilder.java | 47 +- .../v1/ListStreamObjectsResponse.java | 481 ++- .../ListStreamObjectsResponseOrBuilder.java | 45 +- .../datastream/v1/ListStreamsRequest.java | 604 +-- .../v1/ListStreamsRequestOrBuilder.java | 65 +- .../datastream/v1/ListStreamsResponse.java | 586 +-- .../v1/ListStreamsResponseOrBuilder.java | 63 +- .../cloud/datastream/v1/LocationName.java | 0 .../v1/LookupStreamObjectRequest.java | 519 ++- .../LookupStreamObjectRequestOrBuilder.java | 96 + .../cloud/datastream/v1/MysqlColumn.java | 602 +-- .../datastream/v1/MysqlColumnOrBuilder.java | 57 +- .../cloud/datastream/v1/MysqlDatabase.java | 476 ++- .../datastream/v1/MysqlDatabaseOrBuilder.java | 45 +- .../cloud/datastream/v1/MysqlProfile.java | 617 ++-- .../datastream/v1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1/MysqlRdbms.java | 381 +- .../datastream/v1/MysqlRdbmsOrBuilder.java | 36 +- .../datastream/v1/MysqlSourceConfig.java | 513 ++- .../v1/MysqlSourceConfigOrBuilder.java | 40 +- .../cloud/datastream/v1/MysqlSslConfig.java | 572 +-- .../v1/MysqlSslConfigOrBuilder.java | 54 +- .../cloud/datastream/v1/MysqlTable.java | 476 ++- .../datastream/v1/MysqlTableOrBuilder.java | 45 +- .../datastream/v1/OperationMetadata.java | 977 +++-- .../v1/OperationMetadataOrBuilder.java | 111 +- .../cloud/datastream/v1/OracleColumn.java | 668 ++-- .../datastream/v1/OracleColumnOrBuilder.java | 63 +- .../cloud/datastream/v1/OracleProfile.java | 792 ++-- .../datastream/v1/OracleProfileOrBuilder.java | 87 +- .../cloud/datastream/v1/OracleRdbms.java | 396 +- .../datastream/v1/OracleRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/OracleSchema.java | 476 ++- .../datastream/v1/OracleSchemaOrBuilder.java | 45 +- .../datastream/v1/OracleSourceConfig.java | 1496 +++++--- .../v1/OracleSourceConfigOrBuilder.java | 86 +- .../cloud/datastream/v1/OracleTable.java | 468 ++- .../datastream/v1/OracleTableOrBuilder.java | 45 +- .../cloud/datastream/v1/PostgresqlColumn.java | 599 +-- .../v1/PostgresqlColumnOrBuilder.java | 54 +- .../datastream/v1/PostgresqlProfile.java | 576 +-- .../v1/PostgresqlProfileOrBuilder.java | 57 +- .../cloud/datastream/v1/PostgresqlRdbms.java | 390 +- .../v1/PostgresqlRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/PostgresqlSchema.java | 463 ++- .../v1/PostgresqlSchemaOrBuilder.java | 45 +- .../datastream/v1/PostgresqlSourceConfig.java | 656 ++-- .../v1/PostgresqlSourceConfigOrBuilder.java | 63 +- .../cloud/datastream/v1/PostgresqlTable.java | 462 ++- .../v1/PostgresqlTableOrBuilder.java | 45 +- .../datastream/v1/PrivateConnection.java | 1318 ++++--- .../datastream/v1/PrivateConnectionName.java | 0 .../v1/PrivateConnectionOrBuilder.java | 139 +- .../datastream/v1/PrivateConnectivity.java | 353 +- .../v1/PrivateConnectivityOrBuilder.java | 56 + .../com/google/cloud/datastream/v1/Route.java | 1009 +++-- .../google/cloud/datastream/v1/RouteName.java | 0 .../cloud/datastream/v1/RouteOrBuilder.java | 112 +- .../cloud/datastream/v1/SourceConfig.java | 744 ++-- .../datastream/v1/SourceConfigOrBuilder.java | 65 +- .../datastream/v1/SourceObjectIdentifier.java | 2442 ++++++++----- .../v1/SourceObjectIdentifierOrBuilder.java | 156 + .../v1/StartBackfillJobRequest.java | 356 +- .../v1/StartBackfillJobRequestOrBuilder.java | 56 + .../v1/StartBackfillJobResponse.java | 356 +- .../v1/StartBackfillJobResponseOrBuilder.java | 26 +- .../v1/StaticServiceIpConnectivity.java | 254 +- .../StaticServiceIpConnectivityOrBuilder.java | 24 + .../datastream/v1/StopBackfillJobRequest.java | 356 +- .../v1/StopBackfillJobRequestOrBuilder.java | 56 + .../v1/StopBackfillJobResponse.java | 356 +- .../v1/StopBackfillJobResponseOrBuilder.java | 26 +- .../google/cloud/datastream/v1/Stream.java | 2848 +++++++++------ .../cloud/datastream/v1/StreamName.java | 0 .../cloud/datastream/v1/StreamObject.java | 1101 ++++-- .../cloud/datastream/v1/StreamObjectName.java | 0 .../datastream/v1/StreamObjectOrBuilder.java | 125 +- .../cloud/datastream/v1/StreamOrBuilder.java | 225 +- .../v1/UpdateConnectionProfileRequest.java | 690 ++-- ...dateConnectionProfileRequestOrBuilder.java | 70 +- .../datastream/v1/UpdateStreamRequest.java | 658 ++-- .../v1/UpdateStreamRequestOrBuilder.java | 67 +- .../cloud/datastream/v1/Validation.java | 667 ++-- .../datastream/v1/ValidationMessage.java | 775 ++-- .../v1/ValidationMessageOrBuilder.java | 72 +- .../datastream/v1/ValidationOrBuilder.java | 60 +- .../cloud/datastream/v1/ValidationResult.java | 410 ++- .../v1/ValidationResultOrBuilder.java | 36 +- .../cloud/datastream/v1/VpcPeeringConfig.java | 421 ++- .../v1/VpcPeeringConfigOrBuilder.java | 44 +- .../cloud/datastream/v1/datastream.proto | 0 .../datastream/v1/datastream_resources.proto | 0 .../datastream/v1alpha1/AvroFileFormat.java | 251 +- .../v1alpha1/AvroFileFormatOrBuilder.java | 24 + .../CloudDatastreamResourcesProto.java | 832 +++++ .../v1alpha1/CloudDatastreamServiceProto.java | 699 ++++ .../v1alpha1/ConnectionProfile.java | 1914 ++++++---- .../v1alpha1/ConnectionProfileName.java | 0 .../v1alpha1/ConnectionProfileOrBuilder.java | 192 +- .../CreateConnectionProfileRequest.java | 704 ++-- ...eateConnectionProfileRequestOrBuilder.java | 73 +- .../CreatePrivateConnectionRequest.java | 704 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 73 +- .../v1alpha1/CreateRouteRequest.java | 645 ++-- .../v1alpha1/CreateRouteRequestOrBuilder.java | 73 +- .../v1alpha1/CreateStreamRequest.java | 723 ++-- .../CreateStreamRequestOrBuilder.java | 79 +- .../DeleteConnectionProfileRequest.java | 470 ++- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../DeletePrivateConnectionRequest.java | 506 +-- ...letePrivateConnectionRequestOrBuilder.java | 47 +- .../v1alpha1/DeleteRouteRequest.java | 428 ++- .../v1alpha1/DeleteRouteRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteStreamRequest.java | 432 ++- .../DeleteStreamRequestOrBuilder.java | 44 +- .../v1alpha1/DestinationConfig.java | 542 +-- .../v1alpha1/DestinationConfigOrBuilder.java | 50 +- .../DiscoverConnectionProfileRequest.java | 1005 +++-- ...overConnectionProfileRequestOrBuilder.java | 92 +- .../DiscoverConnectionProfileResponse.java | 531 +-- ...verConnectionProfileResponseOrBuilder.java | 37 +- .../cloud/datastream/v1alpha1/Error.java | 796 ++-- .../datastream/v1alpha1/ErrorOrBuilder.java | 83 +- .../v1alpha1/FetchErrorsRequest.java | 328 +- .../v1alpha1/FetchErrorsRequestOrBuilder.java | 27 +- .../v1alpha1/FetchErrorsResponse.java | 417 ++- .../FetchErrorsResponseOrBuilder.java | 36 +- .../v1alpha1/FetchStaticIpsRequest.java | 461 ++- .../FetchStaticIpsRequestOrBuilder.java | 47 +- .../v1alpha1/FetchStaticIpsResponse.java | 432 ++- .../FetchStaticIpsResponseOrBuilder.java | 45 +- .../ForwardSshTunnelConnectivity.java | 689 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../v1alpha1/GcsDestinationConfig.java | 831 +++-- .../GcsDestinationConfigOrBuilder.java | 83 +- .../datastream/v1alpha1/GcsFileFormat.java | 80 +- .../cloud/datastream/v1alpha1/GcsProfile.java | 393 +- .../v1alpha1/GcsProfileOrBuilder.java | 36 +- .../v1alpha1/GetConnectionProfileRequest.java | 383 +- .../GetConnectionProfileRequestOrBuilder.java | 54 + .../v1alpha1/GetPrivateConnectionRequest.java | 383 +- .../GetPrivateConnectionRequestOrBuilder.java | 54 + .../datastream/v1alpha1/GetRouteRequest.java | 353 +- .../v1alpha1/GetRouteRequestOrBuilder.java | 54 + .../datastream/v1alpha1/GetStreamRequest.java | 360 +- .../v1alpha1/GetStreamRequestOrBuilder.java | 54 + .../datastream/v1alpha1/JsonFileFormat.java | 475 ++- .../v1alpha1/JsonFileFormatOrBuilder.java | 30 +- .../ListConnectionProfilesRequest.java | 646 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../ListConnectionProfilesResponse.java | 718 ++-- ...stConnectionProfilesResponseOrBuilder.java | 74 +- .../ListPrivateConnectionsRequest.java | 646 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 65 +- .../ListPrivateConnectionsResponse.java | 718 ++-- ...stPrivateConnectionsResponseOrBuilder.java | 74 +- .../v1alpha1/ListRoutesRequest.java | 607 ++-- .../v1alpha1/ListRoutesRequestOrBuilder.java | 65 +- .../v1alpha1/ListRoutesResponse.java | 590 +-- .../v1alpha1/ListRoutesResponseOrBuilder.java | 63 +- .../v1alpha1/ListStreamsRequest.java | 611 ++-- .../v1alpha1/ListStreamsRequestOrBuilder.java | 65 +- .../v1alpha1/ListStreamsResponse.java | 594 +-- .../ListStreamsResponseOrBuilder.java | 63 +- .../datastream/v1alpha1/LocationName.java | 0 .../datastream/v1alpha1/MysqlColumn.java | 609 ++-- .../v1alpha1/MysqlColumnOrBuilder.java | 57 +- .../datastream/v1alpha1/MysqlDatabase.java | 469 ++- .../v1alpha1/MysqlDatabaseOrBuilder.java | 45 +- .../datastream/v1alpha1/MysqlProfile.java | 625 ++-- .../v1alpha1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1alpha1/MysqlRdbms.java | 396 +- .../v1alpha1/MysqlRdbmsOrBuilder.java | 36 +- .../v1alpha1/MysqlSourceConfig.java | 448 ++- .../v1alpha1/MysqlSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/MysqlSslConfig.java | 579 +-- .../v1alpha1/MysqlSslConfigOrBuilder.java | 54 +- .../cloud/datastream/v1alpha1/MysqlTable.java | 466 ++- .../v1alpha1/MysqlTableOrBuilder.java | 45 +- .../v1alpha1/NoConnectivitySettings.java | 254 +- .../NoConnectivitySettingsOrBuilder.java | 24 + .../v1alpha1/OperationMetadata.java | 995 +++-- .../v1alpha1/OperationMetadataOrBuilder.java | 111 +- .../datastream/v1alpha1/OracleColumn.java | 675 ++-- .../v1alpha1/OracleColumnOrBuilder.java | 63 +- .../datastream/v1alpha1/OracleProfile.java | 799 ++-- .../v1alpha1/OracleProfileOrBuilder.java | 87 +- .../datastream/v1alpha1/OracleRdbms.java | 397 +- .../v1alpha1/OracleRdbmsOrBuilder.java | 36 +- .../datastream/v1alpha1/OracleSchema.java | 470 ++- .../v1alpha1/OracleSchemaOrBuilder.java | 45 +- .../v1alpha1/OracleSourceConfig.java | 449 ++- .../v1alpha1/OracleSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/OracleTable.java | 469 ++- .../v1alpha1/OracleTableOrBuilder.java | 45 +- .../v1alpha1/PrivateConnection.java | 1349 ++++--- .../v1alpha1/PrivateConnectionName.java | 0 .../v1alpha1/PrivateConnectionOrBuilder.java | 142 +- .../v1alpha1/PrivateConnectivity.java | 314 +- .../PrivateConnectivityOrBuilder.java | 38 + .../cloud/datastream/v1alpha1/Route.java | 1016 ++++-- .../cloud/datastream/v1alpha1/RouteName.java | 0 .../datastream/v1alpha1/RouteOrBuilder.java | 112 +- .../datastream/v1alpha1/SchemaFileFormat.java | 86 +- .../datastream/v1alpha1/SourceConfig.java | 618 ++-- .../v1alpha1/SourceConfigOrBuilder.java | 52 +- .../v1alpha1/StaticServiceIpConnectivity.java | 274 +- .../StaticServiceIpConnectivityOrBuilder.java | 24 + .../cloud/datastream/v1alpha1/Stream.java | 2779 +++++++++----- .../cloud/datastream/v1alpha1/StreamName.java | 0 .../datastream/v1alpha1/StreamOrBuilder.java | 206 +- .../UpdateConnectionProfileRequest.java | 657 ++-- ...dateConnectionProfileRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateStreamRequest.java | 676 ++-- .../UpdateStreamRequestOrBuilder.java | 70 +- .../cloud/datastream/v1alpha1/Validation.java | 681 ++-- .../v1alpha1/ValidationMessage.java | 786 ++-- .../v1alpha1/ValidationMessageOrBuilder.java | 72 +- .../v1alpha1/ValidationOrBuilder.java | 60 +- .../datastream/v1alpha1/ValidationResult.java | 400 +- .../v1alpha1/ValidationResultOrBuilder.java | 36 +- .../datastream/v1alpha1/VpcPeeringConfig.java | 400 +- .../v1alpha1/VpcPeeringConfigOrBuilder.java | 36 +- .../datastream/v1alpha1/datastream.proto | 0 .../v1alpha1/datastream_resources.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnectionProfile.java | 0 .../AsyncCreateConnectionProfileLRO.java | 0 .../SyncCreateConnectionProfile.java | 0 ...leLocationnameConnectionprofileString.java | 0 ...nProfileStringConnectionprofileString.java | 0 .../AsyncCreatePrivateConnection.java | 0 .../AsyncCreatePrivateConnectionLRO.java | 0 .../SyncCreatePrivateConnection.java | 0 ...onLocationnamePrivateconnectionString.java | 0 ...nnectionStringPrivateconnectionString.java | 0 .../createroute/AsyncCreateRoute.java | 0 .../createroute/AsyncCreateRouteLRO.java | 0 .../createroute/SyncCreateRoute.java | 0 ...RoutePrivateconnectionnameRouteString.java | 0 .../SyncCreateRouteStringRouteString.java | 0 .../createstream/AsyncCreateStream.java | 0 .../createstream/AsyncCreateStreamLRO.java | 0 .../createstream/SyncCreateStream.java | 0 ...cCreateStreamLocationnameStreamString.java | 0 .../SyncCreateStreamStringStreamString.java | 0 .../AsyncDeleteConnectionProfile.java | 0 .../AsyncDeleteConnectionProfileLRO.java | 0 .../SyncDeleteConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncDeleteConnectionProfileString.java | 0 .../AsyncDeletePrivateConnection.java | 0 .../AsyncDeletePrivateConnectionLRO.java | 0 .../SyncDeletePrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncDeletePrivateConnectionString.java | 0 .../deleteroute/AsyncDeleteRoute.java | 0 .../deleteroute/AsyncDeleteRouteLRO.java | 0 .../deleteroute/SyncDeleteRoute.java | 0 .../deleteroute/SyncDeleteRouteRoutename.java | 0 .../deleteroute/SyncDeleteRouteString.java | 0 .../deletestream/AsyncDeleteStream.java | 0 .../deletestream/AsyncDeleteStreamLRO.java | 0 .../deletestream/SyncDeleteStream.java | 0 .../SyncDeleteStreamStreamname.java | 0 .../deletestream/SyncDeleteStreamString.java | 0 .../AsyncDiscoverConnectionProfile.java | 0 .../SyncDiscoverConnectionProfile.java | 0 .../fetchstaticips/AsyncFetchStaticIps.java | 0 .../AsyncFetchStaticIpsPaged.java | 0 .../fetchstaticips/SyncFetchStaticIps.java | 0 .../SyncFetchStaticIpsLocationname.java | 0 .../SyncFetchStaticIpsString.java | 0 .../AsyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncGetConnectionProfileString.java | 0 .../getlocation/AsyncGetLocation.java | 0 .../getlocation/SyncGetLocation.java | 0 .../AsyncGetPrivateConnection.java | 0 .../SyncGetPrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncGetPrivateConnectionString.java | 0 .../v1/datastream/getroute/AsyncGetRoute.java | 0 .../v1/datastream/getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../datastream/getstream/AsyncGetStream.java | 0 .../datastream/getstream/SyncGetStream.java | 0 .../getstream/SyncGetStreamStreamname.java | 0 .../getstream/SyncGetStreamString.java | 0 .../getstreamobject/AsyncGetStreamObject.java | 0 .../getstreamobject/SyncGetStreamObject.java | 0 .../SyncGetStreamObjectStreamobjectname.java | 0 .../SyncGetStreamObjectString.java | 0 .../AsyncListConnectionProfiles.java | 0 .../AsyncListConnectionProfilesPaged.java | 0 .../SyncListConnectionProfiles.java | 0 ...yncListConnectionProfilesLocationname.java | 0 .../SyncListConnectionProfilesString.java | 0 .../listlocations/AsyncListLocations.java | 0 .../AsyncListLocationsPaged.java | 0 .../listlocations/SyncListLocations.java | 0 .../AsyncListPrivateConnections.java | 0 .../AsyncListPrivateConnectionsPaged.java | 0 .../SyncListPrivateConnections.java | 0 ...yncListPrivateConnectionsLocationname.java | 0 .../SyncListPrivateConnectionsString.java | 0 .../listroutes/AsyncListRoutes.java | 0 .../listroutes/AsyncListRoutesPaged.java | 0 .../datastream/listroutes/SyncListRoutes.java | 0 .../SyncListRoutesPrivateconnectionname.java | 0 .../listroutes/SyncListRoutesString.java | 0 .../AsyncListStreamObjects.java | 0 .../AsyncListStreamObjectsPaged.java | 0 .../SyncListStreamObjects.java | 0 .../SyncListStreamObjectsStreamname.java | 0 .../SyncListStreamObjectsString.java | 0 .../liststreams/AsyncListStreams.java | 0 .../liststreams/AsyncListStreamsPaged.java | 0 .../liststreams/SyncListStreams.java | 0 .../SyncListStreamsLocationname.java | 0 .../liststreams/SyncListStreamsString.java | 0 .../AsyncLookupStreamObject.java | 0 .../SyncLookupStreamObject.java | 0 .../AsyncStartBackfillJob.java | 0 .../SyncStartBackfillJob.java | 0 .../SyncStartBackfillJobStreamobjectname.java | 0 .../SyncStartBackfillJobString.java | 0 .../stopbackfilljob/AsyncStopBackfillJob.java | 0 .../stopbackfilljob/SyncStopBackfillJob.java | 0 .../SyncStopBackfillJobStreamobjectname.java | 0 .../SyncStopBackfillJobString.java | 0 .../AsyncUpdateConnectionProfile.java | 0 .../AsyncUpdateConnectionProfileLRO.java | 0 .../SyncUpdateConnectionProfile.java | 0 ...tionProfileConnectionprofileFieldmask.java | 0 .../updatestream/AsyncUpdateStream.java | 0 .../updatestream/AsyncUpdateStreamLRO.java | 0 .../updatestream/SyncUpdateStream.java | 0 .../SyncUpdateStreamStreamFieldmask.java | 0 .../SyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateConnectionProfile.java | 0 .../AsyncCreateConnectionProfileLRO.java | 0 .../SyncCreateConnectionProfile.java | 0 ...leLocationnameConnectionprofileString.java | 0 ...nProfileStringConnectionprofileString.java | 0 .../AsyncCreatePrivateConnection.java | 0 .../AsyncCreatePrivateConnectionLRO.java | 0 .../SyncCreatePrivateConnection.java | 0 ...onLocationnamePrivateconnectionString.java | 0 ...nnectionStringPrivateconnectionString.java | 0 .../createroute/AsyncCreateRoute.java | 0 .../createroute/AsyncCreateRouteLRO.java | 0 .../createroute/SyncCreateRoute.java | 0 ...RoutePrivateconnectionnameRouteString.java | 0 .../SyncCreateRouteStringRouteString.java | 0 .../createstream/AsyncCreateStream.java | 0 .../createstream/AsyncCreateStreamLRO.java | 0 .../createstream/SyncCreateStream.java | 0 ...cCreateStreamLocationnameStreamString.java | 0 .../SyncCreateStreamStringStreamString.java | 0 .../AsyncDeleteConnectionProfile.java | 0 .../AsyncDeleteConnectionProfileLRO.java | 0 .../SyncDeleteConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncDeleteConnectionProfileString.java | 0 .../AsyncDeletePrivateConnection.java | 0 .../AsyncDeletePrivateConnectionLRO.java | 0 .../SyncDeletePrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncDeletePrivateConnectionString.java | 0 .../deleteroute/AsyncDeleteRoute.java | 0 .../deleteroute/AsyncDeleteRouteLRO.java | 0 .../deleteroute/SyncDeleteRoute.java | 0 .../deleteroute/SyncDeleteRouteRoutename.java | 0 .../deleteroute/SyncDeleteRouteString.java | 0 .../deletestream/AsyncDeleteStream.java | 0 .../deletestream/AsyncDeleteStreamLRO.java | 0 .../deletestream/SyncDeleteStream.java | 0 .../SyncDeleteStreamStreamname.java | 0 .../deletestream/SyncDeleteStreamString.java | 0 .../AsyncDiscoverConnectionProfile.java | 0 .../SyncDiscoverConnectionProfile.java | 0 .../fetcherrors/AsyncFetchErrors.java | 0 .../fetcherrors/AsyncFetchErrorsLRO.java | 0 .../fetcherrors/SyncFetchErrors.java | 0 .../fetchstaticips/AsyncFetchStaticIps.java | 0 .../AsyncFetchStaticIpsPaged.java | 0 .../fetchstaticips/SyncFetchStaticIps.java | 0 .../SyncFetchStaticIpsLocationname.java | 0 .../SyncFetchStaticIpsString.java | 0 .../AsyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 ...onnectionProfileConnectionprofilename.java | 0 .../SyncGetConnectionProfileString.java | 0 .../AsyncGetPrivateConnection.java | 0 .../SyncGetPrivateConnection.java | 0 ...rivateConnectionPrivateconnectionname.java | 0 .../SyncGetPrivateConnectionString.java | 0 .../datastream/getroute/AsyncGetRoute.java | 0 .../datastream/getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../datastream/getstream/AsyncGetStream.java | 0 .../datastream/getstream/SyncGetStream.java | 0 .../getstream/SyncGetStreamStreamname.java | 0 .../getstream/SyncGetStreamString.java | 0 .../AsyncListConnectionProfiles.java | 0 .../AsyncListConnectionProfilesPaged.java | 0 .../SyncListConnectionProfiles.java | 0 ...yncListConnectionProfilesLocationname.java | 0 .../SyncListConnectionProfilesString.java | 0 .../AsyncListPrivateConnections.java | 0 .../AsyncListPrivateConnectionsPaged.java | 0 .../SyncListPrivateConnections.java | 0 ...yncListPrivateConnectionsLocationname.java | 0 .../SyncListPrivateConnectionsString.java | 0 .../listroutes/AsyncListRoutes.java | 0 .../listroutes/AsyncListRoutesPaged.java | 0 .../datastream/listroutes/SyncListRoutes.java | 0 .../SyncListRoutesPrivateconnectionname.java | 0 .../listroutes/SyncListRoutesString.java | 0 .../liststreams/AsyncListStreams.java | 0 .../liststreams/AsyncListStreamsPaged.java | 0 .../liststreams/SyncListStreams.java | 0 .../SyncListStreamsLocationname.java | 0 .../liststreams/SyncListStreamsString.java | 0 .../AsyncUpdateConnectionProfile.java | 0 .../AsyncUpdateConnectionProfileLRO.java | 0 .../SyncUpdateConnectionProfile.java | 0 ...tionProfileConnectionprofileFieldmask.java | 0 .../updatestream/AsyncUpdateStream.java | 0 .../updatestream/AsyncUpdateStreamLRO.java | 0 .../updatestream/SyncUpdateStream.java | 0 .../SyncUpdateStreamStreamFieldmask.java | 0 .../SyncGetConnectionProfile.java | 0 .../SyncGetConnectionProfile.java | 0 .../cloud/datastream/v1/DatastreamGrpc.java | 2419 ------------ .../v1/AvroFileFormatOrBuilder.java | 9 - .../v1/BigQueryProfileOrBuilder.java | 9 - .../cloud/datastream/v1/DatastreamProto.java | 742 ---- .../v1/DatastreamResourcesProto.java | 1004 ----- .../GetConnectionProfileRequestOrBuilder.java | 29 - .../GetPrivateConnectionRequestOrBuilder.java | 29 - .../v1/GetRouteRequestOrBuilder.java | 29 - .../v1/GetStreamObjectRequestOrBuilder.java | 29 - .../v1/GetStreamRequestOrBuilder.java | 29 - .../LookupStreamObjectRequestOrBuilder.java | 56 - .../v1/PrivateConnectivityOrBuilder.java | 31 - .../v1/SourceObjectIdentifierOrBuilder.java | 92 - .../v1/StartBackfillJobRequestOrBuilder.java | 31 - .../StaticServiceIpConnectivityOrBuilder.java | 9 - .../v1/StopBackfillJobRequestOrBuilder.java | 31 - .../datastream/v1alpha1/DatastreamGrpc.java | 2079 ----------- .../v1alpha1/AvroFileFormatOrBuilder.java | 9 - .../CloudDatastreamResourcesProto.java | 712 ---- .../v1alpha1/CloudDatastreamServiceProto.java | 640 ---- .../GetConnectionProfileRequestOrBuilder.java | 29 - .../GetPrivateConnectionRequestOrBuilder.java | 29 - .../v1alpha1/GetRouteRequestOrBuilder.java | 29 - .../v1alpha1/GetStreamRequestOrBuilder.java | 29 - .../NoConnectivitySettingsOrBuilder.java | 9 - .../PrivateConnectivityOrBuilder.java | 21 - .../StaticServiceIpConnectivityOrBuilder.java | 9 - 578 files changed, 72759 insertions(+), 44147 deletions(-) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java (99%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java (99%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java (99%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java (99%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java (99%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java (99%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java (100%) create mode 100644 java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java create mode 100644 java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java (64%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java (55%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java (61%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java (59%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java (64%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java (78%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java (74%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java (80%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java (75%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java (56%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java (80%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java (57%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java (61%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java (61%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java (62%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java (61%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java (61%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java (67%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java (63%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java (74%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java (75%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java (67%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java (60%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java (59%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java (62%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java (76%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java (74%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java (77%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java (75%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java (64%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java (59%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java (62%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java (60%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java (64%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java (62%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java (60%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java (68%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java (71%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java (77%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java (81%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java (65%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java (73%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java (72%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java (66%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java (52%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java (63%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfile.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java (74%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java (63%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java (55%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java (77%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java (51%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java (62%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java (55%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java (74%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java (63%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java (60%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java (59%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java (59%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java (63%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java (61%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java (70%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java (64%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java (66%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java (74%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java (77%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java (74%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java (63%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java (71%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java (74%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java (62%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java (66%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java (64%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java (60%) create mode 100644 java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java (67%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java (75%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java (78%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java (72%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java (64%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java (65%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java (73%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java (73%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java (69%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java (68%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java (60%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/java-datastream/v1alpha1 => java-datastream}/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) delete mode 100644 owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java diff --git a/java-datastream/README.md b/java-datastream/README.md index 6e3d1bef1f88..456748ab119a 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.11.0 + 26.14.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.13.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java similarity index 99% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index 7cac03cd49df..c6626dd35a11 100644 --- a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -35,7 +35,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.datastream.v1.stub.DatastreamStubSettings; diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java similarity index 99% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java index 0bb962fa9302..35aae8422ccd 100644 --- a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java @@ -82,7 +82,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java index f0325fd39ca4..ec3dcc739c14 100644 --- a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java @@ -37,7 +37,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java similarity index 99% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java index ff49232963a6..e9ec4ad79577 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java @@ -33,7 +33,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.datastream.v1alpha1.stub.DatastreamStubSettings; diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java similarity index 99% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java index f3d278fa3642..5379c0ad4d94 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java @@ -70,7 +70,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java rename to java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java index 2f2875cdeaf8..043783a04ac2 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java @@ -35,7 +35,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java diff --git a/owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java b/java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java rename to java-datastream/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java diff --git a/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java new file mode 100644 index 000000000000..5944c1b2f761 --- /dev/null +++ b/java-datastream/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -0,0 +1,3234 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.datastream.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Datastream service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datastream/v1/datastream.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DatastreamGrpc { + + private DatastreamGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datastream.v1.Datastream"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) + == null) { + DatastreamGrpc.getListConnectionProfilesMethod = + getListConnectionProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1.ConnectionProfile> + getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1.ConnectionProfile> + getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1.ConnectionProfile> + getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) + == null) { + DatastreamGrpc.getGetConnectionProfileMethod = + getGetConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ConnectionProfile + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) + == null) { + DatastreamGrpc.getCreateConnectionProfileMethod = + getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) + == null) { + DatastreamGrpc.getUpdateConnectionProfileMethod = + getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) + == null) { + DatastreamGrpc.getDeleteConnectionProfileMethod = + getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", + requestType = com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod; + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) + == null) { + DatastreamGrpc.getDiscoverConnectionProfileMethod = + getDiscoverConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) + .build(); + } + } + } + return getDiscoverConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamsRequest, + com.google.cloud.datastream.v1.ListStreamsResponse> + getListStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreams", + requestType = com.google.cloud.datastream.v1.ListStreamsRequest.class, + responseType = com.google.cloud.datastream.v1.ListStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamsRequest, + com.google.cloud.datastream.v1.ListStreamsResponse> + getListStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamsRequest, + com.google.cloud.datastream.v1.ListStreamsResponse> + getListStreamsMethod; + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + DatastreamGrpc.getListStreamsMethod = + getListStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) + .build(); + } + } + } + return getListStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> + getGetStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStream", + requestType = com.google.cloud.datastream.v1.GetStreamRequest.class, + responseType = com.google.cloud.datastream.v1.Stream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> + getGetStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamRequest, com.google.cloud.datastream.v1.Stream> + getGetStreamMethod; + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + DatastreamGrpc.getGetStreamMethod = + getGetStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.Stream.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) + .build(); + } + } + } + return getGetStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> + getCreateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStream", + requestType = com.google.cloud.datastream.v1.CreateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> + getCreateStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateStreamRequest, com.google.longrunning.Operation> + getCreateStreamMethod; + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + DatastreamGrpc.getCreateStreamMethod = + getCreateStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) + .build(); + } + } + } + return getCreateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> + getUpdateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateStream", + requestType = com.google.cloud.datastream.v1.UpdateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> + getUpdateStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.UpdateStreamRequest, com.google.longrunning.Operation> + getUpdateStreamMethod; + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + DatastreamGrpc.getUpdateStreamMethod = + getUpdateStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.UpdateStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) + .build(); + } + } + } + return getUpdateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> + getDeleteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStream", + requestType = com.google.cloud.datastream.v1.DeleteStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> + getDeleteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteStreamRequest, com.google.longrunning.Operation> + getDeleteStreamMethod; + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + DatastreamGrpc.getDeleteStreamMethod = + getDeleteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) + .build(); + } + } + } + return getDeleteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getGetStreamObjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStreamObject", + requestType = com.google.cloud.datastream.v1.GetStreamObjectRequest.class, + responseType = com.google.cloud.datastream.v1.StreamObject.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getGetStreamObjectMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getGetStreamObjectMethod; + if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { + DatastreamGrpc.getGetStreamObjectMethod = + getGetStreamObjectMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamObject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetStreamObjectRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("GetStreamObject")) + .build(); + } + } + } + return getGetStreamObjectMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.LookupStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getLookupStreamObjectMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LookupStreamObject", + requestType = com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, + responseType = com.google.cloud.datastream.v1.StreamObject.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.LookupStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getLookupStreamObjectMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.LookupStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject> + getLookupStreamObjectMethod; + if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { + DatastreamGrpc.getLookupStreamObjectMethod = + getLookupStreamObjectMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupStreamObject")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.LookupStreamObjectRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("LookupStreamObject")) + .build(); + } + } + } + return getLookupStreamObjectMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamObjectsRequest, + com.google.cloud.datastream.v1.ListStreamObjectsResponse> + getListStreamObjectsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreamObjects", + requestType = com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, + responseType = com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamObjectsRequest, + com.google.cloud.datastream.v1.ListStreamObjectsResponse> + getListStreamObjectsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListStreamObjectsRequest, + com.google.cloud.datastream.v1.ListStreamObjectsResponse> + getListStreamObjectsMethod; + if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { + DatastreamGrpc.getListStreamObjectsMethod = + getListStreamObjectsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreamObjects")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamObjectsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListStreamObjectsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("ListStreamObjects")) + .build(); + } + } + } + return getListStreamObjectsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StartBackfillJobRequest, + com.google.cloud.datastream.v1.StartBackfillJobResponse> + getStartBackfillJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StartBackfillJob", + requestType = com.google.cloud.datastream.v1.StartBackfillJobRequest.class, + responseType = com.google.cloud.datastream.v1.StartBackfillJobResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StartBackfillJobRequest, + com.google.cloud.datastream.v1.StartBackfillJobResponse> + getStartBackfillJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StartBackfillJobRequest, + com.google.cloud.datastream.v1.StartBackfillJobResponse> + getStartBackfillJobMethod; + if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { + DatastreamGrpc.getStartBackfillJobMethod = + getStartBackfillJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartBackfillJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StartBackfillJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StartBackfillJobResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("StartBackfillJob")) + .build(); + } + } + } + return getStartBackfillJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StopBackfillJobRequest, + com.google.cloud.datastream.v1.StopBackfillJobResponse> + getStopBackfillJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StopBackfillJob", + requestType = com.google.cloud.datastream.v1.StopBackfillJobRequest.class, + responseType = com.google.cloud.datastream.v1.StopBackfillJobResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StopBackfillJobRequest, + com.google.cloud.datastream.v1.StopBackfillJobResponse> + getStopBackfillJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.StopBackfillJobRequest, + com.google.cloud.datastream.v1.StopBackfillJobResponse> + getStopBackfillJobMethod; + if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { + DatastreamGrpc.getStopBackfillJobMethod = + getStopBackfillJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopBackfillJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StopBackfillJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.StopBackfillJobResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("StopBackfillJob")) + .build(); + } + } + } + return getStopBackfillJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", + requestType = com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, + responseType = com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + DatastreamGrpc.getFetchStaticIpsMethod = + getFetchStaticIpsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.FetchStaticIpsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.FetchStaticIpsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) + .build(); + } + } + } + return getFetchStaticIpsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", + requestType = com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) + == null) { + DatastreamGrpc.getCreatePrivateConnectionMethod = + getCreatePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) + .build(); + } + } + } + return getCreatePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1.PrivateConnection> + getGetPrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", + requestType = com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, + responseType = com.google.cloud.datastream.v1.PrivateConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1.PrivateConnection> + getGetPrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1.PrivateConnection> + getGetPrivateConnectionMethod; + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) + == null) { + DatastreamGrpc.getGetPrivateConnectionMethod = + getGetPrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.PrivateConnection + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) + .build(); + } + } + } + return getGetPrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", + requestType = com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, + responseType = com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) + == null) { + DatastreamGrpc.getListPrivateConnectionsMethod = + getListPrivateConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) + .build(); + } + } + } + return getListPrivateConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", + requestType = com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) + == null) { + DatastreamGrpc.getDeletePrivateConnectionMethod = + getDeletePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) + .build(); + } + } + } + return getDeletePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> + getCreateRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoute", + requestType = com.google.cloud.datastream.v1.CreateRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> + getCreateRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.CreateRouteRequest, com.google.longrunning.Operation> + getCreateRouteMethod; + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + DatastreamGrpc.getCreateRouteMethod = + getCreateRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.CreateRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) + .build(); + } + } + } + return getCreateRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> + getGetRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoute", + requestType = com.google.cloud.datastream.v1.GetRouteRequest.class, + responseType = com.google.cloud.datastream.v1.Route.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> + getGetRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.GetRouteRequest, com.google.cloud.datastream.v1.Route> + getGetRouteMethod; + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + DatastreamGrpc.getGetRouteMethod = + getGetRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.Route.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) + .build(); + } + } + } + return getGetRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse> + getListRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRoutes", + requestType = com.google.cloud.datastream.v1.ListRoutesRequest.class, + responseType = com.google.cloud.datastream.v1.ListRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse> + getListRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse> + getListRoutesMethod; + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + DatastreamGrpc.getListRoutesMethod = + getListRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListRoutesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.ListRoutesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) + .build(); + } + } + } + return getListRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> + getDeleteRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", + requestType = com.google.cloud.datastream.v1.DeleteRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> + getDeleteRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1.DeleteRouteRequest, com.google.longrunning.Operation> + getDeleteRouteMethod; + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + DatastreamGrpc.getDeleteRouteMethod = + getDeleteRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1.DeleteRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) + .build(); + } + } + } + return getDeleteRouteMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DatastreamStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + }; + return DatastreamStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DatastreamBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + }; + return DatastreamBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DatastreamFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + }; + return DatastreamFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Datastream service
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + default void listConnectionProfiles( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + default void getConnectionProfile( + com.google.cloud.datastream.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + default void createConnectionProfile( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + default void updateConnectionProfile( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + default void deleteConnectionProfile( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + default void discoverConnectionProfile( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscoverConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + default void listStreams( + com.google.cloud.datastream.v1.ListStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + default void getStream( + com.google.cloud.datastream.v1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + default void createStream( + com.google.cloud.datastream.v1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + default void updateStream( + com.google.cloud.datastream.v1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + default void deleteStream( + com.google.cloud.datastream.v1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + default void getStreamObject( + com.google.cloud.datastream.v1.GetStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetStreamObjectMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + default void lookupStreamObject( + com.google.cloud.datastream.v1.LookupStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLookupStreamObjectMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + default void listStreamObjects( + com.google.cloud.datastream.v1.ListStreamObjectsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListStreamObjectsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + default void startBackfillJob( + com.google.cloud.datastream.v1.StartBackfillJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStartBackfillJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + default void stopBackfillJob( + com.google.cloud.datastream.v1.StopBackfillJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStopBackfillJobMethod(), responseObserver); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + default void fetchStaticIps( + com.google.cloud.datastream.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchStaticIpsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + default void createPrivateConnection( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + default void getPrivateConnection( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + default void listPrivateConnections( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + default void deletePrivateConnection( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + default void createRoute( + com.google.cloud.datastream.v1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + default void getRoute( + com.google.cloud.datastream.v1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + default void listRoutes( + com.google.cloud.datastream.v1.ListRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + default void deleteRoute( + com.google.cloud.datastream.v1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRouteMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public abstract static class DatastreamImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DatastreamGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamStub extends io.grpc.stub.AbstractAsyncStub { + private DatastreamStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public void listConnectionProfiles( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public void getConnectionProfile( + com.google.cloud.datastream.v1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public void createConnectionProfile( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public void updateConnectionProfile( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public void deleteConnectionProfile( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public void discoverConnectionProfile( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public void listStreams( + com.google.cloud.datastream.v1.ListStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public void getStream( + com.google.cloud.datastream.v1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public void createStream( + com.google.cloud.datastream.v1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public void updateStream( + com.google.cloud.datastream.v1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public void deleteStream( + com.google.cloud.datastream.v1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public void getStreamObject( + com.google.cloud.datastream.v1.GetStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public void lookupStreamObject( + com.google.cloud.datastream.v1.LookupStreamObjectRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public void listStreamObjects( + com.google.cloud.datastream.v1.ListStreamObjectsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public void startBackfillJob( + com.google.cloud.datastream.v1.StartBackfillJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public void stopBackfillJob( + com.google.cloud.datastream.v1.StopBackfillJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public void fetchStaticIps( + com.google.cloud.datastream.v1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public void createPrivateConnection( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public void getPrivateConnection( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public void listPrivateConnections( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public void deletePrivateConnection( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public void createRoute( + com.google.cloud.datastream.v1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public void getRoute( + com.google.cloud.datastream.v1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public void listRoutes( + com.google.cloud.datastream.v1.ListRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public void deleteRoute( + com.google.cloud.datastream.v1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DatastreamBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnectionProfiles( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile( + com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + discoverConnectionProfile( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListStreamsResponse listStreams( + com.google.cloud.datastream.v1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.cloud.datastream.v1.Stream getStream( + com.google.cloud.datastream.v1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.longrunning.Operation createStream( + com.google.cloud.datastream.v1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.longrunning.Operation updateStream( + com.google.cloud.datastream.v1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.longrunning.Operation deleteStream( + com.google.cloud.datastream.v1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StreamObject getStreamObject( + com.google.cloud.datastream.v1.GetStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public com.google.cloud.datastream.v1.StreamObject lookupStreamObject( + com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLookupStreamObjectMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObjects( + com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamObjectsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob( + com.google.cloud.datastream.v1.StartBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStartBackfillJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob( + com.google.cloud.datastream.v1.StopBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getStopBackfillJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps( + com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivateConnections( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateConnection( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createRoute( + com.google.cloud.datastream.v1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.cloud.datastream.v1.Route getRoute( + com.google.cloud.datastream.v1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes( + com.google.cloud.datastream.v1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoutesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.longrunning.Operation deleteRoute( + com.google.cloud.datastream.v1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRouteMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DatastreamFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ListConnectionProfilesResponse> + listConnectionProfiles( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ConnectionProfile> + getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createConnectionProfile( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConnectionProfile( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnectionProfile( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects of a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse> + discoverConnectionProfile( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ListStreamsResponse> + listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getStream(com.google.cloud.datastream.v1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createStream(com.google.cloud.datastream.v1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.StreamObject> + getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to look up a stream object by its source object identifier.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.StreamObject> + lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list the objects of a specific stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ListStreamObjectsResponse> + listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to start a backfill job for the specified stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.StartBackfillJobResponse> + startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to stop a backfill job for the specified stream object.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.StopBackfillJobResponse> + stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static IP addresses used by
+     * Datastream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.FetchStaticIpsResponse> + fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateConnection( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.PrivateConnection> + getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse> + listPrivateConnections( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePrivateConnection( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity configuration
+     * in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getRoute(com.google.cloud.datastream.v1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity
+     * configuration in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1.ListRoutesResponse> + listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONNECTION_PROFILES = 0; + private static final int METHODID_GET_CONNECTION_PROFILE = 1; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; + private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; + private static final int METHODID_LIST_STREAMS = 6; + private static final int METHODID_GET_STREAM = 7; + private static final int METHODID_CREATE_STREAM = 8; + private static final int METHODID_UPDATE_STREAM = 9; + private static final int METHODID_DELETE_STREAM = 10; + private static final int METHODID_GET_STREAM_OBJECT = 11; + private static final int METHODID_LOOKUP_STREAM_OBJECT = 12; + private static final int METHODID_LIST_STREAM_OBJECTS = 13; + private static final int METHODID_START_BACKFILL_JOB = 14; + private static final int METHODID_STOP_BACKFILL_JOB = 15; + private static final int METHODID_FETCH_STATIC_IPS = 16; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; + private static final int METHODID_GET_PRIVATE_CONNECTION = 18; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; + private static final int METHODID_CREATE_ROUTE = 21; + private static final int METHODID_GET_ROUTE = 22; + private static final int METHODID_LIST_ROUTES = 23; + private static final int METHODID_DELETE_ROUTE = 24; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles( + (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.ListConnectionProfilesResponse>) + responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile( + (com.google.cloud.datastream.v1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile( + (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile( + (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile( + (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISCOVER_CONNECTION_PROFILE: + serviceImpl.discoverConnectionProfile( + (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>) + responseObserver); + break; + case METHODID_LIST_STREAMS: + serviceImpl.listStreams( + (com.google.cloud.datastream.v1.ListStreamsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_STREAM: + serviceImpl.getStream( + (com.google.cloud.datastream.v1.GetStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_STREAM: + serviceImpl.createStream( + (com.google.cloud.datastream.v1.CreateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_STREAM: + serviceImpl.updateStream( + (com.google.cloud.datastream.v1.UpdateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_STREAM: + serviceImpl.deleteStream( + (com.google.cloud.datastream.v1.DeleteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STREAM_OBJECT: + serviceImpl.getStreamObject( + (com.google.cloud.datastream.v1.GetStreamObjectRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LOOKUP_STREAM_OBJECT: + serviceImpl.lookupStreamObject( + (com.google.cloud.datastream.v1.LookupStreamObjectRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_STREAM_OBJECTS: + serviceImpl.listStreamObjects( + (com.google.cloud.datastream.v1.ListStreamObjectsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.ListStreamObjectsResponse>) + responseObserver); + break; + case METHODID_START_BACKFILL_JOB: + serviceImpl.startBackfillJob( + (com.google.cloud.datastream.v1.StartBackfillJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_STOP_BACKFILL_JOB: + serviceImpl.stopBackfillJob( + (com.google.cloud.datastream.v1.StopBackfillJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_FETCH_STATIC_IPS: + serviceImpl.fetchStaticIps( + (com.google.cloud.datastream.v1.FetchStaticIpsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection( + (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection( + (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections( + (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>) + responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection( + (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ROUTE: + serviceImpl.createRoute( + (com.google.cloud.datastream.v1.CreateRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROUTE: + serviceImpl.getRoute( + (com.google.cloud.datastream.v1.GetRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ROUTES: + serviceImpl.listRoutes( + (com.google.cloud.datastream.v1.ListRoutesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ROUTE: + serviceImpl.deleteRoute( + (com.google.cloud.datastream.v1.DeleteRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse>( + service, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1.ConnectionProfile>( + service, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTION_PROFILE))) + .addMethod( + getDiscoverConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>( + service, METHODID_DISCOVER_CONNECTION_PROFILE))) + .addMethod( + getListStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListStreamsRequest, + com.google.cloud.datastream.v1.ListStreamsResponse>( + service, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamRequest, + com.google.cloud.datastream.v1.Stream>(service, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateStreamRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateStreamRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteStreamRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_STREAM))) + .addMethod( + getGetStreamObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject>( + service, METHODID_GET_STREAM_OBJECT))) + .addMethod( + getLookupStreamObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.LookupStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject>( + service, METHODID_LOOKUP_STREAM_OBJECT))) + .addMethod( + getListStreamObjectsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListStreamObjectsRequest, + com.google.cloud.datastream.v1.ListStreamObjectsResponse>( + service, METHODID_LIST_STREAM_OBJECTS))) + .addMethod( + getStartBackfillJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.StartBackfillJobRequest, + com.google.cloud.datastream.v1.StartBackfillJobResponse>( + service, METHODID_START_BACKFILL_JOB))) + .addMethod( + getStopBackfillJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.StopBackfillJobRequest, + com.google.cloud.datastream.v1.StopBackfillJobResponse>( + service, METHODID_STOP_BACKFILL_JOB))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1.FetchStaticIpsResponse>( + service, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateRouteRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetRouteRequest, + com.google.cloud.datastream.v1.Route>(service, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse>( + service, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteRouteRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ROUTE))) + .build(); + } + + private abstract static class DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DatastreamBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Datastream"); + } + } + + private static final class DatastreamFileDescriptorSupplier + extends DatastreamBaseDescriptorSupplier { + DatastreamFileDescriptorSupplier() {} + } + + private static final class DatastreamMethodDescriptorSupplier + extends DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DatastreamMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DatastreamGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .addMethod(getDiscoverConnectionProfileMethod()) + .addMethod(getListStreamsMethod()) + .addMethod(getGetStreamMethod()) + .addMethod(getCreateStreamMethod()) + .addMethod(getUpdateStreamMethod()) + .addMethod(getDeleteStreamMethod()) + .addMethod(getGetStreamObjectMethod()) + .addMethod(getLookupStreamObjectMethod()) + .addMethod(getListStreamObjectsMethod()) + .addMethod(getStartBackfillJobMethod()) + .addMethod(getStopBackfillJobMethod()) + .addMethod(getFetchStaticIpsMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getCreateRouteMethod()) + .addMethod(getGetRouteMethod()) + .addMethod(getListRoutesMethod()) + .addMethod(getDeleteRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java new file mode 100644 index 000000000000..213e5eacf49f --- /dev/null +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -0,0 +1,2782 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.datastream.v1alpha1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Datastream service
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DatastreamGrpc { + + private DatastreamGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datastream.v1alpha1.Datastream"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", + requestType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + getListConnectionProfilesMethod; + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) + == null) { + DatastreamGrpc.getListConnectionProfilesMethod = + getListConnectionProfilesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) + .build(); + } + } + } + return getListConnectionProfilesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.ConnectionProfile> + getGetConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.ConnectionProfile> + getGetConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.ConnectionProfile> + getGetConnectionProfileMethod; + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) + == null) { + DatastreamGrpc.getGetConnectionProfileMethod = + getGetConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ConnectionProfile + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) + .build(); + } + } + } + return getGetConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation> + getCreateConnectionProfileMethod; + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) + == null) { + DatastreamGrpc.getCreateConnectionProfileMethod = + getCreateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) + .build(); + } + } + } + return getCreateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation> + getUpdateConnectionProfileMethod; + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) + == null) { + DatastreamGrpc.getUpdateConnectionProfileMethod = + getUpdateConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) + .build(); + } + } + } + return getUpdateConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation> + getDeleteConnectionProfileMethod; + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) + == null) { + DatastreamGrpc.getDeleteConnectionProfileMethod = + getDeleteConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) + .build(); + } + } + } + return getDeleteConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", + requestType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + getDiscoverConnectionProfileMethod; + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) + == null) { + DatastreamGrpc.getDiscoverConnectionProfileMethod = + getDiscoverConnectionProfileMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) + .build(); + } + } + } + return getDiscoverConnectionProfileMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListStreamsRequest, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse> + getListStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListStreams", + requestType = com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListStreamsRequest, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse> + getListStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListStreamsRequest, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse> + getListStreamsMethod; + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { + DatastreamGrpc.getListStreamsMethod = + getListStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) + .build(); + } + } + } + return getListStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream> + getGetStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetStream", + requestType = com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.Stream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream> + getGetStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream> + getGetStreamMethod; + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { + DatastreamGrpc.getGetStreamMethod = + getGetStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) + .build(); + } + } + } + return getGetStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation> + getCreateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateStream", + requestType = com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation> + getCreateStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation> + getCreateStreamMethod; + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { + DatastreamGrpc.getCreateStreamMethod = + getCreateStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) + .build(); + } + } + } + return getCreateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation> + getUpdateStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateStream", + requestType = com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation> + getUpdateStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation> + getUpdateStreamMethod; + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { + DatastreamGrpc.getUpdateStreamMethod = + getUpdateStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) + .build(); + } + } + } + return getUpdateStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation> + getDeleteStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteStream", + requestType = com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation> + getDeleteStreamMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation> + getDeleteStreamMethod; + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { + DatastreamGrpc.getDeleteStreamMethod = + getDeleteStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) + .build(); + } + } + } + return getDeleteStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> + getFetchErrorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchErrors", + requestType = com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> + getFetchErrorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, + com.google.longrunning.Operation> + getFetchErrorsMethod; + if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { + DatastreamGrpc.getFetchErrorsMethod = + getFetchErrorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchErrors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchErrors")) + .build(); + } + } + } + return getFetchErrorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", + requestType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> + getFetchStaticIpsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> + getFetchStaticIpsMethod; + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { + DatastreamGrpc.getFetchStaticIpsMethod = + getFetchStaticIpsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) + .build(); + } + } + } + return getFetchStaticIpsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation> + getCreatePrivateConnectionMethod; + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) + == null) { + DatastreamGrpc.getCreatePrivateConnectionMethod = + getCreatePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) + .build(); + } + } + } + return getCreatePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1alpha1.PrivateConnection> + getGetPrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.PrivateConnection.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1alpha1.PrivateConnection> + getGetPrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1alpha1.PrivateConnection> + getGetPrivateConnectionMethod; + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) + == null) { + DatastreamGrpc.getGetPrivateConnectionMethod = + getGetPrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.PrivateConnection + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) + .build(); + } + } + } + return getGetPrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", + requestType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + getListPrivateConnectionsMethod; + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) + == null) { + DatastreamGrpc.getListPrivateConnectionsMethod = + getListPrivateConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) + .build(); + } + } + } + return getListPrivateConnectionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", + requestType = com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation> + getDeletePrivateConnectionMethod; + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) + == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) + == null) { + DatastreamGrpc.getDeletePrivateConnectionMethod = + getDeletePrivateConnectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) + .build(); + } + } + } + return getDeletePrivateConnectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> + getCreateRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRoute", + requestType = com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> + getCreateRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, + com.google.longrunning.Operation> + getCreateRouteMethod; + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { + DatastreamGrpc.getCreateRouteMethod = + getCreateRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) + .build(); + } + } + } + return getCreateRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route> + getGetRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRoute", + requestType = com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.Route.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route> + getGetRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route> + getGetRouteMethod; + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { + DatastreamGrpc.getGetRouteMethod = + getGetRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.GetRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) + .build(); + } + } + } + return getGetRouteMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse> + getListRoutesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRoutes", + requestType = com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, + responseType = com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse> + getListRoutesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse> + getListRoutesMethod; + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { + DatastreamGrpc.getListRoutesMethod = + getListRoutesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.ListRoutesResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) + .build(); + } + } + } + return getListRoutesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> + getDeleteRouteMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", + requestType = com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> + getDeleteRouteMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, + com.google.longrunning.Operation> + getDeleteRouteMethod; + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + synchronized (DatastreamGrpc.class) { + if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { + DatastreamGrpc.getDeleteRouteMethod = + getDeleteRouteMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) + .build(); + } + } + } + return getDeleteRouteMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DatastreamStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + }; + return DatastreamStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DatastreamBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + }; + return DatastreamBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DatastreamFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DatastreamFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + }; + return DatastreamFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Datastream service
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + default void listConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + default void getConnectionProfile( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + default void createConnectionProfile( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + default void updateConnectionProfile( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + default void deleteConnectionProfile( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + default void discoverConnectionProfile( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDiscoverConnectionProfileMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + default void listStreams( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + default void getStream( + com.google.cloud.datastream.v1alpha1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + default void createStream( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + default void updateStream( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + default void deleteStream( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + default void fetchErrors( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchErrorsMethod(), responseObserver); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + default void fetchStaticIps( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchStaticIpsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + default void createPrivateConnection( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + default void getPrivateConnection( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + default void listPrivateConnections( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPrivateConnectionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + default void deletePrivateConnection( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePrivateConnectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + default void createRoute( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + default void getRoute( + com.google.cloud.datastream.v1alpha1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + default void listRoutes( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + default void deleteRoute( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRouteMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public abstract static class DatastreamImplBase implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return DatastreamGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamStub extends io.grpc.stub.AbstractAsyncStub { + private DatastreamStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public void listConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public void getConnectionProfile( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public void createConnectionProfile( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public void updateConnectionProfile( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public void deleteConnectionProfile( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public void discoverConnectionProfile( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public void listStreams( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public void getStream( + com.google.cloud.datastream.v1alpha1.GetStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public void createStream( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public void updateStream( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public void deleteStream( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public void fetchErrors( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public void fetchStaticIps( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public void createPrivateConnection( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public void getPrivateConnection( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public void listPrivateConnections( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public void deletePrivateConnection( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public void createRoute( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public void getRoute( + com.google.cloud.datastream.v1alpha1.GetRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public void listRoutes( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public void deleteRoute( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DatastreamBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + listConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.longrunning.Operation createConnectionProfile( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.longrunning.Operation updateConnectionProfile( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public com.google.longrunning.Operation deleteConnectionProfile( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + discoverConnectionProfile( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.Stream getStream( + com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.longrunning.Operation createStream( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.longrunning.Operation updateStream( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.longrunning.Operation deleteStream( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public com.google.longrunning.Operation fetchErrors( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchErrorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIps( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation createPrivateConnection( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + listPrivateConnections( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.longrunning.Operation deletePrivateConnection( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public com.google.longrunning.Operation createRoute( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.Route getRoute( + com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRouteMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRoutesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.longrunning.Operation deleteRoute( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRouteMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. + * + *
+   * Datastream service
+   * 
+ */ + public static final class DatastreamFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DatastreamFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DatastreamFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DatastreamFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Use this method to list connection profiles created in a project and
+     * location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> + listConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.ConnectionProfile> + getConnectionProfile( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a connection profile in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createConnectionProfile( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to update the parameters of a connection profile.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateConnectionProfile( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a connection profile..
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnectionProfile( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to discover a connection profile.
+     * The discover API call exposes the data objects and metadata belonging to
+     * the profile. Typically, a request returns children data objects under a
+     * parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> + discoverConnectionProfile( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list streams in a project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.ListStreamsResponse> + listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.Stream> + getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to update the configuration of a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to fetch any errors associated with a stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * The FetchStaticIps API call exposes the static ips used by Datastream.
+     * Typically, a request returns children data objects under
+     * a parent data object that's optionally supplied in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> + fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPrivateConnection( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.PrivateConnection> + getPrivateConnection( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list private connectivity configurations in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> + listPrivateConnections( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a private connectivity configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePrivateConnection( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to create a route for a private connectivity in a project
+     * and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to get details about a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.Route> + getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to list routes created for a private connectivity in a
+     * project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datastream.v1alpha1.ListRoutesResponse> + listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Use this method to delete a route.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_CONNECTION_PROFILES = 0; + private static final int METHODID_GET_CONNECTION_PROFILE = 1; + private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; + private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; + private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; + private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; + private static final int METHODID_LIST_STREAMS = 6; + private static final int METHODID_GET_STREAM = 7; + private static final int METHODID_CREATE_STREAM = 8; + private static final int METHODID_UPDATE_STREAM = 9; + private static final int METHODID_DELETE_STREAM = 10; + private static final int METHODID_FETCH_ERRORS = 11; + private static final int METHODID_FETCH_STATIC_IPS = 12; + private static final int METHODID_CREATE_PRIVATE_CONNECTION = 13; + private static final int METHODID_GET_PRIVATE_CONNECTION = 14; + private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 15; + private static final int METHODID_DELETE_PRIVATE_CONNECTION = 16; + private static final int METHODID_CREATE_ROUTE = 17; + private static final int METHODID_GET_ROUTE = 18; + private static final int METHODID_LIST_ROUTES = 19; + private static final int METHODID_DELETE_ROUTE = 20; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_CONNECTION_PROFILES: + serviceImpl.listConnectionProfiles( + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>) + responseObserver); + break; + case METHODID_GET_CONNECTION_PROFILE: + serviceImpl.getConnectionProfile( + (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CONNECTION_PROFILE: + serviceImpl.createConnectionProfile( + (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_PROFILE: + serviceImpl.updateConnectionProfile( + (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONNECTION_PROFILE: + serviceImpl.deleteConnectionProfile( + (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISCOVER_CONNECTION_PROFILE: + serviceImpl.discoverConnectionProfile( + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>) + responseObserver); + break; + case METHODID_LIST_STREAMS: + serviceImpl.listStreams( + (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListStreamsResponse>) + responseObserver); + break; + case METHODID_GET_STREAM: + serviceImpl.getStream( + (com.google.cloud.datastream.v1alpha1.GetStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_STREAM: + serviceImpl.createStream( + (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_STREAM: + serviceImpl.updateStream( + (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_STREAM: + serviceImpl.deleteStream( + (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_ERRORS: + serviceImpl.fetchErrors( + (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_STATIC_IPS: + serviceImpl.fetchStaticIps( + (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>) + responseObserver); + break; + case METHODID_CREATE_PRIVATE_CONNECTION: + serviceImpl.createPrivateConnection( + (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PRIVATE_CONNECTION: + serviceImpl.getPrivateConnection( + (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PRIVATE_CONNECTIONS: + serviceImpl.listPrivateConnections( + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>) + responseObserver); + break; + case METHODID_DELETE_PRIVATE_CONNECTION: + serviceImpl.deletePrivateConnection( + (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ROUTE: + serviceImpl.createRoute( + (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ROUTE: + serviceImpl.getRoute( + (com.google.cloud.datastream.v1alpha1.GetRouteRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ROUTES: + serviceImpl.listRoutes( + (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ROUTE: + serviceImpl.deleteRoute( + (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListConnectionProfilesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>( + service, METHODID_LIST_CONNECTION_PROFILES))) + .addMethod( + getGetConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.ConnectionProfile>( + service, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTION_PROFILE))) + .addMethod( + getDiscoverConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>( + service, METHODID_DISCOVER_CONNECTION_PROFILE))) + .addMethod( + getListStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListStreamsRequest, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse>( + service, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream>(service, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_STREAM))) + .addMethod( + getFetchErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, + com.google.longrunning.Operation>(service, METHODID_FETCH_ERRORS))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( + service, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_PRIVATE_CONNECTION))) + .addMethod( + getGetPrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, + com.google.cloud.datastream.v1alpha1.PrivateConnection>( + service, METHODID_GET_PRIVATE_CONNECTION))) + .addMethod( + getListPrivateConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>( + service, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route>(service, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( + service, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ROUTE))) + .build(); + } + + private abstract static class DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DatastreamBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Datastream"); + } + } + + private static final class DatastreamFileDescriptorSupplier + extends DatastreamBaseDescriptorSupplier { + DatastreamFileDescriptorSupplier() {} + } + + private static final class DatastreamMethodDescriptorSupplier + extends DatastreamBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DatastreamMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DatastreamGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) + .addMethod(getListConnectionProfilesMethod()) + .addMethod(getGetConnectionProfileMethod()) + .addMethod(getCreateConnectionProfileMethod()) + .addMethod(getUpdateConnectionProfileMethod()) + .addMethod(getDeleteConnectionProfileMethod()) + .addMethod(getDiscoverConnectionProfileMethod()) + .addMethod(getListStreamsMethod()) + .addMethod(getGetStreamMethod()) + .addMethod(getCreateStreamMethod()) + .addMethod(getUpdateStreamMethod()) + .addMethod(getDeleteStreamMethod()) + .addMethod(getFetchErrorsMethod()) + .addMethod(getFetchStaticIpsMethod()) + .addMethod(getCreatePrivateConnectionMethod()) + .addMethod(getGetPrivateConnectionMethod()) + .addMethod(getListPrivateConnectionsMethod()) + .addMethod(getDeletePrivateConnectionMethod()) + .addMethod(getCreateRouteMethod()) + .addMethod(getGetRouteMethod()) + .addMethod(getListRoutesMethod()) + .addMethod(getDeleteRouteMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java index e1ec879a59a7..838de8c7d110 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * AVRO file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.AvroFileFormat} */ -public final class AvroFileFormat extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroFileFormat extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.AvroFileFormat) AvroFileFormatOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroFileFormat.newBuilder() to construct. private AvroFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroFileFormat() { - } + + private AvroFileFormat() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.AvroFileFormat.class, com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1.AvroFileFormat.class, + com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.AvroFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1.AvroFileFormat other = (com.google.cloud.datastream.v1.AvroFileFormat) obj; + com.google.cloud.datastream.v1.AvroFileFormat other = + (com.google.cloud.datastream.v1.AvroFileFormat) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -101,130 +120,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.AvroFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.AvroFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * AVRO file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.AvroFileFormat} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.AvroFileFormat) com.google.cloud.datastream.v1.AvroFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.AvroFileFormat.class, com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1.AvroFileFormat.class, + com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1.AvroFileFormat.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormat buildPartial() { - com.google.cloud.datastream.v1.AvroFileFormat result = new com.google.cloud.datastream.v1.AvroFileFormat(this); + com.google.cloud.datastream.v1.AvroFileFormat result = + new com.google.cloud.datastream.v1.AvroFileFormat(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.datastream.v1.AvroFileFormat buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.AvroFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat)other); + return mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat) other); } else { super.mergeFrom(other); return this; @@ -328,12 +355,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +371,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +383,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.AvroFileFormat) private static final com.google.cloud.datastream.v1.AvroFileFormat DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.AvroFileFormat(); } @@ -369,27 +397,27 @@ public static com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +432,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java new file mode 100644 index 000000000000..26143146007d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface AvroFileFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java index 56f204e9de98..305582b4b551 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Represents a backfill job on a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.BackfillJob} */ -public final class BackfillJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BackfillJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BackfillJob) BackfillJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackfillJob.newBuilder() to construct. private BackfillJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BackfillJob() { state_ = 0; trigger_ = 0; @@ -27,39 +45,43 @@ private BackfillJob() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackfillJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BackfillJob.class, com.google.cloud.datastream.v1.BackfillJob.Builder.class); + com.google.cloud.datastream.v1.BackfillJob.class, + com.google.cloud.datastream.v1.BackfillJob.Builder.class); } /** + * + * *
    * State of the stream object's backfill job.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.BackfillJob.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -68,6 +90,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Backfill job was never started for the stream object (stream has backfill
      * strategy defined as manual or object was explicitly excluded from
@@ -78,6 +102,8 @@ public enum State
      */
     NOT_STARTED(1),
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -86,6 +112,8 @@ public enum State */ PENDING(2), /** + * + * *
      * Backfill job is running.
      * 
@@ -94,6 +122,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -102,6 +132,8 @@ public enum State */ STOPPED(4), /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -110,6 +142,8 @@ public enum State */ FAILED(5), /** + * + * *
      * Backfill completed successfully.
      * 
@@ -118,6 +152,8 @@ public enum State */ COMPLETED(6), /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -130,6 +166,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -138,6 +176,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Backfill job was never started for the stream object (stream has backfill
      * strategy defined as manual or object was explicitly excluded from
@@ -148,6 +188,8 @@ public enum State
      */
     public static final int NOT_STARTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -156,6 +198,8 @@ public enum State */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Backfill job is running.
      * 
@@ -164,6 +208,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -172,6 +218,8 @@ public enum State */ public static final int STOPPED_VALUE = 4; /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -180,6 +228,8 @@ public enum State */ public static final int FAILED_VALUE = 5; /** + * + * *
      * Backfill completed successfully.
      * 
@@ -188,6 +238,8 @@ public enum State */ public static final int COMPLETED_VALUE = 6; /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -197,7 +249,6 @@ public enum State
      */
     public static final int UNSUPPORTED_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -222,54 +273,59 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return NOT_STARTED;
-        case 2: return PENDING;
-        case 3: return ACTIVE;
-        case 4: return STOPPED;
-        case 5: return FAILED;
-        case 6: return COMPLETED;
-        case 7: return UNSUPPORTED;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return NOT_STARTED;
+        case 2:
+          return PENDING;
+        case 3:
+          return ACTIVE;
+        case 4:
+          return STOPPED;
+        case 5:
+          return FAILED;
+        case 6:
+          return COMPLETED;
+        case 7:
+          return UNSUPPORTED;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.datastream.v1.BackfillJob.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -287,15 +343,18 @@ private State(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Triggering reason for a backfill job.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.BackfillJob.Trigger} */ - public enum Trigger - implements com.google.protobuf.ProtocolMessageEnum { + public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Default value.
      * 
@@ -304,6 +363,8 @@ public enum Trigger */ TRIGGER_UNSPECIFIED(0), /** + * + * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -313,6 +374,8 @@ public enum Trigger
      */
     AUTOMATIC(1),
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -324,6 +387,8 @@ public enum Trigger ; /** + * + * *
      * Default value.
      * 
@@ -332,6 +397,8 @@ public enum Trigger */ public static final int TRIGGER_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -341,6 +408,8 @@ public enum Trigger
      */
     public static final int AUTOMATIC_VALUE = 1;
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -349,7 +418,6 @@ public enum Trigger */ public static final int MANUAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -374,49 +442,49 @@ public static Trigger valueOf(int value) { */ public static Trigger forNumber(int value) { switch (value) { - case 0: return TRIGGER_UNSPECIFIED; - case 1: return AUTOMATIC; - case 2: return MANUAL; - default: return null; + case 0: + return TRIGGER_UNSPECIFIED; + case 1: + return AUTOMATIC; + case 2: + return MANUAL; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Trigger> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Trigger findValueByNumber(int number) { - return Trigger.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Trigger findValueByNumber(int number) { + return Trigger.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.BackfillJob.getDescriptor().getEnumTypes().get(1); } private static final Trigger[] VALUES = values(); - public static Trigger valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Trigger valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -436,63 +504,88 @@ private Trigger(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_ = 0; /** + * + * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.State getState() { - com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob.State getState() { + com.google.cloud.datastream.v1.BackfillJob.State result = + com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED : result; } public static final int TRIGGER_FIELD_NUMBER = 2; private int trigger_ = 0; /** + * + * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The enum numeric value on the wire for trigger. */ - @java.lang.Override public int getTriggerValue() { + @java.lang.Override + public int getTriggerValue() { return trigger_; } /** + * + * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The trigger. */ - @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { - com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); - return result == null ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { + com.google.cloud.datastream.v1.BackfillJob.Trigger result = + com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); + return result == null + ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED + : result; } public static final int LAST_START_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastStartTime_; /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastStartTime field is set. */ @java.lang.Override @@ -500,37 +593,55 @@ public boolean hasLastStartTime() { return lastStartTime_ != null; } /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastStartTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastStartTime() { - return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; + return lastStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStartTime_; } /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { - return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; + return lastStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStartTime_; } public static final int LAST_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp lastEndTime_; /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastEndTime field is set. */ @java.lang.Override @@ -538,11 +649,16 @@ public boolean hasLastEndTime() { return lastEndTime_ != null; } /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastEndTime. */ @java.lang.Override @@ -550,11 +666,15 @@ public com.google.protobuf.Timestamp getLastEndTime() { return lastEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; } /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { @@ -562,67 +682,88 @@ public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { } public static final int ERRORS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -634,12 +775,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (state_ != com.google.cloud.datastream.v1.BackfillJob.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(1, state_); } - if (trigger_ != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + if (trigger_ + != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { output.writeEnum(2, trigger_); } if (lastStartTime_ != null) { @@ -661,24 +802,20 @@ public int getSerializedSize() { size = 0; if (state_ != com.google.cloud.datastream.v1.BackfillJob.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); } - if (trigger_ != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, trigger_); + if (trigger_ + != com.google.cloud.datastream.v1.BackfillJob.Trigger.TRIGGER_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, trigger_); } if (lastStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastStartTime()); } if (lastEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastEndTime()); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -688,27 +825,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.BackfillJob)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BackfillJob other = (com.google.cloud.datastream.v1.BackfillJob) obj; + com.google.cloud.datastream.v1.BackfillJob other = + (com.google.cloud.datastream.v1.BackfillJob) obj; if (state_ != other.state_) return false; if (trigger_ != other.trigger_) return false; if (hasLastStartTime() != other.hasLastStartTime()) return false; if (hasLastStartTime()) { - if (!getLastStartTime() - .equals(other.getLastStartTime())) return false; + if (!getLastStartTime().equals(other.getLastStartTime())) return false; } if (hasLastEndTime() != other.hasLastEndTime()) return false; if (hasLastEndTime()) { - if (!getLastEndTime() - .equals(other.getLastEndTime())) return false; + if (!getLastEndTime().equals(other.getLastEndTime())) return false; } - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -741,130 +876,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.BackfillJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BackfillJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BackfillJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.BackfillJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents a backfill job on a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BackfillJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BackfillJob) com.google.cloud.datastream.v1.BackfillJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BackfillJob.class, com.google.cloud.datastream.v1.BackfillJob.Builder.class); + com.google.cloud.datastream.v1.BackfillJob.class, + com.google.cloud.datastream.v1.BackfillJob.Builder.class); } // Construct using com.google.cloud.datastream.v1.BackfillJob.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -892,9 +1033,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; } @java.lang.Override @@ -913,9 +1054,12 @@ public com.google.cloud.datastream.v1.BackfillJob build() { @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob buildPartial() { - com.google.cloud.datastream.v1.BackfillJob result = new com.google.cloud.datastream.v1.BackfillJob(this); + com.google.cloud.datastream.v1.BackfillJob result = + new com.google.cloud.datastream.v1.BackfillJob(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -941,14 +1085,12 @@ private void buildPartial0(com.google.cloud.datastream.v1.BackfillJob result) { result.trigger_ = trigger_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.lastStartTime_ = lastStartTimeBuilder_ == null - ? lastStartTime_ - : lastStartTimeBuilder_.build(); + result.lastStartTime_ = + lastStartTimeBuilder_ == null ? lastStartTime_ : lastStartTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.lastEndTime_ = lastEndTimeBuilder_ == null - ? lastEndTime_ - : lastEndTimeBuilder_.build(); + result.lastEndTime_ = + lastEndTimeBuilder_ == null ? lastEndTime_ : lastEndTimeBuilder_.build(); } } @@ -956,38 +1098,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.BackfillJob result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BackfillJob) { - return mergeFrom((com.google.cloud.datastream.v1.BackfillJob)other); + return mergeFrom((com.google.cloud.datastream.v1.BackfillJob) other); } else { super.mergeFrom(other); return this; @@ -1026,9 +1169,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.BackfillJob other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000010); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -1060,49 +1204,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - trigger_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getLastStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getLastEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + trigger_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getLastStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getLastEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1112,26 +1257,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int state_ = 0; /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1142,24 +1295,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.State getState() { - com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.BackfillJob.State result = + com.google.cloud.datastream.v1.BackfillJob.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED + : result; } /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1173,11 +1335,14 @@ public Builder setState(com.google.cloud.datastream.v1.BackfillJob.State value) return this; } /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1189,22 +1354,29 @@ public Builder clearState() { private int trigger_ = 0; /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The enum numeric value on the wire for trigger. */ - @java.lang.Override public int getTriggerValue() { + @java.lang.Override + public int getTriggerValue() { return trigger_; } /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @param value The enum numeric value on the wire for trigger to set. * @return This builder for chaining. */ @@ -1215,24 +1387,33 @@ public Builder setTriggerValue(int value) { return this; } /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The trigger. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { - com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); - return result == null ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.BackfillJob.Trigger result = + com.google.cloud.datastream.v1.BackfillJob.Trigger.forNumber(trigger_); + return result == null + ? com.google.cloud.datastream.v1.BackfillJob.Trigger.UNRECOGNIZED + : result; } /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @param value The trigger to set. * @return This builder for chaining. */ @@ -1246,11 +1427,14 @@ public Builder setTrigger(com.google.cloud.datastream.v1.BackfillJob.Trigger val return this; } /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return This builder for chaining. */ public Builder clearTrigger() { @@ -1262,39 +1446,58 @@ public Builder clearTrigger() { private com.google.protobuf.Timestamp lastStartTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastStartTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastStartTimeBuilder_; /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastStartTime field is set. */ public boolean hasLastStartTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastStartTime. */ public com.google.protobuf.Timestamp getLastStartTime() { if (lastStartTimeBuilder_ == null) { - return lastStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; + return lastStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStartTime_; } else { return lastStartTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastStartTime(com.google.protobuf.Timestamp value) { if (lastStartTimeBuilder_ == null) { @@ -1310,14 +1513,17 @@ public Builder setLastStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastStartTimeBuilder_ == null) { lastStartTime_ = builderForValue.build(); } else { @@ -1328,17 +1534,21 @@ public Builder setLastStartTime( return this; } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastStartTime(com.google.protobuf.Timestamp value) { if (lastStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - lastStartTime_ != null && - lastStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && lastStartTime_ != null + && lastStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastStartTimeBuilder().mergeFrom(value); } else { lastStartTime_ = value; @@ -1351,11 +1561,15 @@ public Builder mergeLastStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastStartTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1368,11 +1582,15 @@ public Builder clearLastStartTime() { return this; } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastStartTimeBuilder() { bitField0_ |= 0x00000004; @@ -1380,36 +1598,48 @@ public com.google.protobuf.Timestamp.Builder getLastStartTimeBuilder() { return getLastStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { if (lastStartTimeBuilder_ != null) { return lastStartTimeBuilder_.getMessageOrBuilder(); } else { - return lastStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastStartTime_; + return lastStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastStartTime_; } } /** + * + * *
      * Output only. Backfill job's start time.
      * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastStartTimeFieldBuilder() { if (lastStartTimeBuilder_ == null) { - lastStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastStartTime(), - getParentForChildren(), - isClean()); + lastStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastStartTime(), getParentForChildren(), isClean()); lastStartTime_ = null; } return lastStartTimeBuilder_; @@ -1417,39 +1647,58 @@ public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastEndTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastEndTimeBuilder_; /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastEndTime field is set. */ public boolean hasLastEndTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastEndTime. */ public com.google.protobuf.Timestamp getLastEndTime() { if (lastEndTimeBuilder_ == null) { - return lastEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; + return lastEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEndTime_; } else { return lastEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setLastEndTime(com.google.protobuf.Timestamp value) { if (lastEndTimeBuilder_ == null) { @@ -1465,14 +1714,17 @@ public Builder setLastEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setLastEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastEndTimeBuilder_ == null) { lastEndTime_ = builderForValue.build(); } else { @@ -1483,17 +1735,21 @@ public Builder setLastEndTime( return this; } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeLastEndTime(com.google.protobuf.Timestamp value) { if (lastEndTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - lastEndTime_ != null && - lastEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && lastEndTime_ != null + && lastEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLastEndTimeBuilder().mergeFrom(value); } else { lastEndTime_ = value; @@ -1506,11 +1762,15 @@ public Builder mergeLastEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearLastEndTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1523,11 +1783,15 @@ public Builder clearLastEndTime() { return this; } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getLastEndTimeBuilder() { bitField0_ |= 0x00000008; @@ -1535,59 +1799,79 @@ public com.google.protobuf.Timestamp.Builder getLastEndTimeBuilder() { return getLastEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { if (lastEndTimeBuilder_ != null) { return lastEndTimeBuilder_.getMessageOrBuilder(); } else { - return lastEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastEndTime_; + return lastEndTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastEndTime_; } } /** + * + * *
      * Output only. Backfill job's end time.
      * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastEndTimeFieldBuilder() { if (lastEndTimeBuilder_ == null) { - lastEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastEndTime(), - getParentForChildren(), - isClean()); + lastEndTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastEndTime(), getParentForChildren(), isClean()); lastEndTime_ = null; } return lastEndTimeBuilder_; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -1597,11 +1881,15 @@ public java.util.List getErrorsList() { } } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -1611,11 +1899,15 @@ public int getErrorsCount() { } } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -1625,14 +1917,17 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1646,11 +1941,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1664,11 +1963,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -1684,14 +1987,17 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1705,14 +2011,17 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -1723,11 +2032,15 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1741,18 +2054,21 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1760,11 +2076,15 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -1777,11 +2097,15 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -1794,39 +2118,50 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( - int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1834,56 +2169,69 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors which caused the backfill job to fail.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsBuilderList() { + public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1893,12 +2241,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BackfillJob) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BackfillJob) private static final com.google.cloud.datastream.v1.BackfillJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BackfillJob(); } @@ -1907,27 +2255,27 @@ public static com.google.cloud.datastream.v1.BackfillJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1942,6 +2290,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BackfillJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java similarity index 55% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java index b5dc43d524bc..58eab00c274d 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java @@ -1,145 +1,218 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface BackfillJobOrBuilder extends +public interface BackfillJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BackfillJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Backfill job state.
    * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return The state. */ com.google.cloud.datastream.v1.BackfillJob.State getState(); /** + * + * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The enum numeric value on the wire for trigger. */ int getTriggerValue(); /** + * + * *
    * Backfill job's triggering reason.
    * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return The trigger. */ com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger(); /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastStartTime field is set. */ boolean hasLastStartTime(); /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastStartTime. */ com.google.protobuf.Timestamp getLastStartTime(); /** + * + * *
    * Output only. Backfill job's start time.
    * 
* - * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder(); /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the lastEndTime field is set. */ boolean hasLastEndTime(); /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The lastEndTime. */ com.google.protobuf.Timestamp getLastEndTime(); /** + * + * *
    * Output only. Backfill job's end time.
    * 
* - * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder(); /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.Error getErrors(int index); /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getErrorsCount(); /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsOrBuilderList(); + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Output only. Errors which caused the backfill job to fail.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java similarity index 61% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java index f5b9b495d89c..1c82a5a2971b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java @@ -1,130 +1,163 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * BigQuery destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */ -public final class BigQueryDestinationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryDestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) BigQueryDestinationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryDestinationConfig.newBuilder() to construct. private BigQueryDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryDestinationConfig() { - } + + private BigQueryDestinationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); } - public interface SingleTargetDatasetOrBuilder extends + public interface SingleTargetDatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The dataset ID of the target dataset.
      * 
* * string dataset_id = 1; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** + * + * *
      * The dataset ID of the target dataset.
      * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ - com.google.protobuf.ByteString - getDatasetIdBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); } /** + * + * *
    * A single target dataset to which all data will be streamed.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} */ - public static final class SingleTargetDataset extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SingleTargetDataset extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) SingleTargetDatasetOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SingleTargetDataset.newBuilder() to construct. private SingleTargetDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SingleTargetDataset() { datasetId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SingleTargetDataset(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); } public static final int DATASET_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object datasetId_ = ""; /** + * + * *
      * The dataset ID of the target dataset.
      * 
* * string dataset_id = 1; + * * @return The datasetId. */ @java.lang.Override @@ -133,29 +166,29 @@ public java.lang.String getDatasetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; } } /** + * + * *
      * The dataset ID of the target dataset.
      * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -164,6 +197,7 @@ public java.lang.String getDatasetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); } @@ -200,15 +233,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) obj; - if (!getDatasetId() - .equals(other.getDatasetId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,88 +262,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -318,39 +366,44 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A single target dataset to which all data will be streamed.
      * 
* - * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + .class); } - // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -360,19 +413,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = buildPartial(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -380,14 +436,19 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetData } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result) { + private void buildPartial0( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.datasetId_ = datasetId_; @@ -398,46 +459,55 @@ private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)other); + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { - if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) return this; if (!other.getDatasetId().isEmpty()) { datasetId_ = other.datasetId_; bitField0_ |= 0x00000001; @@ -469,17 +539,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - datasetId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -489,22 +561,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object datasetId_ = ""; /** + * + * *
        * The dataset ID of the target dataset.
        * 
* * string dataset_id = 1; + * * @return The datasetId. */ public java.lang.String getDatasetId() { java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetId_ = s; return s; @@ -513,20 +588,21 @@ public java.lang.String getDatasetId() { } } /** + * + * *
        * The dataset ID of the target dataset.
        * 
* * string dataset_id = 1; + * * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString - getDatasetIdBytes() { + public com.google.protobuf.ByteString getDatasetIdBytes() { java.lang.Object ref = datasetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetId_ = b; return b; } else { @@ -534,28 +610,35 @@ public java.lang.String getDatasetId() { } } /** + * + * *
        * The dataset ID of the target dataset.
        * 
* * string dataset_id = 1; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * The dataset ID of the target dataset.
        * 
* * string dataset_id = 1; + * * @return This builder for chaining. */ public Builder clearDatasetId() { @@ -565,23 +648,28 @@ public Builder clearDatasetId() { return this; } /** + * + * *
        * The dataset ID of the target dataset.
        * 
* * string dataset_id = 1; + * * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); datasetId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -594,41 +682,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDataset + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SingleTargetDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleTargetDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,93 +733,120 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface SourceHierarchyDatasetsOrBuilder extends + public interface SourceHierarchyDatasetsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return Whether the datasetTemplate field is set. */ boolean hasDatasetTemplate(); /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return The datasetTemplate. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate + getDatasetTemplate(); /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder(); } /** + * + * *
    * Destination datasets are created so that hierarchy of the destination data
    * objects matches the source hierarchy.
    * 
* - * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} */ - public static final class SourceHierarchyDatasets extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class SourceHierarchyDatasets extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) SourceHierarchyDatasetsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceHierarchyDatasets.newBuilder() to construct. private SourceHierarchyDatasets(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceHierarchyDatasets() { - } + + private SourceHierarchyDatasets() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceHierarchyDatasets(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); } - public interface DatasetTemplateOrBuilder extends + public interface DatasetTemplateOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -734,10 +854,13 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ java.lang.String getLocation(); /** + * + * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -745,12 +868,14 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for location. */ - com.google.protobuf.ByteString - getLocationBytes(); + com.google.protobuf.ByteString getLocationBytes(); /** + * + * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -758,10 +883,13 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string dataset_id_prefix = 2; + * * @return The datasetIdPrefix. */ java.lang.String getDatasetIdPrefix(); /** + * + * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -769,12 +897,14 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string dataset_id_prefix = 2; + * * @return The bytes for datasetIdPrefix. */ - com.google.protobuf.ByteString - getDatasetIdPrefixBytes(); + com.google.protobuf.ByteString getDatasetIdPrefixBytes(); /** + * + * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -786,10 +916,13 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string kms_key_name = 3; + * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** + * + * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -801,27 +934,31 @@ public interface DatasetTemplateOrBuilder extends
        * 
* * string kms_key_name = 3; + * * @return The bytes for kmsKeyName. */ - com.google.protobuf.ByteString - getKmsKeyNameBytes(); + com.google.protobuf.ByteString getKmsKeyNameBytes(); } /** + * + * *
      * Dataset template used for dynamic dataset creation.
      * 
* - * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} */ - public static final class DatasetTemplate extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DatasetTemplate extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) DatasetTemplateOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DatasetTemplate.newBuilder() to construct. private DatasetTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DatasetTemplate() { location_ = ""; datasetIdPrefix_ = ""; @@ -830,33 +967,39 @@ private DatasetTemplate() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DatasetTemplate(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object location_ = ""; /** + * + * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -864,6 +1007,7 @@ protected java.lang.Object newInstance(
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ @java.lang.Override @@ -872,14 +1016,15 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
        * Required. The geographic location where the dataset should reside. See
        * https://cloud.google.com/bigquery/docs/locations for supported
@@ -887,16 +1032,15 @@ public java.lang.String getLocation() {
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -905,9 +1049,12 @@ public java.lang.String getLocation() { } public static final int DATASET_ID_PREFIX_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object datasetIdPrefix_ = ""; /** + * + * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -915,6 +1062,7 @@ public java.lang.String getLocation() {
        * 
* * string dataset_id_prefix = 2; + * * @return The datasetIdPrefix. */ @java.lang.Override @@ -923,14 +1071,15 @@ public java.lang.String getDatasetIdPrefix() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetIdPrefix_ = s; return s; } } /** + * + * *
        * If supplied, every created dataset will have its name prefixed by the
        * provided value. The prefix and name will be separated by an underscore.
@@ -938,16 +1087,15 @@ public java.lang.String getDatasetIdPrefix() {
        * 
* * string dataset_id_prefix = 2; + * * @return The bytes for datasetIdPrefix. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetIdPrefixBytes() { + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { java.lang.Object ref = datasetIdPrefix_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetIdPrefix_ = b; return b; } else { @@ -956,9 +1104,12 @@ public java.lang.String getDatasetIdPrefix() { } public static final int KMS_KEY_NAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object kmsKeyName_ = ""; /** + * + * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -970,6 +1121,7 @@ public java.lang.String getDatasetIdPrefix() {
        * 
* * string kms_key_name = 3; + * * @return The kmsKeyName. */ @java.lang.Override @@ -978,14 +1130,15 @@ public java.lang.String getKmsKeyName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; } } /** + * + * *
        * Describes the Cloud KMS encryption key that will be used to
        * protect destination BigQuery table. The BigQuery Service Account
@@ -997,16 +1150,15 @@ public java.lang.String getKmsKeyName() {
        * 
* * string kms_key_name = 3; + * * @return The bytes for kmsKeyName. */ @java.lang.Override - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1015,6 +1167,7 @@ public java.lang.String getKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1026,8 +1179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -1063,19 +1215,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate)) { + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) obj; - - if (!getLocation() - .equals(other.getLocation())) return false; - if (!getDatasetIdPrefix() - .equals(other.getDatasetIdPrefix())) return false; - if (!getKmsKeyName() - .equals(other.getKmsKeyName())) return false; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getDatasetIdPrefix().equals(other.getDatasetIdPrefix())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1098,88 +1255,117 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1189,39 +1375,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
        * Dataset template used for dynamic dataset creation.
        * 
* - * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder.class); } - // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1233,19 +1426,26 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result = buildPartial(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1253,14 +1453,25 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate result) { + private void buildPartial0( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.location_ = location_; @@ -1277,46 +1488,60 @@ private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate)other); + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate other) { - if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance()) return this; if (!other.getLocation().isEmpty()) { location_ = other.location_; bitField0_ |= 0x00000001; @@ -1358,27 +1583,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - datasetIdPrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - kmsKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + datasetIdPrefix_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1388,10 +1617,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object location_ = ""; /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1399,13 +1631,13 @@ public Builder mergeFrom(
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -1414,6 +1646,8 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1421,15 +1655,14 @@ public java.lang.String getLocation() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -1437,6 +1670,8 @@ public java.lang.String getLocation() { } } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1444,18 +1679,22 @@ public java.lang.String getLocation() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } location_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1463,6 +1702,7 @@ public Builder setLocation(
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLocation() { @@ -1472,6 +1712,8 @@ public Builder clearLocation() { return this; } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1479,12 +1721,14 @@ public Builder clearLocation() {
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); location_ = value; bitField0_ |= 0x00000001; @@ -1494,6 +1738,8 @@ public Builder setLocationBytes( private java.lang.Object datasetIdPrefix_ = ""; /** + * + * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1501,13 +1747,13 @@ public Builder setLocationBytes(
          * 
* * string dataset_id_prefix = 2; + * * @return The datasetIdPrefix. */ public java.lang.String getDatasetIdPrefix() { java.lang.Object ref = datasetIdPrefix_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); datasetIdPrefix_ = s; return s; @@ -1516,6 +1762,8 @@ public java.lang.String getDatasetIdPrefix() { } } /** + * + * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1523,15 +1771,14 @@ public java.lang.String getDatasetIdPrefix() {
          * 
* * string dataset_id_prefix = 2; + * * @return The bytes for datasetIdPrefix. */ - public com.google.protobuf.ByteString - getDatasetIdPrefixBytes() { + public com.google.protobuf.ByteString getDatasetIdPrefixBytes() { java.lang.Object ref = datasetIdPrefix_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); datasetIdPrefix_ = b; return b; } else { @@ -1539,6 +1786,8 @@ public java.lang.String getDatasetIdPrefix() { } } /** + * + * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1546,18 +1795,22 @@ public java.lang.String getDatasetIdPrefix() {
          * 
* * string dataset_id_prefix = 2; + * * @param value The datasetIdPrefix to set. * @return This builder for chaining. */ - public Builder setDatasetIdPrefix( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdPrefix(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } datasetIdPrefix_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1565,6 +1818,7 @@ public Builder setDatasetIdPrefix(
          * 
* * string dataset_id_prefix = 2; + * * @return This builder for chaining. */ public Builder clearDatasetIdPrefix() { @@ -1574,6 +1828,8 @@ public Builder clearDatasetIdPrefix() { return this; } /** + * + * *
          * If supplied, every created dataset will have its name prefixed by the
          * provided value. The prefix and name will be separated by an underscore.
@@ -1581,12 +1837,14 @@ public Builder clearDatasetIdPrefix() {
          * 
* * string dataset_id_prefix = 2; + * * @param value The bytes for datasetIdPrefix to set. * @return This builder for chaining. */ - public Builder setDatasetIdPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); datasetIdPrefix_ = value; bitField0_ |= 0x00000002; @@ -1596,6 +1854,8 @@ public Builder setDatasetIdPrefixBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1607,13 +1867,13 @@ public Builder setDatasetIdPrefixBytes(
          * 
* * string kms_key_name = 3; + * * @return The kmsKeyName. */ public java.lang.String getKmsKeyName() { java.lang.Object ref = kmsKeyName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); kmsKeyName_ = s; return s; @@ -1622,6 +1882,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1633,15 +1895,14 @@ public java.lang.String getKmsKeyName() {
          * 
* * string kms_key_name = 3; + * * @return The bytes for kmsKeyName. */ - public com.google.protobuf.ByteString - getKmsKeyNameBytes() { + public com.google.protobuf.ByteString getKmsKeyNameBytes() { java.lang.Object ref = kmsKeyName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); kmsKeyName_ = b; return b; } else { @@ -1649,6 +1910,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1660,18 +1923,22 @@ public java.lang.String getKmsKeyName() {
          * 
* * string kms_key_name = 3; + * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } kmsKeyName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1683,6 +1950,7 @@ public Builder setKmsKeyName(
          * 
* * string kms_key_name = 3; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { @@ -1692,6 +1960,8 @@ public Builder clearKmsKeyName() { return this; } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1703,18 +1973,21 @@ public Builder clearKmsKeyName() {
          * 
* * string kms_key_name = 3; + * * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); kmsKeyName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,41 +2000,48 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DatasetTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1773,20 +2053,28 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int DATASET_TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate datasetTemplate_; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return Whether the datasetTemplate field is set. */ @java.lang.Override @@ -1794,30 +2082,50 @@ public boolean hasDatasetTemplate() { return datasetTemplate_ != null; } /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return The datasetTemplate. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate() { - return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; } /** + * + * *
      * The dataset template to use for dynamic dataset creation.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder() { - return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1829,8 +2137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (datasetTemplate_ != null) { output.writeMessage(2, getDatasetTemplate()); } @@ -1844,8 +2151,7 @@ public int getSerializedSize() { size = 0; if (datasetTemplate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDatasetTemplate()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDatasetTemplate()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1855,17 +2161,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { + if (!(obj + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) obj; if (hasDatasetTemplate() != other.hasDatasetTemplate()) return false; if (hasDatasetTemplate()) { - if (!getDatasetTemplate() - .equals(other.getDatasetTemplate())) return false; + if (!getDatasetTemplate().equals(other.getDatasetTemplate())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1887,88 +2195,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1978,40 +2300,46 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Destination datasets are created so that hierarchy of the destination data
      * objects matches the source hierarchy.
      * 
* - * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} + * Protobuf type {@code + * google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder.class); } - // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2025,19 +2353,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets build() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = buildPartial(); + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + build() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2045,19 +2377,24 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + buildPartial() { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result) { + private void buildPartial0( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.datasetTemplate_ = datasetTemplateBuilder_ == null - ? datasetTemplate_ - : datasetTemplateBuilder_.build(); + result.datasetTemplate_ = + datasetTemplateBuilder_ == null ? datasetTemplate_ : datasetTemplateBuilder_.build(); } } @@ -2065,46 +2402,56 @@ private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)other); + if (other + instanceof + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) { + return mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { - if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets other) { + if (other + == com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) return this; if (other.hasDatasetTemplate()) { mergeDatasetTemplate(other.getDatasetTemplate()); } @@ -2134,19 +2481,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getDatasetTemplateFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage( + getDatasetTemplateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2156,45 +2504,76 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate datasetTemplate_; + private com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + datasetTemplate_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder> datasetTemplateBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> + datasetTemplateBuilder_; /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return Whether the datasetTemplate field is set. */ public boolean hasDatasetTemplate() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return The datasetTemplate. */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate getDatasetTemplate() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + getDatasetTemplate() { if (datasetTemplateBuilder_ == null) { - return datasetTemplate_ == null ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; } else { return datasetTemplateBuilder_.getMessage(); } } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ - public Builder setDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate value) { + public Builder setDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { if (datasetTemplateBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2208,14 +2587,20 @@ public Builder setDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestina return this; } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ public Builder setDatasetTemplate( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + builderForValue) { if (datasetTemplateBuilder_ == null) { datasetTemplate_ = builderForValue.build(); } else { @@ -2226,17 +2611,26 @@ public Builder setDatasetTemplate( return this; } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ - public Builder mergeDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate value) { + public Builder mergeDatasetTemplate( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + value) { if (datasetTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - datasetTemplate_ != null && - datasetTemplate_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && datasetTemplate_ != null + && datasetTemplate_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance()) { getDatasetTemplateBuilder().mergeFrom(value); } else { datasetTemplate_ = value; @@ -2249,11 +2643,15 @@ public Builder mergeDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDesti return this; } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ public Builder clearDatasetTemplate() { bitField0_ = (bitField0_ & ~0x00000001); @@ -2266,52 +2664,80 @@ public Builder clearDatasetTemplate() { return this; } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder getDatasetTemplateBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + getDatasetTemplateBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDatasetTemplateFieldBuilder().getBuilder(); } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder getDatasetTemplateOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { if (datasetTemplateBuilder_ != null) { return datasetTemplateBuilder_.getMessageOrBuilder(); } else { - return datasetTemplate_ == null ? - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.getDefaultInstance() : datasetTemplate_; + return datasetTemplate_ == null + ? com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.getDefaultInstance() + : datasetTemplate_; } } /** + * + * *
        * The dataset template to use for dynamic dataset creation.
        * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder> getDatasetTemplateFieldBuilder() { if (datasetTemplateBuilder_ == null) { - datasetTemplateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplateOrBuilder>( - getDatasetTemplate(), - getParentForChildren(), - isClean()); + datasetTemplateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder>( + getDatasetTemplate(), getParentForChildren(), isClean()); datasetTemplate_ = null; } return datasetTemplateBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2324,41 +2750,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) - private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets(); } - public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstance() { + public static com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceHierarchyDatasets parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceHierarchyDatasets parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2370,21 +2801,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int datasetConfigCase_ = 0; private java.lang.Object datasetConfig_; + public enum DatasetConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SINGLE_TARGET_DATASET(201), SOURCE_HIERARCHY_DATASETS(202), DATASETCONFIG_NOT_SET(0); private final int value; + private DatasetConfigCase(int value) { this.value = value; } @@ -2400,30 +2834,38 @@ public static DatasetConfigCase valueOf(int value) { public static DatasetConfigCase forNumber(int value) { switch (value) { - case 201: return SINGLE_TARGET_DATASET; - case 202: return SOURCE_HIERARCHY_DATASETS; - case 0: return DATASETCONFIG_NOT_SET; - default: return null; + case 201: + return SINGLE_TARGET_DATASET; + case 202: + return SOURCE_HIERARCHY_DATASETS; + case 0: + return DATASETCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DatasetConfigCase - getDatasetConfigCase() { - return DatasetConfigCase.forNumber( - datasetConfigCase_); + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); } public static final int SINGLE_TARGET_DATASET_FIELD_NUMBER = 201; /** + * + * *
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return Whether the singleTargetDataset field is set. */ @java.lang.Override @@ -2431,42 +2873,62 @@ public boolean hasSingleTargetDataset() { return datasetConfigCase_ == 201; } /** + * + * *
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return The singleTargetDataset. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } /** + * + * *
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } public static final int SOURCE_HIERARCHY_DATASETS_FIELD_NUMBER = 202; /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return Whether the sourceHierarchyDatasets field is set. */ @java.lang.Override @@ -2474,38 +2936,55 @@ public boolean hasSourceHierarchyDatasets() { return datasetConfigCase_ == 202; } /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return The sourceHierarchyDatasets. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } public static final int DATA_FRESHNESS_FIELD_NUMBER = 300; private com.google.protobuf.Duration dataFreshness_; /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2514,6 +2993,7 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD
    * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return Whether the dataFreshness field is set. */ @java.lang.Override @@ -2521,6 +3001,8 @@ public boolean hasDataFreshness() { return dataFreshness_ != null; } /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2529,13 +3011,18 @@ public boolean hasDataFreshness() {
    * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return The dataFreshness. */ @java.lang.Override public com.google.protobuf.Duration getDataFreshness() { - return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_; + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; } /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -2547,10 +3034,13 @@ public com.google.protobuf.Duration getDataFreshness() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
-    return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_;
+    return dataFreshness_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : dataFreshness_;
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2562,13 +3052,18 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (datasetConfigCase_ == 201) {
-      output.writeMessage(201, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_);
+      output.writeMessage(
+          201,
+          (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
+              datasetConfig_);
     }
     if (datasetConfigCase_ == 202) {
-      output.writeMessage(202, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_);
+      output.writeMessage(
+          202,
+          (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)
+              datasetConfig_);
     }
     if (dataFreshness_ != null) {
       output.writeMessage(300, getDataFreshness());
@@ -2583,16 +3078,21 @@ public int getSerializedSize() {
 
     size = 0;
     if (datasetConfigCase_ == 201) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(201, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              201,
+              (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset)
+                  datasetConfig_);
     }
     if (datasetConfigCase_ == 202) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(202, (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              202,
+              (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets)
+                  datasetConfig_);
     }
     if (dataFreshness_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(300, getDataFreshness());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(300, getDataFreshness());
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -2602,27 +3102,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.BigQueryDestinationConfig other = (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj;
+    com.google.cloud.datastream.v1.BigQueryDestinationConfig other =
+        (com.google.cloud.datastream.v1.BigQueryDestinationConfig) obj;
 
     if (hasDataFreshness() != other.hasDataFreshness()) return false;
     if (hasDataFreshness()) {
-      if (!getDataFreshness()
-          .equals(other.getDataFreshness())) return false;
+      if (!getDataFreshness().equals(other.getDataFreshness())) return false;
     }
     if (!getDatasetConfigCase().equals(other.getDatasetConfigCase())) return false;
     switch (datasetConfigCase_) {
       case 201:
-        if (!getSingleTargetDataset()
-            .equals(other.getSingleTargetDataset())) return false;
+        if (!getSingleTargetDataset().equals(other.getSingleTargetDataset())) return false;
         break;
       case 202:
-        if (!getSourceHierarchyDatasets()
-            .equals(other.getSourceHierarchyDatasets())) return false;
+        if (!getSourceHierarchyDatasets().equals(other.getSourceHierarchyDatasets())) return false;
         break;
       case 0:
       default:
@@ -2660,129 +3158,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.BigQueryDestinationConfig parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryDestinationConfig prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.datastream.v1.BigQueryDestinationConfig prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * BigQuery destination configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryDestinationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryDestinationConfig) com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.class, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2804,9 +3309,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; } @java.lang.Override @@ -2825,8 +3330,11 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { - com.google.cloud.datastream.v1.BigQueryDestinationConfig result = new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.BigQueryDestinationConfig result = + new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2835,21 +3343,19 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000004) != 0)) { - result.dataFreshness_ = dataFreshnessBuilder_ == null - ? dataFreshness_ - : dataFreshnessBuilder_.build(); + result.dataFreshness_ = + dataFreshnessBuilder_ == null ? dataFreshness_ : dataFreshnessBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1.BigQueryDestinationConfig result) { result.datasetConfigCase_ = datasetConfigCase_; result.datasetConfig_ = this.datasetConfig_; - if (datasetConfigCase_ == 201 && - singleTargetDatasetBuilder_ != null) { + if (datasetConfigCase_ == 201 && singleTargetDatasetBuilder_ != null) { result.datasetConfig_ = singleTargetDatasetBuilder_.build(); } - if (datasetConfigCase_ == 202 && - sourceHierarchyDatasetsBuilder_ != null) { + if (datasetConfigCase_ == 202 && sourceHierarchyDatasetsBuilder_ != null) { result.datasetConfig_ = sourceHierarchyDatasetsBuilder_.build(); } } @@ -2858,38 +3364,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.BigQueryDestinati public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BigQueryDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig) other); } else { super.mergeFrom(other); return this; @@ -2897,22 +3404,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.BigQueryDestinationConfig other) { - if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) + return this; if (other.hasDataFreshness()) { mergeDataFreshness(other.getDataFreshness()); } switch (other.getDatasetConfigCase()) { - case SINGLE_TARGET_DATASET: { - mergeSingleTargetDataset(other.getSingleTargetDataset()); - break; - } - case SOURCE_HIERARCHY_DATASETS: { - mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); - break; - } - case DATASETCONFIG_NOT_SET: { - break; - } + case SINGLE_TARGET_DATASET: + { + mergeSingleTargetDataset(other.getSingleTargetDataset()); + break; + } + case SOURCE_HIERARCHY_DATASETS: + { + mergeSourceHierarchyDatasets(other.getSourceHierarchyDatasets()); + break; + } + case DATASETCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2940,33 +3451,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 1610: { - input.readMessage( - getSingleTargetDatasetFieldBuilder().getBuilder(), - extensionRegistry); - datasetConfigCase_ = 201; - break; - } // case 1610 - case 1618: { - input.readMessage( - getSourceHierarchyDatasetsFieldBuilder().getBuilder(), - extensionRegistry); - datasetConfigCase_ = 202; - break; - } // case 1618 - case 2402: { - input.readMessage( - getDataFreshnessFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 2402 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 1610: + { + input.readMessage( + getSingleTargetDatasetFieldBuilder().getBuilder(), extensionRegistry); + datasetConfigCase_ = 201; + break; + } // case 1610 + case 1618: + { + input.readMessage( + getSourceHierarchyDatasetsFieldBuilder().getBuilder(), extensionRegistry); + datasetConfigCase_ = 202; + break; + } // case 1618 + case 2402: + { + input.readMessage(getDataFreshnessFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 2402 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2976,12 +3487,12 @@ public Builder mergeFrom( } // finally return this; } + private int datasetConfigCase_ = 0; private java.lang.Object datasetConfig_; - public DatasetConfigCase - getDatasetConfigCase() { - return DatasetConfigCase.forNumber( - datasetConfigCase_); + + public DatasetConfigCase getDatasetConfigCase() { + return DatasetConfigCase.forNumber(datasetConfigCase_); } public Builder clearDatasetConfig() { @@ -2994,13 +3505,21 @@ public Builder clearDatasetConfig() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> singleTargetDatasetBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + singleTargetDatasetBuilder_; /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return Whether the singleTargetDataset field is set. */ @java.lang.Override @@ -3008,35 +3527,49 @@ public boolean hasSingleTargetDataset() { return datasetConfigCase_ == 201; } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return The singleTargetDataset. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset() { if (singleTargetDatasetBuilder_ == null) { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } else { if (datasetConfigCase_ == 201) { return singleTargetDatasetBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ - public Builder setSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + public Builder setSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { if (singleTargetDatasetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3050,14 +3583,19 @@ public Builder setSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryDes return this; } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ public Builder setSingleTargetDataset( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + builderForValue) { if (singleTargetDatasetBuilder_ == null) { datasetConfig_ = builderForValue.build(); onChanged(); @@ -3068,18 +3606,30 @@ public Builder setSingleTargetDataset( return this; } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ - public Builder mergeSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { + public Builder mergeSingleTargetDataset( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset value) { if (singleTargetDatasetBuilder_ == null) { - if (datasetConfigCase_ == 201 && - datasetConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance()) { - datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_) - .mergeFrom(value).buildPartial(); + if (datasetConfigCase_ == 201 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); } else { datasetConfig_ = value; } @@ -3095,11 +3645,15 @@ public Builder mergeSingleTargetDataset(com.google.cloud.datastream.v1.BigQueryD return this; } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ public Builder clearSingleTargetDataset() { if (singleTargetDatasetBuilder_ == null) { @@ -3118,50 +3672,76 @@ public Builder clearSingleTargetDataset() { return this; } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder getSingleTargetDatasetBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + getSingleTargetDatasetBuilder() { return getSingleTargetDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder() { if ((datasetConfigCase_ == 201) && (singleTargetDatasetBuilder_ != null)) { return singleTargetDatasetBuilder_.getMessageOrBuilder(); } else { if (datasetConfigCase_ == 201) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } } /** + * + * *
      * Single destination dataset.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder> getSingleTargetDatasetFieldBuilder() { if (singleTargetDatasetBuilder_ == null) { if (!(datasetConfigCase_ == 201)) { - datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.getDefaultInstance(); + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .getDefaultInstance(); } - singleTargetDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder>( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_, + singleTargetDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SingleTargetDatasetOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_, getParentForChildren(), isClean()); datasetConfig_ = null; @@ -3172,13 +3752,23 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetData } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder> sourceHierarchyDatasetsBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> + sourceHierarchyDatasetsBuilder_; /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return Whether the sourceHierarchyDatasets field is set. */ @java.lang.Override @@ -3186,35 +3776,49 @@ public boolean hasSourceHierarchyDatasets() { return datasetConfigCase_ == 202; } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return The sourceHierarchyDatasets. */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets() { if (sourceHierarchyDatasetsBuilder_ == null) { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } else { if (datasetConfigCase_ == 202) { return sourceHierarchyDatasetsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ - public Builder setSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + public Builder setSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { if (sourceHierarchyDatasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3228,14 +3832,19 @@ public Builder setSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQuer return this; } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ public Builder setSourceHierarchyDatasets( - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder builderForValue) { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + builderForValue) { if (sourceHierarchyDatasetsBuilder_ == null) { datasetConfig_ = builderForValue.build(); onChanged(); @@ -3246,18 +3855,31 @@ public Builder setSourceHierarchyDatasets( return this; } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ - public Builder mergeSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { + public Builder mergeSourceHierarchyDatasets( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets value) { if (sourceHierarchyDatasetsBuilder_ == null) { - if (datasetConfigCase_ == 202 && - datasetConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance()) { - datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_) - .mergeFrom(value).buildPartial(); + if (datasetConfigCase_ == 202 + && datasetConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance()) { + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_) + .mergeFrom(value) + .buildPartial(); } else { datasetConfig_ = value; } @@ -3273,11 +3895,15 @@ public Builder mergeSourceHierarchyDatasets(com.google.cloud.datastream.v1.BigQu return this; } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ public Builder clearSourceHierarchyDatasets() { if (sourceHierarchyDatasetsBuilder_ == null) { @@ -3296,50 +3922,78 @@ public Builder clearSourceHierarchyDatasets() { return this; } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder getSourceHierarchyDatasetsBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder + getSourceHierarchyDatasetsBuilder() { return getSourceHierarchyDatasetsFieldBuilder().getBuilder(); } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder() { if ((datasetConfigCase_ == 202) && (sourceHierarchyDatasetsBuilder_ != null)) { return sourceHierarchyDatasetsBuilder_.getMessageOrBuilder(); } else { if (datasetConfigCase_ == 202) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_; } - return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + return com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } } /** + * + * *
      * Source hierarchy datasets.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder> getSourceHierarchyDatasetsFieldBuilder() { if (sourceHierarchyDatasetsBuilder_ == null) { if (!(datasetConfigCase_ == 202)) { - datasetConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.getDefaultInstance(); + datasetConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .getDefaultInstance(); } - sourceHierarchyDatasetsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder>( - (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_, + sourceHierarchyDatasetsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasetsOrBuilder>( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + datasetConfig_, getParentForChildren(), isClean()); datasetConfig_ = null; @@ -3351,8 +4005,13 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD private com.google.protobuf.Duration dataFreshness_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> dataFreshnessBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + dataFreshnessBuilder_; /** + * + * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3361,12 +4020,15 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD
      * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return Whether the dataFreshness field is set. */ public boolean hasDataFreshness() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3375,16 +4037,21 @@ public boolean hasDataFreshness() {
      * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return The dataFreshness. */ public com.google.protobuf.Duration getDataFreshness() { if (dataFreshnessBuilder_ == null) { - return dataFreshness_ == null ? com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_; + return dataFreshness_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : dataFreshness_; } else { return dataFreshnessBuilder_.getMessage(); } } /** + * + * *
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3408,6 +4075,8 @@ public Builder setDataFreshness(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3417,8 +4086,7 @@ public Builder setDataFreshness(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration data_freshness = 300;
      */
-    public Builder setDataFreshness(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setDataFreshness(com.google.protobuf.Duration.Builder builderForValue) {
       if (dataFreshnessBuilder_ == null) {
         dataFreshness_ = builderForValue.build();
       } else {
@@ -3429,6 +4097,8 @@ public Builder setDataFreshness(
       return this;
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3440,9 +4110,9 @@ public Builder setDataFreshness(
      */
     public Builder mergeDataFreshness(com.google.protobuf.Duration value) {
       if (dataFreshnessBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          dataFreshness_ != null &&
-          dataFreshness_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && dataFreshness_ != null
+            && dataFreshness_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getDataFreshnessBuilder().mergeFrom(value);
         } else {
           dataFreshness_ = value;
@@ -3455,6 +4125,8 @@ public Builder mergeDataFreshness(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3475,6 +4147,8 @@ public Builder clearDataFreshness() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3490,6 +4164,8 @@ public com.google.protobuf.Duration.Builder getDataFreshnessBuilder() {
       return getDataFreshnessFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3503,11 +4179,14 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
       if (dataFreshnessBuilder_ != null) {
         return dataFreshnessBuilder_.getMessageOrBuilder();
       } else {
-        return dataFreshness_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : dataFreshness_;
+        return dataFreshness_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : dataFreshness_;
       }
     }
     /**
+     *
+     *
      * 
      * The guaranteed data freshness (in seconds) when querying tables created by
      * the stream. Editing this field will only affect new tables created in the
@@ -3518,21 +4197,24 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
      * .google.protobuf.Duration data_freshness = 300;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getDataFreshnessFieldBuilder() {
       if (dataFreshnessBuilder_ == null) {
-        dataFreshnessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getDataFreshness(),
-                getParentForChildren(),
-                isClean());
+        dataFreshnessBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getDataFreshness(), getParentForChildren(), isClean());
         dataFreshness_ = null;
       }
       return dataFreshnessBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -3542,12 +4224,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryDestinationConfig)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryDestinationConfig)
   private static final com.google.cloud.datastream.v1.BigQueryDestinationConfig DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryDestinationConfig();
   }
@@ -3556,27 +4238,27 @@ public static com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaul
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public BigQueryDestinationConfig parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public BigQueryDestinationConfig parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3591,6 +4273,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
similarity index 59%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
index 946511513752..a9045b1c764d 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
@@ -1,67 +1,117 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface BigQueryDestinationConfigOrBuilder extends
+public interface BigQueryDestinationConfigOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryDestinationConfig)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return Whether the singleTargetDataset field is set. */ boolean hasSingleTargetDataset(); /** + * + * *
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * * @return The singleTargetDataset. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset getSingleTargetDataset(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + getSingleTargetDataset(); /** + * + * *
    * Single destination dataset.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset single_target_dataset = 201; + * */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder getSingleTargetDatasetOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDatasetOrBuilder + getSingleTargetDatasetOrBuilder(); /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return Whether the sourceHierarchyDatasets field is set. */ boolean hasSourceHierarchyDatasets(); /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * * @return The sourceHierarchyDatasets. */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets getSourceHierarchyDatasets(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + getSourceHierarchyDatasets(); /** + * + * *
    * Source hierarchy datasets.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets source_hierarchy_datasets = 202; + * */ - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder getSourceHierarchyDatasetsOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasetsOrBuilder + getSourceHierarchyDatasetsOrBuilder(); /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -70,10 +120,13 @@ public interface BigQueryDestinationConfigOrBuilder extends
    * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return Whether the dataFreshness field is set. */ boolean hasDataFreshness(); /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -82,10 +135,13 @@ public interface BigQueryDestinationConfigOrBuilder extends
    * 
* * .google.protobuf.Duration data_freshness = 300; + * * @return The dataFreshness. */ com.google.protobuf.Duration getDataFreshness(); /** + * + * *
    * The guaranteed data freshness (in seconds) when querying tables created by
    * the stream. Editing this field will only affect new tables created in the
@@ -97,5 +153,6 @@ public interface BigQueryDestinationConfigOrBuilder extends
    */
   com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder();
 
-  public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase getDatasetConfigCase();
+  public com.google.cloud.datastream.v1.BigQueryDestinationConfig.DatasetConfigCase
+      getDatasetConfigCase();
 }
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
similarity index 64%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
index eb9f050486c2..aa69e86ae576 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
@@ -1,53 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * BigQuery warehouse profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} */ -public final class BigQueryProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BigQueryProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BigQueryProfile) BigQueryProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BigQueryProfile.newBuilder() to construct. private BigQueryProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BigQueryProfile() { - } + + private BigQueryProfile() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BigQueryProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryProfile.class, com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.BigQueryProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.BigQueryProfile other = (com.google.cloud.datastream.v1.BigQueryProfile) obj; + com.google.cloud.datastream.v1.BigQueryProfile other = + (com.google.cloud.datastream.v1.BigQueryProfile) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -101,130 +120,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.BigQueryProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.BigQueryProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * BigQuery warehouse profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.BigQueryProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.BigQueryProfile) com.google.cloud.datastream.v1.BigQueryProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.BigQueryProfile.class, com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); + com.google.cloud.datastream.v1.BigQueryProfile.class, + com.google.cloud.datastream.v1.BigQueryProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.BigQueryProfile.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.datastream.v1.BigQueryProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { - com.google.cloud.datastream.v1.BigQueryProfile result = new com.google.cloud.datastream.v1.BigQueryProfile(this); + com.google.cloud.datastream.v1.BigQueryProfile result = + new com.google.cloud.datastream.v1.BigQueryProfile(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.datastream.v1.BigQueryProfile buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.BigQueryProfile) { - return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile)other); + return mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) other); } else { super.mergeFrom(other); return this; @@ -328,12 +355,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +371,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +383,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.BigQueryProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.BigQueryProfile) private static final com.google.cloud.datastream.v1.BigQueryProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.BigQueryProfile(); } @@ -369,27 +397,27 @@ public static com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +432,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java new file mode 100644 index 000000000000..65ad646b3e60 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface BigQueryProfileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index 08befbc21442..d4fe64365553 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * A set of reusable connection configurations to be used as a source or
  * destination for a stream.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile}
  */
-public final class ConnectionProfile extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConnectionProfile extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ConnectionProfile)
     ConnectionProfileOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConnectionProfile.newBuilder() to construct.
   private ConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConnectionProfile() {
     name_ = "";
     displayName_ = "";
@@ -27,45 +45,47 @@ private ConnectionProfile() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConnectionProfile();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.ConnectionProfile.class, com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
+            com.google.cloud.datastream.v1.ConnectionProfile.class,
+            com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
   }
 
   private int profileCase_ = 0;
   private java.lang.Object profile_;
+
   public enum ProfileCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     ORACLE_PROFILE(100),
     GCS_PROFILE(101),
@@ -74,6 +94,7 @@ public enum ProfileCase
     POSTGRESQL_PROFILE(104),
     PROFILE_NOT_SET(0);
     private final int value;
+
     private ProfileCase(int value) {
       this.value = value;
     }
@@ -89,36 +110,45 @@ public static ProfileCase valueOf(int value) {
 
     public static ProfileCase forNumber(int value) {
       switch (value) {
-        case 100: return ORACLE_PROFILE;
-        case 101: return GCS_PROFILE;
-        case 102: return MYSQL_PROFILE;
-        case 103: return BIGQUERY_PROFILE;
-        case 104: return POSTGRESQL_PROFILE;
-        case 0: return PROFILE_NOT_SET;
-        default: return null;
+        case 100:
+          return ORACLE_PROFILE;
+        case 101:
+          return GCS_PROFILE;
+        case 102:
+          return MYSQL_PROFILE;
+        case 103:
+          return BIGQUERY_PROFILE;
+        case 104:
+          return POSTGRESQL_PROFILE;
+        case 0:
+          return PROFILE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ProfileCase
-  getProfileCase() {
-    return ProfileCase.forNumber(
-        profileCase_);
+  public ProfileCase getProfileCase() {
+    return ProfileCase.forNumber(profileCase_);
   }
 
   private int connectivityCase_ = 0;
   private java.lang.Object connectivity_;
+
   public enum ConnectivityCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STATIC_SERVICE_IP_CONNECTIVITY(200),
     FORWARD_SSH_CONNECTIVITY(201),
     PRIVATE_CONNECTIVITY(202),
     CONNECTIVITY_NOT_SET(0);
     private final int value;
+
     private ConnectivityCase(int value) {
       this.value = value;
     }
@@ -134,33 +164,41 @@ public static ConnectivityCase valueOf(int value) {
 
     public static ConnectivityCase forNumber(int value) {
       switch (value) {
-        case 200: return STATIC_SERVICE_IP_CONNECTIVITY;
-        case 201: return FORWARD_SSH_CONNECTIVITY;
-        case 202: return PRIVATE_CONNECTIVITY;
-        case 0: return CONNECTIVITY_NOT_SET;
-        default: return null;
+        case 200:
+          return STATIC_SERVICE_IP_CONNECTIVITY;
+        case 201:
+          return FORWARD_SSH_CONNECTIVITY;
+        case 202:
+          return PRIVATE_CONNECTIVITY;
+        case 0:
+          return CONNECTIVITY_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public ConnectivityCase
-  getConnectivityCase() {
-    return ConnectivityCase.forNumber(
-        connectivityCase_);
+  public ConnectivityCase getConnectivityCase() {
+    return ConnectivityCase.forNumber(connectivityCase_);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -169,29 +207,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -202,11 +240,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -214,11 +256,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -226,11 +272,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -240,11 +289,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -252,11 +305,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -264,11 +321,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -276,32 +336,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -309,20 +371,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -334,6 +397,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -341,17 +406,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -359,11 +426,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -371,14 +438,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -387,29 +458,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -419,11 +490,14 @@ public java.lang.String getDisplayName() { public static final int ORACLE_PROFILE_FIELD_NUMBER = 100; /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -431,21 +505,26 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1.OracleProfile) profile_; } return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -455,18 +534,21 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { @java.lang.Override public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1.OracleProfile) profile_; } return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } public static final int GCS_PROFILE_FIELD_NUMBER = 101; /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -474,21 +556,26 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1.GcsProfile) profile_; } return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -498,18 +585,21 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { @java.lang.Override public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1.GcsProfile) profile_; } return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } public static final int MYSQL_PROFILE_FIELD_NUMBER = 102; /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -517,21 +607,26 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -541,18 +636,21 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } public static final int BIGQUERY_PROFILE_FIELD_NUMBER = 103; /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return Whether the bigqueryProfile field is set. */ @java.lang.Override @@ -560,21 +658,26 @@ public boolean hasBigqueryProfile() { return profileCase_ == 103; } /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return The bigqueryProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { if (profileCase_ == 103) { - return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; } return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
@@ -584,18 +687,21 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { @java.lang.Override public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder() { if (profileCase_ == 103) { - return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; + return (com.google.cloud.datastream.v1.BigQueryProfile) profile_; } return com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } public static final int POSTGRESQL_PROFILE_FIELD_NUMBER = 104; /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return Whether the postgresqlProfile field is set. */ @java.lang.Override @@ -603,21 +709,26 @@ public boolean hasPostgresqlProfile() { return profileCase_ == 104; } /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return The postgresqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { if (profileCase_ == 104) { - return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; } return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
@@ -627,18 +738,23 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { if (profileCase_ == 104) { - return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; + return (com.google.cloud.datastream.v1.PostgresqlProfile) profile_; } return com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 200; /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -646,42 +762,57 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 200; } /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity + getStaticServiceIpConnectivity() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 201; /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -689,42 +820,53 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 201; } /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return The forwardSshConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 202; /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -732,21 +874,26 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return The privateConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } /** + * + * *
    * Private connectivity.
    * 
@@ -754,14 +901,16 @@ public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -773,8 +922,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -784,12 +932,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -809,10 +953,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } if (connectivityCase_ == 200) { - output.writeMessage(200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); + output.writeMessage( + 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 201) { - output.writeMessage(201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); + output.writeMessage( + 201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 202) { output.writeMessage(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); @@ -830,57 +976,63 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.OracleProfile) profile_); } if (profileCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.GcsProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.GcsProfile) profile_); } if (profileCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); } if (profileCase_ == 103) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 103, (com.google.cloud.datastream.v1.BigQueryProfile) profile_); } if (profileCase_ == 104) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 104, (com.google.cloud.datastream.v1.PostgresqlProfile) profile_); } if (connectivityCase_ == 200) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 201) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 202) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -890,50 +1042,41 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ConnectionProfile other = (com.google.cloud.datastream.v1.ConnectionProfile) obj; + com.google.cloud.datastream.v1.ConnectionProfile other = + (com.google.cloud.datastream.v1.ConnectionProfile) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getProfileCase().equals(other.getProfileCase())) return false; switch (profileCase_) { case 100: - if (!getOracleProfile() - .equals(other.getOracleProfile())) return false; + if (!getOracleProfile().equals(other.getOracleProfile())) return false; break; case 101: - if (!getGcsProfile() - .equals(other.getGcsProfile())) return false; + if (!getGcsProfile().equals(other.getGcsProfile())) return false; break; case 102: - if (!getMysqlProfile() - .equals(other.getMysqlProfile())) return false; + if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; break; case 103: - if (!getBigqueryProfile() - .equals(other.getBigqueryProfile())) return false; + if (!getBigqueryProfile().equals(other.getBigqueryProfile())) return false; break; case 104: - if (!getPostgresqlProfile() - .equals(other.getPostgresqlProfile())) return false; + if (!getPostgresqlProfile().equals(other.getPostgresqlProfile())) return false; break; case 0: default: @@ -941,16 +1084,14 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 200: - if (!getStaticServiceIpConnectivity() - .equals(other.getStaticServiceIpConnectivity())) return false; + if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) + return false; break; case 201: - if (!getForwardSshConnectivity() - .equals(other.getForwardSshConnectivity())) return false; + if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; break; case 202: - if (!getPrivateConnectivity() - .equals(other.getPrivateConnectivity())) return false; + if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; break; case 0: default: @@ -1027,97 +1168,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ConnectionProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ConnectionProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of reusable connection configurations to be used as a source or
    * destination for a stream.
@@ -1125,55 +1273,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ConnectionProfile)
       com.google.cloud.datastream.v1.ConnectionProfileOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.ConnectionProfile.class, com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
+              com.google.cloud.datastream.v1.ConnectionProfile.class,
+              com.google.cloud.datastream.v1.ConnectionProfile.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.ConnectionProfile.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1223,9 +1368,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor;
     }
 
     @java.lang.Override
@@ -1244,8 +1389,11 @@ public com.google.cloud.datastream.v1.ConnectionProfile build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.ConnectionProfile buildPartial() {
-      com.google.cloud.datastream.v1.ConnectionProfile result = new com.google.cloud.datastream.v1.ConnectionProfile(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1.ConnectionProfile result =
+          new com.google.cloud.datastream.v1.ConnectionProfile(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       buildPartialOneofs(result);
       onBuilt();
       return result;
@@ -1257,14 +1405,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.ConnectionProfile resu
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1278,38 +1422,30 @@ private void buildPartial0(com.google.cloud.datastream.v1.ConnectionProfile resu
     private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile result) {
       result.profileCase_ = profileCase_;
       result.profile_ = this.profile_;
-      if (profileCase_ == 100 &&
-          oracleProfileBuilder_ != null) {
+      if (profileCase_ == 100 && oracleProfileBuilder_ != null) {
         result.profile_ = oracleProfileBuilder_.build();
       }
-      if (profileCase_ == 101 &&
-          gcsProfileBuilder_ != null) {
+      if (profileCase_ == 101 && gcsProfileBuilder_ != null) {
         result.profile_ = gcsProfileBuilder_.build();
       }
-      if (profileCase_ == 102 &&
-          mysqlProfileBuilder_ != null) {
+      if (profileCase_ == 102 && mysqlProfileBuilder_ != null) {
         result.profile_ = mysqlProfileBuilder_.build();
       }
-      if (profileCase_ == 103 &&
-          bigqueryProfileBuilder_ != null) {
+      if (profileCase_ == 103 && bigqueryProfileBuilder_ != null) {
         result.profile_ = bigqueryProfileBuilder_.build();
       }
-      if (profileCase_ == 104 &&
-          postgresqlProfileBuilder_ != null) {
+      if (profileCase_ == 104 && postgresqlProfileBuilder_ != null) {
         result.profile_ = postgresqlProfileBuilder_.build();
       }
       result.connectivityCase_ = connectivityCase_;
       result.connectivity_ = this.connectivity_;
-      if (connectivityCase_ == 200 &&
-          staticServiceIpConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 200 && staticServiceIpConnectivityBuilder_ != null) {
         result.connectivity_ = staticServiceIpConnectivityBuilder_.build();
       }
-      if (connectivityCase_ == 201 &&
-          forwardSshConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 201 && forwardSshConnectivityBuilder_ != null) {
         result.connectivity_ = forwardSshConnectivityBuilder_.build();
       }
-      if (connectivityCase_ == 202 &&
-          privateConnectivityBuilder_ != null) {
+      if (connectivityCase_ == 202 && privateConnectivityBuilder_ != null) {
         result.connectivity_ = privateConnectivityBuilder_.build();
       }
     }
@@ -1318,38 +1454,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.ConnectionProfile
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.ConnectionProfile) {
-        return mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile)other);
+        return mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1357,7 +1494,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) {
-      if (other == com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1369,8 +1507,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other)
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1378,46 +1515,56 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other)
         onChanged();
       }
       switch (other.getProfileCase()) {
-        case ORACLE_PROFILE: {
-          mergeOracleProfile(other.getOracleProfile());
-          break;
-        }
-        case GCS_PROFILE: {
-          mergeGcsProfile(other.getGcsProfile());
-          break;
-        }
-        case MYSQL_PROFILE: {
-          mergeMysqlProfile(other.getMysqlProfile());
-          break;
-        }
-        case BIGQUERY_PROFILE: {
-          mergeBigqueryProfile(other.getBigqueryProfile());
-          break;
-        }
-        case POSTGRESQL_PROFILE: {
-          mergePostgresqlProfile(other.getPostgresqlProfile());
-          break;
-        }
-        case PROFILE_NOT_SET: {
-          break;
-        }
+        case ORACLE_PROFILE:
+          {
+            mergeOracleProfile(other.getOracleProfile());
+            break;
+          }
+        case GCS_PROFILE:
+          {
+            mergeGcsProfile(other.getGcsProfile());
+            break;
+          }
+        case MYSQL_PROFILE:
+          {
+            mergeMysqlProfile(other.getMysqlProfile());
+            break;
+          }
+        case BIGQUERY_PROFILE:
+          {
+            mergeBigqueryProfile(other.getBigqueryProfile());
+            break;
+          }
+        case POSTGRESQL_PROFILE:
+          {
+            mergePostgresqlProfile(other.getPostgresqlProfile());
+            break;
+          }
+        case PROFILE_NOT_SET:
+          {
+            break;
+          }
       }
       switch (other.getConnectivityCase()) {
-        case STATIC_SERVICE_IP_CONNECTIVITY: {
-          mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity());
-          break;
-        }
-        case FORWARD_SSH_CONNECTIVITY: {
-          mergeForwardSshConnectivity(other.getForwardSshConnectivity());
-          break;
-        }
-        case PRIVATE_CONNECTIVITY: {
-          mergePrivateConnectivity(other.getPrivateConnectivity());
-          break;
-        }
-        case CONNECTIVITY_NOT_SET: {
-          break;
-        }
+        case STATIC_SERVICE_IP_CONNECTIVITY:
+          {
+            mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity());
+            break;
+          }
+        case FORWARD_SSH_CONNECTIVITY:
+          {
+            mergeForwardSshConnectivity(other.getForwardSshConnectivity());
+            break;
+          }
+        case PRIVATE_CONNECTIVITY:
+          {
+            mergePrivateConnectivity(other.getPrivateConnectivity());
+            break;
+          }
+        case CONNECTIVITY_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
@@ -1445,101 +1592,101 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 802: {
-              input.readMessage(
-                  getOracleProfileFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              profileCase_ = 100;
-              break;
-            } // case 802
-            case 810: {
-              input.readMessage(
-                  getGcsProfileFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              profileCase_ = 101;
-              break;
-            } // case 810
-            case 818: {
-              input.readMessage(
-                  getMysqlProfileFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              profileCase_ = 102;
-              break;
-            } // case 818
-            case 826: {
-              input.readMessage(
-                  getBigqueryProfileFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              profileCase_ = 103;
-              break;
-            } // case 826
-            case 834: {
-              input.readMessage(
-                  getPostgresqlProfileFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              profileCase_ = 104;
-              break;
-            } // case 834
-            case 1602: {
-              input.readMessage(
-                  getStaticServiceIpConnectivityFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              connectivityCase_ = 200;
-              break;
-            } // case 1602
-            case 1610: {
-              input.readMessage(
-                  getForwardSshConnectivityFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              connectivityCase_ = 201;
-              break;
-            } // case 1610
-            case 1618: {
-              input.readMessage(
-                  getPrivateConnectivityFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              connectivityCase_ = 202;
-              break;
-            } // case 1618
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 802:
+              {
+                input.readMessage(getOracleProfileFieldBuilder().getBuilder(), extensionRegistry);
+                profileCase_ = 100;
+                break;
+              } // case 802
+            case 810:
+              {
+                input.readMessage(getGcsProfileFieldBuilder().getBuilder(), extensionRegistry);
+                profileCase_ = 101;
+                break;
+              } // case 810
+            case 818:
+              {
+                input.readMessage(getMysqlProfileFieldBuilder().getBuilder(), extensionRegistry);
+                profileCase_ = 102;
+                break;
+              } // case 818
+            case 826:
+              {
+                input.readMessage(getBigqueryProfileFieldBuilder().getBuilder(), extensionRegistry);
+                profileCase_ = 103;
+                break;
+              } // case 826
+            case 834:
+              {
+                input.readMessage(
+                    getPostgresqlProfileFieldBuilder().getBuilder(), extensionRegistry);
+                profileCase_ = 104;
+                break;
+              } // case 834
+            case 1602:
+              {
+                input.readMessage(
+                    getStaticServiceIpConnectivityFieldBuilder().getBuilder(), extensionRegistry);
+                connectivityCase_ = 200;
+                break;
+              } // case 1602
+            case 1610:
+              {
+                input.readMessage(
+                    getForwardSshConnectivityFieldBuilder().getBuilder(), extensionRegistry);
+                connectivityCase_ = 201;
+                break;
+              } // case 1610
+            case 1618:
+              {
+                input.readMessage(
+                    getPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry);
+                connectivityCase_ = 202;
+                break;
+              } // case 1618
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1549,12 +1696,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int profileCase_ = 0;
     private java.lang.Object profile_;
-    public ProfileCase
-        getProfileCase() {
-      return ProfileCase.forNumber(
-          profileCase_);
+
+    public ProfileCase getProfileCase() {
+      return ProfileCase.forNumber(profileCase_);
     }
 
     public Builder clearProfile() {
@@ -1566,10 +1713,9 @@ public Builder clearProfile() {
 
     private int connectivityCase_ = 0;
     private java.lang.Object connectivity_;
-    public ConnectivityCase
-        getConnectivityCase() {
-      return ConnectivityCase.forNumber(
-          connectivityCase_);
+
+    public ConnectivityCase getConnectivityCase() {
+      return ConnectivityCase.forNumber(connectivityCase_);
     }
 
     public Builder clearConnectivity() {
@@ -1583,18 +1729,20 @@ public Builder clearConnectivity() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1603,20 +1751,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1624,28 +1773,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1655,17 +1811,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1675,39 +1835,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1723,14 +1902,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1741,17 +1923,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1764,11 +1950,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1781,11 +1971,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1793,36 +1987,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1830,39 +2036,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1878,14 +2103,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1896,17 +2124,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1919,11 +2151,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1936,11 +2172,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1948,56 +2188,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -2006,10 +2256,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -2017,20 +2270,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -2042,6 +2296,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -2049,17 +2305,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -2067,91 +2325,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2160,20 +2422,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2181,28 +2444,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2212,17 +2482,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2231,13 +2505,19 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder> oracleProfileBuilder_; + com.google.cloud.datastream.v1.OracleProfile, + com.google.cloud.datastream.v1.OracleProfile.Builder, + com.google.cloud.datastream.v1.OracleProfileOrBuilder> + oracleProfileBuilder_; /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -2245,11 +2525,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2267,6 +2550,8 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2287,6 +2572,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile val return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2305,6 +2592,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2313,10 +2602,13 @@ public Builder setOracleProfile( */ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile value) { if (oracleProfileBuilder_ == null) { - if (profileCase_ == 100 && - profile_ != com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1.OracleProfile.newBuilder((com.google.cloud.datastream.v1.OracleProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 100 + && profile_ != com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.OracleProfile.newBuilder( + (com.google.cloud.datastream.v1.OracleProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2332,6 +2624,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile v return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2355,6 +2649,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2365,6 +2661,8 @@ public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuil return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2383,6 +2681,8 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2390,14 +2690,19 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder> + com.google.cloud.datastream.v1.OracleProfile, + com.google.cloud.datastream.v1.OracleProfile.Builder, + com.google.cloud.datastream.v1.OracleProfileOrBuilder> getOracleProfileFieldBuilder() { if (oracleProfileBuilder_ == null) { if (!(profileCase_ == 100)) { profile_ = com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); } - oracleProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleProfile, com.google.cloud.datastream.v1.OracleProfile.Builder, com.google.cloud.datastream.v1.OracleProfileOrBuilder>( + oracleProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleProfile, + com.google.cloud.datastream.v1.OracleProfile.Builder, + com.google.cloud.datastream.v1.OracleProfileOrBuilder>( (com.google.cloud.datastream.v1.OracleProfile) profile_, getParentForChildren(), isClean()); @@ -2409,13 +2714,19 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder> gcsProfileBuilder_; + com.google.cloud.datastream.v1.GcsProfile, + com.google.cloud.datastream.v1.GcsProfile.Builder, + com.google.cloud.datastream.v1.GcsProfileOrBuilder> + gcsProfileBuilder_; /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -2423,11 +2734,14 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ @java.lang.Override @@ -2445,6 +2759,8 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2465,6 +2781,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2483,6 +2801,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2491,10 +2811,13 @@ public Builder setGcsProfile( */ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { if (gcsProfileBuilder_ == null) { - if (profileCase_ == 101 && - profile_ != com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1.GcsProfile.newBuilder((com.google.cloud.datastream.v1.GcsProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 101 + && profile_ != com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.GcsProfile.newBuilder( + (com.google.cloud.datastream.v1.GcsProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2510,6 +2833,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2533,6 +2858,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2543,6 +2870,8 @@ public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2561,6 +2890,8 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2568,14 +2899,19 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder> + com.google.cloud.datastream.v1.GcsProfile, + com.google.cloud.datastream.v1.GcsProfile.Builder, + com.google.cloud.datastream.v1.GcsProfileOrBuilder> getGcsProfileFieldBuilder() { if (gcsProfileBuilder_ == null) { if (!(profileCase_ == 101)) { profile_ = com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); } - gcsProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsProfile, com.google.cloud.datastream.v1.GcsProfile.Builder, com.google.cloud.datastream.v1.GcsProfileOrBuilder>( + gcsProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.GcsProfile, + com.google.cloud.datastream.v1.GcsProfile.Builder, + com.google.cloud.datastream.v1.GcsProfileOrBuilder>( (com.google.cloud.datastream.v1.GcsProfile) profile_, getParentForChildren(), isClean()); @@ -2587,13 +2923,19 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder> mysqlProfileBuilder_; + com.google.cloud.datastream.v1.MysqlProfile, + com.google.cloud.datastream.v1.MysqlProfile.Builder, + com.google.cloud.datastream.v1.MysqlProfileOrBuilder> + mysqlProfileBuilder_; /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -2601,11 +2943,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2623,6 +2968,8 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2643,6 +2990,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2661,6 +3010,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2669,10 +3020,13 @@ public Builder setMysqlProfile( */ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value) { if (mysqlProfileBuilder_ == null) { - if (profileCase_ == 102 && - profile_ != com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1.MysqlProfile.newBuilder((com.google.cloud.datastream.v1.MysqlProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 102 + && profile_ != com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.MysqlProfile.newBuilder( + (com.google.cloud.datastream.v1.MysqlProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2688,6 +3042,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile val return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2711,6 +3067,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2721,6 +3079,8 @@ public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilde return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2739,6 +3099,8 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2746,14 +3108,19 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder> + com.google.cloud.datastream.v1.MysqlProfile, + com.google.cloud.datastream.v1.MysqlProfile.Builder, + com.google.cloud.datastream.v1.MysqlProfileOrBuilder> getMysqlProfileFieldBuilder() { if (mysqlProfileBuilder_ == null) { if (!(profileCase_ == 102)) { profile_ = com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); } - mysqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlProfile, com.google.cloud.datastream.v1.MysqlProfile.Builder, com.google.cloud.datastream.v1.MysqlProfileOrBuilder>( + mysqlProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlProfile, + com.google.cloud.datastream.v1.MysqlProfile.Builder, + com.google.cloud.datastream.v1.MysqlProfileOrBuilder>( (com.google.cloud.datastream.v1.MysqlProfile) profile_, getParentForChildren(), isClean()); @@ -2765,13 +3132,19 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> bigqueryProfileBuilder_; + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + bigqueryProfileBuilder_; /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return Whether the bigqueryProfile field is set. */ @java.lang.Override @@ -2779,11 +3152,14 @@ public boolean hasBigqueryProfile() { return profileCase_ == 103; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return The bigqueryProfile. */ @java.lang.Override @@ -2801,6 +3177,8 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { } } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2821,6 +3199,8 @@ public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2839,6 +3219,8 @@ public Builder setBigqueryProfile( return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2847,10 +3229,13 @@ public Builder setBigqueryProfile( */ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile value) { if (bigqueryProfileBuilder_ == null) { - if (profileCase_ == 103 && - profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1.BigQueryProfile.newBuilder((com.google.cloud.datastream.v1.BigQueryProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 103 + && profile_ != com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.BigQueryProfile.newBuilder( + (com.google.cloud.datastream.v1.BigQueryProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2866,6 +3251,8 @@ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfi return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2889,6 +3276,8 @@ public Builder clearBigqueryProfile() { return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2899,6 +3288,8 @@ public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfile return getBigqueryProfileFieldBuilder().getBuilder(); } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2917,6 +3308,8 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil } } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2924,14 +3317,19 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder> getBigqueryProfileFieldBuilder() { if (bigqueryProfileBuilder_ == null) { if (!(profileCase_ == 103)) { profile_ = com.google.cloud.datastream.v1.BigQueryProfile.getDefaultInstance(); } - bigqueryProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryProfile, com.google.cloud.datastream.v1.BigQueryProfile.Builder, com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( + bigqueryProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryProfile, + com.google.cloud.datastream.v1.BigQueryProfile.Builder, + com.google.cloud.datastream.v1.BigQueryProfileOrBuilder>( (com.google.cloud.datastream.v1.BigQueryProfile) profile_, getParentForChildren(), isClean()); @@ -2943,13 +3341,19 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> postgresqlProfileBuilder_; + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + postgresqlProfileBuilder_; /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return Whether the postgresqlProfile field is set. */ @java.lang.Override @@ -2957,11 +3361,14 @@ public boolean hasPostgresqlProfile() { return profileCase_ == 104; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return The postgresqlProfile. */ @java.lang.Override @@ -2979,6 +3386,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { } } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -2999,6 +3408,8 @@ public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlPro return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3017,6 +3428,8 @@ public Builder setPostgresqlProfile( return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3025,10 +3438,13 @@ public Builder setPostgresqlProfile( */ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlProfile value) { if (postgresqlProfileBuilder_ == null) { - if (profileCase_ == 104 && - profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder((com.google.cloud.datastream.v1.PostgresqlProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 104 + && profile_ != com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -3044,6 +3460,8 @@ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlP return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3067,6 +3485,8 @@ public Builder clearPostgresqlProfile() { return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3077,6 +3497,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro return getPostgresqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3084,7 +3506,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder + getPostgresqlProfileOrBuilder() { if ((profileCase_ == 104) && (postgresqlProfileBuilder_ != null)) { return postgresqlProfileBuilder_.getMessageOrBuilder(); } else { @@ -3095,6 +3518,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr } } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3102,14 +3527,19 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder> getPostgresqlProfileFieldBuilder() { if (postgresqlProfileBuilder_ == null) { if (!(profileCase_ == 104)) { profile_ = com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance(); } - postgresqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlProfile, com.google.cloud.datastream.v1.PostgresqlProfile.Builder, com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( + postgresqlProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlProfile, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder, + com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlProfile) profile_, getParentForChildren(), isClean()); @@ -3121,13 +3551,21 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> staticServiceIpConnectivityBuilder_; + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> + staticServiceIpConnectivityBuilder_; /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -3135,15 +3573,21 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 200; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity + getStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { if (connectivityCase_ == 200) { return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; @@ -3157,13 +3601,18 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServi } } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ - public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { + public Builder setStaticServiceIpConnectivity( + com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3177,11 +3626,15 @@ public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1.Sta return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ public Builder setStaticServiceIpConnectivity( com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder builderForValue) { @@ -3195,18 +3648,28 @@ public Builder setStaticServiceIpConnectivity( return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ - public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { + public Builder mergeStaticServiceIpConnectivity( + com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 200 && - connectivity_ != com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 200 + && connectivity_ + != com.google.cloud.datastream.v1.StaticServiceIpConnectivity + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder( + (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -3222,11 +3685,15 @@ public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1.S return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ public Builder clearStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { @@ -3245,24 +3712,34 @@ public Builder clearStaticServiceIpConnectivity() { return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ - public com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder getStaticServiceIpConnectivityBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder + getStaticServiceIpConnectivityBuilder() { return getStaticServiceIpConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { if ((connectivityCase_ == 200) && (staticServiceIpConnectivityBuilder_ != null)) { return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3273,21 +3750,31 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getSt } } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder> getStaticServiceIpConnectivityFieldBuilder() { if (staticServiceIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 200)) { - connectivity_ = com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); + connectivity_ = + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); } - staticServiceIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder>( + staticServiceIpConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder>( (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3299,13 +3786,21 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getSt } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> forwardSshConnectivityBuilder_; + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> + forwardSshConnectivityBuilder_; /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -3313,11 +3808,16 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 201; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return The forwardSshConnectivity. */ @java.lang.Override @@ -3335,13 +3835,18 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSsh } } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ - public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { + public Builder setForwardSshConnectivity( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3355,11 +3860,15 @@ public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardS return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ public Builder setForwardSshConnectivity( com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder builderForValue) { @@ -3373,18 +3882,28 @@ public Builder setForwardSshConnectivity( return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ - public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { + public Builder mergeForwardSshConnectivity( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 201 && - connectivity_ != com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 201 + && connectivity_ + != com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder( + (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -3400,11 +3919,15 @@ public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1.Forwar return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ public Builder clearForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { @@ -3423,24 +3946,34 @@ public Builder clearForwardSshConnectivity() { return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder getForwardSshConnectivityBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder + getForwardSshConnectivityBuilder() { return getForwardSshConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { if ((connectivityCase_ == 201) && (forwardSshConnectivityBuilder_ != null)) { return forwardSshConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3451,21 +3984,31 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getF } } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder> getForwardSshConnectivityFieldBuilder() { if (forwardSshConnectivityBuilder_ == null) { if (!(connectivityCase_ == 201)) { - connectivity_ = com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + connectivity_ = + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); } - forwardSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder>( + forwardSshConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder>( (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3477,13 +4020,19 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getF } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> privateConnectivityBuilder_; + com.google.cloud.datastream.v1.PrivateConnectivity, + com.google.cloud.datastream.v1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> + privateConnectivityBuilder_; /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -3491,11 +4040,14 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return The privateConnectivity. */ @java.lang.Override @@ -3513,13 +4065,16 @@ public com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity } } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConnectivity value) { + public Builder setPrivateConnectivity( + com.google.cloud.datastream.v1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3533,6 +4088,8 @@ public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConn return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3551,18 +4108,25 @@ public Builder setPrivateConnectivity( return this; } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1.PrivateConnectivity value) { + public Builder mergePrivateConnectivity( + com.google.cloud.datastream.v1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { - if (connectivityCase_ == 202 && - connectivity_ != com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder((com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 202 + && connectivity_ + != com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder( + (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -3578,6 +4142,8 @@ public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1.PrivateCo return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3601,16 +4167,21 @@ public Builder clearPrivateConnectivity() { return this; } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ - public com.google.cloud.datastream.v1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivity.Builder + getPrivateConnectivityBuilder() { return getPrivateConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Private connectivity.
      * 
@@ -3618,7 +4189,8 @@ public com.google.cloud.datastream.v1.PrivateConnectivity.Builder getPrivateConn * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { if ((connectivityCase_ == 202) && (privateConnectivityBuilder_ != null)) { return privateConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3629,6 +4201,8 @@ public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateCon } } /** + * + * *
      * Private connectivity.
      * 
@@ -3636,14 +4210,19 @@ public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateCon * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> + com.google.cloud.datastream.v1.PrivateConnectivity, + com.google.cloud.datastream.v1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder> getPrivateConnectivityFieldBuilder() { if (privateConnectivityBuilder_ == null) { if (!(connectivityCase_ == 202)) { connectivity_ = com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); } - privateConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnectivity, com.google.cloud.datastream.v1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder>( + privateConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnectivity, + com.google.cloud.datastream.v1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder>( (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3653,9 +4232,9 @@ public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateCon onChanged(); return privateConnectivityBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3665,12 +4244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ConnectionProfile) private static final com.google.cloud.datastream.v1.ConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ConnectionProfile(); } @@ -3679,27 +4258,27 @@ public static com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3714,6 +4293,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java similarity index 78% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index 73714b860b29..0825a207d866 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ConnectionProfileOrBuilder extends +public interface ConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface ConnectionProfileOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,59 +167,73 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ com.google.cloud.datastream.v1.OracleProfile getOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -183,24 +243,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ com.google.cloud.datastream.v1.GcsProfile getGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -210,24 +278,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -237,24 +313,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return Whether the bigqueryProfile field is set. */ boolean hasBigqueryProfile(); /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.BigQueryProfile bigquery_profile = 103; + * * @return The bigqueryProfile. */ com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile(); /** + * + * *
    * BigQuery Connection Profile configuration.
    * 
@@ -264,24 +348,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfileOrBuilder(); /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return Whether the postgresqlProfile field is set. */ boolean hasPostgresqlProfile(); /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlProfile postgresql_profile = 104; + * * @return The postgresqlProfile. */ com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile(); /** + * + * *
    * PostgreSQL Connection Profile configuration.
    * 
@@ -291,78 +383,113 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlProfileOrBuilder(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ boolean hasStaticServiceIpConnectivity(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * * @return The staticServiceIpConnectivity. */ com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * */ - com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder(); + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return Whether the forwardSshConnectivity field is set. */ boolean hasForwardSshConnectivity(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * + * * @return The forwardSshConnectivity. */ com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * */ - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder(); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder(); /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return Whether the privateConnectivity field is set. */ boolean hasPrivateConnectivity(); /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return The privateConnectivity. */ com.google.cloud.datastream.v1.PrivateConnectivity getPrivateConnectivity(); /** + * + * *
    * Private connectivity.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java index 0699d34ee703..75b4e3199c73 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for creating a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -27,38 +46,45 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,14 +126,18 @@ public java.lang.String getParent() { } public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object connectionProfileId_ = ""; /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ @java.lang.Override @@ -114,29 +146,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -147,11 +179,16 @@ public java.lang.String getConnectionProfileId() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -159,33 +196,49 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +254,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +263,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +287,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,12 +306,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the connection profile, but don't create any
    * resources. The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -268,11 +325,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** + * + * *
    * Optional. Create the connection profile without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -281,6 +341,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +353,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -328,19 +388,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -350,28 +407,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateConnectionProfileRequest other = (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.CreateConnectionProfileRequest other = + (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectionProfileId() - .equals(other.getConnectionProfileId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -394,140 +446,145 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.CreateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateConnectionProfileRequest) com.google.cloud.datastream.v1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateConnectionProfileRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,13 +603,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.CreateConnectionProfileRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance(); } @@ -567,13 +625,17 @@ public com.google.cloud.datastream.v1.CreateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = + new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.CreateConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -582,9 +644,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateConnectionProfil result.connectionProfileId_ = connectionProfileId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.connectionProfile_ = connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = + connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -601,38 +664,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateConnectionProfil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.CreateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -640,7 +704,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -691,44 +757,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - connectionProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + connectionProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -738,22 +810,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -762,20 +839,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -783,28 +863,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -814,17 +905,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -834,18 +931,20 @@ public Builder setParentBytes( private java.lang.Object connectionProfileId_ = ""; /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -854,20 +953,21 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -875,28 +975,35 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } connectionProfileId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { @@ -906,17 +1013,21 @@ public Builder clearConnectionProfileId() { return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); connectionProfileId_ = value; bitField0_ |= 0x00000002; @@ -926,39 +1037,58 @@ public Builder setConnectionProfileIdBytes( private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -974,11 +1104,15 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { @@ -992,17 +1126,22 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - connectionProfile_ != null && - connectionProfile_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && connectionProfile_ != null + && connectionProfile_ + != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -1015,11 +1154,15 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1032,11 +1175,15 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000004; @@ -1044,36 +1191,49 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1081,6 +1241,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1096,13 +1258,13 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1111,6 +1273,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1126,15 +1290,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1142,6 +1305,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1157,18 +1322,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1184,6 +1353,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1193,6 +1363,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1208,12 +1380,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1221,14 +1395,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the connection profile, but don't create any
      * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1236,29 +1413,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the connection profile, but don't create any
      * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the connection profile, but don't create any
      * resources. The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1268,13 +1451,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1282,27 +1468,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Create the connection profile without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1311,9 +1503,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1515,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.CreateConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.CreateConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(); } @@ -1337,27 +1530,27 @@ public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,6 +1565,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java index daf3ed546d9b..22ceda0d811b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateConnectionProfileRequestOrBuilder extends +public interface CreateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString - getConnectionProfileIdBytes(); + com.google.protobuf.ByteString getConnectionProfileIdBytes(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,28 +158,34 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the connection profile, but don't create any
    * resources. The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Create the connection profile without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java index cc5c1059ccf0..dcb7fa5f0655 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for creating a private connection.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreatePrivateConnectionRequest} */ -public final class CreatePrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreatePrivateConnectionRequest) CreatePrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePrivateConnectionRequest.newBuilder() to construct. - private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreatePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePrivateConnectionRequest() { parent_ = ""; privateConnectionId_ = ""; @@ -27,38 +46,45 @@ private CreatePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,14 +126,18 @@ public java.lang.String getParent() { } public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionId_ = ""; /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ @java.lang.Override @@ -114,29 +146,29 @@ public java.lang.String getPrivateConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; } } /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -147,11 +179,16 @@ public java.lang.String getPrivateConnectionId() { public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.PrivateConnection privateConnection_; /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ @java.lang.Override @@ -159,33 +196,49 @@ public boolean hasPrivateConnection() { return privateConnection_ != null; } /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection() { - return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; } /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { - return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +254,7 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +263,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +287,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,11 +306,14 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** + * + * *
    * Optional. If set to true, will skip validations.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -265,6 +322,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,8 +334,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -309,15 +366,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); } if (privateConnection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPrivateConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,26 +382,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreatePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other = (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other = + (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPrivateConnectionId() - .equals(other.getPrivateConnectionId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; if (hasPrivateConnection() != other.hasPrivateConnection()) return false; if (hasPrivateConnection()) { - if (!getPrivateConnection() - .equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getForce() - != other.getForce()) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,137 +420,143 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for creating a private connection.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreatePrivateConnectionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreatePrivateConnectionRequest) com.google.cloud.datastream.v1.CreatePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -517,13 +574,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance(); } @@ -538,13 +596,17 @@ public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = + new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -553,9 +615,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreatePrivateConnectio result.privateConnectionId_ = privateConnectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.privateConnection_ = privateConnectionBuilder_ == null - ? privateConnection_ - : privateConnectionBuilder_.build(); + result.privateConnection_ = + privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -569,38 +632,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreatePrivateConnectio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; @@ -608,7 +672,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -656,39 +722,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - privateConnectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPrivateConnectionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 48: { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 48: + { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -698,22 +769,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -722,20 +798,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -743,28 +822,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -774,17 +864,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -794,18 +890,20 @@ public Builder setParentBytes( private java.lang.Object privateConnectionId_ = ""; /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ public java.lang.String getPrivateConnectionId() { java.lang.Object ref = privateConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; @@ -814,20 +912,21 @@ public java.lang.String getPrivateConnectionId() { } } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ - public com.google.protobuf.ByteString - getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -835,28 +934,35 @@ public java.lang.String getPrivateConnectionId() { } } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } privateConnectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPrivateConnectionId() { @@ -866,17 +972,21 @@ public Builder clearPrivateConnectionId() { return this; } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); privateConnectionId_ = value; bitField0_ |= 0x00000002; @@ -886,39 +996,58 @@ public Builder setPrivateConnectionIdBytes( private com.google.cloud.datastream.v1.PrivateConnection privateConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> privateConnectionBuilder_; + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + privateConnectionBuilder_; /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ public boolean hasPrivateConnection() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection() { if (privateConnectionBuilder_ == null) { - return privateConnection_ == null ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; } else { return privateConnectionBuilder_.getMessage(); } } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPrivateConnection(com.google.cloud.datastream.v1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { @@ -934,11 +1063,15 @@ public Builder setPrivateConnection(com.google.cloud.datastream.v1.PrivateConnec return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPrivateConnection( com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { @@ -952,17 +1085,22 @@ public Builder setPrivateConnection( return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePrivateConnection(com.google.cloud.datastream.v1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - privateConnection_ != null && - privateConnection_ != com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && privateConnection_ != null + && privateConnection_ + != com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) { getPrivateConnectionBuilder().mergeFrom(value); } else { privateConnection_ = value; @@ -975,11 +1113,15 @@ public Builder mergePrivateConnection(com.google.cloud.datastream.v1.PrivateConn return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPrivateConnection() { bitField0_ = (bitField0_ & ~0x00000004); @@ -992,11 +1134,15 @@ public Builder clearPrivateConnection() { return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnectionBuilder() { bitField0_ |= 0x00000004; @@ -1004,36 +1150,49 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { if (privateConnectionBuilder_ != null) { return privateConnectionBuilder_.getMessageOrBuilder(); } else { - return privateConnection_ == null ? - com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance() + : privateConnection_; } } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> getPrivateConnectionFieldBuilder() { if (privateConnectionBuilder_ == null) { - privateConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( - getPrivateConnection(), - getParentForChildren(), - isClean()); + privateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( + getPrivateConnection(), getParentForChildren(), isClean()); privateConnection_ = null; } return privateConnectionBuilder_; @@ -1041,6 +1200,8 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1056,13 +1217,13 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1071,6 +1232,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1086,15 +1249,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1102,6 +1264,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1117,18 +1281,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1144,6 +1312,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1153,6 +1322,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1168,12 +1339,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1181,13 +1354,16 @@ public Builder setRequestIdBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set to true, will skip validations.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1195,27 +1371,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set to true, will skip validations.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. If set to true, will skip validations.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1224,9 +1406,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1236,12 +1418,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreatePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreatePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1.CreatePrivateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.CreatePrivateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(); } @@ -1250,27 +1433,27 @@ public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1285,6 +1468,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java index 4b52874869dd..e8974a0d6c57 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreatePrivateConnectionRequestOrBuilder extends +public interface CreatePrivateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreatePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ java.lang.String getPrivateConnectionId(); /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ - com.google.protobuf.ByteString - getPrivateConnectionIdBytes(); + com.google.protobuf.ByteString getPrivateConnectionIdBytes(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ boolean hasPrivateConnection(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreatePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,17 +158,20 @@ public interface CreatePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. If set to true, will skip validations.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java index 74fcdb321e51..8c94fe3afec8 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Route creation request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateRouteRequest} */ -public final class CreateRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateRouteRequest) CreateRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRouteRequest.newBuilder() to construct. private CreateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRouteRequest() { parent_ = ""; routeId_ = ""; @@ -27,38 +45,45 @@ private CreateRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateRouteRequest.class, com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1.CreateRouteRequest.class, + com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int ROUTE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object routeId_ = ""; /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getRouteId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; } } /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { + public com.google.protobuf.ByteString getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routeId_ = b; return b; } else { @@ -147,11 +178,15 @@ public java.lang.String getRouteId() { public static final int ROUTE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.Route route_; /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ @java.lang.Override @@ -159,11 +194,15 @@ public boolean hasRoute() { return route_ != null; } /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ @java.lang.Override @@ -171,11 +210,14 @@ public com.google.cloud.datastream.v1.Route getRoute() { return route_ == null ? com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; } /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { @@ -183,9 +225,12 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +246,7 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +255,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +279,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +296,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +308,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +337,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); } if (route_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRoute()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +350,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateRouteRequest other = (com.google.cloud.datastream.v1.CreateRouteRequest) obj; + com.google.cloud.datastream.v1.CreateRouteRequest other = + (com.google.cloud.datastream.v1.CreateRouteRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRouteId() - .equals(other.getRouteId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRouteId().equals(other.getRouteId())) return false; if (hasRoute() != other.hasRoute()) return false; if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; + if (!getRoute().equals(other.getRoute())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +392,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.CreateRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Route creation request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateRouteRequest) com.google.cloud.datastream.v1.CreateRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateRouteRequest.class, com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1.CreateRouteRequest.class, + com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateRouteRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +537,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; } @java.lang.Override @@ -510,8 +558,11 @@ public com.google.cloud.datastream.v1.CreateRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateRouteRequest buildPartial() { - com.google.cloud.datastream.v1.CreateRouteRequest result = new com.google.cloud.datastream.v1.CreateRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.CreateRouteRequest result = + new com.google.cloud.datastream.v1.CreateRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -525,9 +576,7 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateRouteRequest res result.routeId_ = routeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.route_ = routeBuilder_ == null - ? route_ - : routeBuilder_.build(); + result.route_ = routeBuilder_ == null ? route_ : routeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,38 +587,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateRouteRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.CreateRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +627,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateRouteRequest other) { - if (other == com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +673,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - routeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRouteFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + routeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRouteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +713,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -683,20 +742,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -704,28 +766,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -735,17 +808,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +834,20 @@ public Builder setParentBytes( private java.lang.Object routeId_ = ""; /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ public java.lang.String getRouteId() { java.lang.Object ref = routeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; @@ -775,20 +856,21 @@ public java.lang.String getRouteId() { } } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ - public com.google.protobuf.ByteString - getRouteIdBytes() { + public com.google.protobuf.ByteString getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routeId_ = b; return b; } else { @@ -796,28 +878,35 @@ public java.lang.String getRouteId() { } } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The routeId to set. * @return This builder for chaining. */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } routeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRouteId() { @@ -827,17 +916,21 @@ public Builder clearRouteId() { return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for routeId to set. * @return This builder for chaining. */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); routeId_ = value; bitField0_ |= 0x00000002; @@ -847,24 +940,35 @@ public Builder setRouteIdBytes( private com.google.cloud.datastream.v1.Route route_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> routeBuilder_; + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder> + routeBuilder_; /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ public boolean hasRoute() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ public com.google.cloud.datastream.v1.Route getRoute() { @@ -875,11 +979,14 @@ public com.google.cloud.datastream.v1.Route getRoute() { } } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRoute(com.google.cloud.datastream.v1.Route value) { if (routeBuilder_ == null) { @@ -895,14 +1002,16 @@ public Builder setRoute(com.google.cloud.datastream.v1.Route value) { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRoute( - com.google.cloud.datastream.v1.Route.Builder builderForValue) { + public Builder setRoute(com.google.cloud.datastream.v1.Route.Builder builderForValue) { if (routeBuilder_ == null) { route_ = builderForValue.build(); } else { @@ -913,17 +1022,20 @@ public Builder setRoute( return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRoute(com.google.cloud.datastream.v1.Route value) { if (routeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - route_ != null && - route_ != com.google.cloud.datastream.v1.Route.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && route_ != null + && route_ != com.google.cloud.datastream.v1.Route.getDefaultInstance()) { getRouteBuilder().mergeFrom(value); } else { route_ = value; @@ -936,11 +1048,14 @@ public Builder mergeRoute(com.google.cloud.datastream.v1.Route value) { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRoute() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1068,14 @@ public Builder clearRoute() { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.Route.Builder getRouteBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1083,44 @@ public com.google.cloud.datastream.v1.Route.Builder getRouteBuilder() { return getRouteFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { if (routeBuilder_ != null) { return routeBuilder_.getMessageOrBuilder(); } else { - return route_ == null ? - com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; + return route_ == null ? com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; } } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder> getRouteFieldBuilder() { if (routeBuilder_ == null) { - routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder>( - getRoute(), - getParentForChildren(), - isClean()); + routeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder>( + getRoute(), getParentForChildren(), isClean()); route_ = null; } return routeBuilder_; @@ -1002,6 +1128,8 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1145,13 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1160,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1177,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1192,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1209,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1240,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1250,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1267,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,12 +1293,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateRouteRequest) private static final com.google.cloud.datastream.v1.CreateRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateRouteRequest(); } @@ -1167,27 +1307,27 @@ public static com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1202,6 +1342,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java index ed1195c9ce04..53f171d0b450 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java @@ -1,80 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateRouteRequestOrBuilder extends +public interface CreateRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ java.lang.String getRouteId(); /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ - com.google.protobuf.ByteString - getRouteIdBytes(); + com.google.protobuf.ByteString getRouteIdBytes(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ boolean hasRoute(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ com.google.cloud.datastream.v1.Route getRoute(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +133,13 @@ public interface CreateRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +155,8 @@ public interface CreateRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java index b2046158eb75..cab781eda4ac 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for creating a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateStreamRequest} */ -public final class CreateStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateStreamRequest) CreateStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateStreamRequest.newBuilder() to construct. private CreateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateStreamRequest() { parent_ = ""; streamId_ = ""; @@ -27,38 +45,45 @@ private CreateStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateStreamRequest.class, com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.CreateStreamRequest.class, + com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int STREAM_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object streamId_ = ""; /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getStreamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; } } /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreamIdBytes() { + public com.google.protobuf.ByteString getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamId_ = b; return b; } else { @@ -147,11 +178,15 @@ public java.lang.String getStreamId() { public static final int STREAM_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1.Stream stream_; /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ @java.lang.Override @@ -159,11 +194,15 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ @java.lang.Override @@ -171,11 +210,14 @@ public com.google.cloud.datastream.v1.Stream getStream() { return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { @@ -183,9 +225,12 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +246,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +255,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +279,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -252,12 +298,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the stream, but don't create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -268,11 +317,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -281,6 +333,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,8 +345,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -328,19 +380,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -350,28 +399,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.CreateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.CreateStreamRequest other = (com.google.cloud.datastream.v1.CreateStreamRequest) obj; + com.google.cloud.datastream.v1.CreateStreamRequest other = + (com.google.cloud.datastream.v1.CreateStreamRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getStreamId() - .equals(other.getStreamId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getStreamId().equals(other.getStreamId())) return false; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getStream().equals(other.getStream())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -394,140 +438,144 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.CreateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.CreateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for creating a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.CreateStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.CreateStreamRequest) com.google.cloud.datastream.v1.CreateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.CreateStreamRequest.class, com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.CreateStreamRequest.class, + com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.CreateStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,9 +594,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; } @java.lang.Override @@ -567,8 +615,11 @@ public com.google.cloud.datastream.v1.CreateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.CreateStreamRequest buildPartial() { - com.google.cloud.datastream.v1.CreateStreamRequest result = new com.google.cloud.datastream.v1.CreateStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.CreateStreamRequest result = + new com.google.cloud.datastream.v1.CreateStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -582,9 +633,7 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateStreamRequest re result.streamId_ = streamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -601,38 +650,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.CreateStreamRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.CreateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.CreateStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.CreateStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -640,7 +690,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.CreateStreamRequest other) { - if (other == com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -691,44 +742,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - streamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + streamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -738,22 +794,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -762,20 +823,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -783,28 +847,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -814,17 +889,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -834,18 +915,20 @@ public Builder setParentBytes( private java.lang.Object streamId_ = ""; /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ public java.lang.String getStreamId() { java.lang.Object ref = streamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; @@ -854,20 +937,21 @@ public java.lang.String getStreamId() { } } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ - public com.google.protobuf.ByteString - getStreamIdBytes() { + public com.google.protobuf.ByteString getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamId_ = b; return b; } else { @@ -875,28 +959,35 @@ public java.lang.String getStreamId() { } } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The streamId to set. * @return This builder for chaining. */ - public Builder setStreamId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } streamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamId() { @@ -906,17 +997,21 @@ public Builder clearStreamId() { return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for streamId to set. * @return This builder for chaining. */ - public Builder setStreamIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); streamId_ = value; bitField0_ |= 0x00000002; @@ -926,39 +1021,58 @@ public Builder setStreamIdBytes( private com.google.cloud.datastream.v1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamBuilder_; + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> + streamBuilder_; /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ public com.google.cloud.datastream.v1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { @@ -974,14 +1088,17 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStream( - com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -992,17 +1109,21 @@ public Builder setStream( return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - stream_ != null && - stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && stream_ != null + && stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1015,11 +1136,15 @@ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1032,11 +1157,15 @@ public Builder clearStream() { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000004; @@ -1044,36 +1173,48 @@ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; @@ -1081,6 +1222,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1096,13 +1239,13 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1111,6 +1254,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1126,15 +1271,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1142,6 +1286,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1157,18 +1303,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1184,6 +1334,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1193,6 +1344,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1208,12 +1361,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1221,14 +1376,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1236,29 +1394,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the stream, but don't create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1268,13 +1432,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1282,27 +1449,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1311,9 +1484,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1323,12 +1496,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.CreateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.CreateStreamRequest) private static final com.google.cloud.datastream.v1.CreateStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateStreamRequest(); } @@ -1337,27 +1510,27 @@ public static com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1372,6 +1545,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java index b5acf40148fb..b657ef594980 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java @@ -1,80 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface CreateStreamRequestOrBuilder extends +public interface CreateStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.CreateStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ java.lang.String getStreamId(); /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ - com.google.protobuf.ByteString - getStreamIdBytes(); + com.google.protobuf.ByteString getStreamIdBytes(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ com.google.cloud.datastream.v1.Stream getStream(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +133,13 @@ public interface CreateStreamRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,28 +155,34 @@ public interface CreateStreamRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the stream, but don't create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java new file mode 100644 index 000000000000..9a05cd6df7fd --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -0,0 +1,813 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public final class DatastreamProto { + private DatastreamProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n+google/cloud/datastream/v1/datastream." + + "proto\022\032google.cloud.datastream.v1\032\034googl" + + "e/api/annotations.proto\032\027google/api/clie" + + "nt.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\0325google/clo" + + "ud/datastream/v1/datastream_resources.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032\033google/protobuf/empty.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\"\375\003\n DiscoverConnectionP" + + "rofileRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+d" + + "atastream.googleapis.com/ConnectionProfi" + + "le\022L\n\022connection_profile\030\310\001 \001(\0132-.google" + + ".cloud.datastream.v1.ConnectionProfileH\000" + + "\022\"\n\027connection_profile_name\030\311\001 \001(\tH\000\022\030\n\016" + + "full_hierarchy\030\003 \001(\010H\001\022\031\n\017hierarchy_dept" + + "h\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001(\0132\'.google" + + ".cloud.datastream.v1.OracleRdbmsH\002\022=\n\013my" + + "sql_rdbms\030e \001(\0132&.google.cloud.datastrea" + + "m.v1.MysqlRdbmsH\002\022G\n\020postgresql_rdbms\030f " + + "\001(\0132+.google.cloud.datastream.v1.Postgre" + + "sqlRdbmsH\002B\010\n\006targetB\013\n\thierarchyB\r\n\013dat" + + "a_object\"\373\001\n!DiscoverConnectionProfileRe" + + "sponse\022?\n\014oracle_rdbms\030d \001(\0132\'.google.cl" + + "oud.datastream.v1.OracleRdbmsH\000\022=\n\013mysql" + + "_rdbms\030e \001(\0132&.google.cloud.datastream.v" + + "1.MysqlRdbmsH\000\022G\n\020postgresql_rdbms\030f \001(\013" + + "2+.google.cloud.datastream.v1.Postgresql" + + "RdbmsH\000B\r\n\013data_object\"w\n\025FetchStaticIps" + + "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026FetchStaticIp" + + "sResponse\022\022\n\nstatic_ips\030\001 \003(\t\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"\255\001\n\035ListConnectionProfile" + + "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datast" + + "ream.googleapis.com/ConnectionProfile\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + + "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListC" + + "onnectionProfilesResponse\022J\n\023connection_" + + "profiles\030\001 \003(\0132-.google.cloud.datastream" + + ".v1.ConnectionProfile\022\027\n\017next_page_token" + + "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\033GetConnec" + + "tionProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + + "\n+datastream.googleapis.com/ConnectionPr" + + "ofile\"\242\002\n\036CreateConnectionProfileRequest" + + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.goo" + + "gleapis.com/ConnectionProfile\022\"\n\025connect" + + "ion_profile_id\030\002 \001(\tB\003\340A\002\022N\n\022connection_" + + "profile\030\003 \001(\0132-.google.cloud.datastream." + + "v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022" + + "\n\005force\030\006 \001(\010B\003\340A\001\"\357\001\n\036UpdateConnectionP" + + "rofileRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\003\340A\001\022N\n\022connectio" + + "n_profile\030\002 \001(\0132-.google.cloud.datastrea" + + "m.v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_i" + + "d\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + + "\022\022\n\005force\030\005 \001(\010B\003\340A\001\"|\n\036DeleteConnection" + + "ProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+da" + + "tastream.googleapis.com/ConnectionProfil" + + "e\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStrea" + + "msRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datas" + + "tream.googleapis.com/Stream\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\023ListStreamsRespo" + + "nse\0223\n\007streams\030\001 \003(\0132\".google.cloud.data" + + "stream.v1.Stream\022\027\n\017next_page_token\030\002 \001(" + + "\t\022\023\n\013unreachable\030\003 \003(\t\"J\n\020GetStreamReque" + + "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream.goo" + + "gleapis.com/Stream\"\351\001\n\023CreateStreamReque" + + "st\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.g" + + "oogleapis.com/Stream\022\026\n\tstream_id\030\002 \001(\tB" + + "\003\340A\002\0227\n\006stream\030\003 \001(\0132\".google.cloud.data" + + "stream.v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + + "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005fo" + + "rce\030\006 \001(\010B\003\340A\001\"\315\001\n\023UpdateStreamRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\0227\n\006stream\030\002 \001(\0132\".google.cl" + + "oud.datastream.v1.StreamB\003\340A\002\022\027\n\nrequest" + + "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" + + "A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamRe" + + "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream." + + "googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001(" + + "\tB\003\340A\001\"V\n\026GetStreamObjectRequest\022<\n\004name" + + "\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.co" + + "m/StreamObject\"\260\001\n\031LookupStreamObjectReq" + + "uest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datastream" + + ".googleapis.com/Stream\022Y\n\030source_object_" + + "identifier\030\002 \001(\01322.google.cloud.datastre" + + "am.v1.SourceObjectIdentifierB\003\340A\002\"Y\n\027Sta" + + "rtBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340A" + + "\002\372A(\n&datastream.googleapis.com/StreamOb" + + "ject\"T\n\030StartBackfillJobResponse\0228\n\006obje" + + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + + "reamObject\"X\n\026StopBackfillJobRequest\022>\n\006" + + "object\030\001 \001(\tB.\340A\002\372A(\n&datastream.googlea" + + "pis.com/StreamObject\"S\n\027StopBackfillJobR" + + "esponse\0228\n\006object\030\001 \001(\0132(.google.cloud.d" + + "atastream.v1.StreamObject\"\201\001\n\030ListStream" + + "ObjectsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&" + + "datastream.googleapis.com/StreamObject\022\021" + + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n" + + "\031ListStreamObjectsResponse\022@\n\016stream_obj" + + "ects\030\001 \003(\0132(.google.cloud.datastream.v1." + + "StreamObject\022\027\n\017next_page_token\030\002 \001(\t\"\316\002" + + "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + + "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + + "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + + "rsion\030\007 \001(\tB\003\340A\003\022L\n\021validation_result\030\010 " + + "\001(\0132,.google.cloud.datastream.v1.Validat" + + "ionResultB\003\340A\003\"\206\002\n\036CreatePrivateConnecti" + + "onRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datas" + + "tream.googleapis.com/PrivateConnection\022\"" + + "\n\025private_connection_id\030\002 \001(\tB\003\340A\002\022N\n\022pr" + + "ivate_connection\030\003 \001(\0132-.google.cloud.da" + + "tastream.v1.PrivateConnectionB\003\340A\002\022\027\n\nre" + + "quest_id\030\004 \001(\tB\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + + "\255\001\n\035ListPrivateConnectionsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" + + ".com/PrivateConnection\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" + + "\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConnectio" + + "nsResponse\022J\n\023private_connections\030\001 \003(\0132" + + "-.google.cloud.datastream.v1.PrivateConn" + + "ection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"\220\001\n\036DeletePrivateConnection" + + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastrea" + + "m.googleapis.com/PrivateConnection\022\027\n\nre" + + "quest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"" + + "`\n\033GetPrivateConnectionRequest\022A\n\004name\030\001" + + " \001(\tB3\340A\002\372A-\n+datastream.googleapis.com/" + + "PrivateConnection\"\264\001\n\022CreateRouteRequest" + + "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.goo" + + "gleapis.com/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002" + + "\0225\n\005route\030\003 \001(\0132!.google.cloud.datastrea" + + "m.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + + "\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 \001(\tB\'" + + "\340A\002\372A!\022\037datastream.googleapis.com/Route\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + + "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022List" + + "RoutesResponse\0221\n\006routes\030\001 \003(\0132!.google." + + "cloud.datastream.v1.Route\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022Delet" + + "eRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dat" + + "astream.googleapis.com/Route\022\027\n\nrequest_" + + "id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name" + + "\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.co" + + "m/Route2\375*\n\nDatastream\022\330\001\n\026ListConnectio" + + "nProfiles\0229.google.cloud.datastream.v1.L" + + "istConnectionProfilesRequest\032:.google.cl" + + "oud.datastream.v1.ListConnectionProfiles" + + "Response\"G\202\323\344\223\0028\0226/v1/{parent=projects/*" + + "/locations/*}/connectionProfiles\332A\006paren" + + "t\022\305\001\n\024GetConnectionProfile\0227.google.clou" + + "d.datastream.v1.GetConnectionProfileRequ" + + "est\032-.google.cloud.datastream.v1.Connect" + + "ionProfile\"E\202\323\344\223\0028\0226/v1/{name=projects/*" + + "/locations/*/connectionProfiles/*}\332A\004nam" + + "e\022\244\002\n\027CreateConnectionProfile\022:.google.c" + + "loud.datastream.v1.CreateConnectionProfi" + + "leRequest\032\035.google.longrunning.Operation" + + "\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/locati" + + "ons/*}/connectionProfiles:\022connection_pr" + + "ofile\332A/parent,connection_profile,connec" + + "tion_profile_id\312A&\n\021ConnectionProfile\022\021O" + + "perationMetadata\022\246\002\n\027UpdateConnectionPro" + + "file\022:.google.cloud.datastream.v1.Update" + + "ConnectionProfileRequest\032\035.google.longru" + + "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + + "n_profile.name=projects/*/locations/*/co" + + "nnectionProfiles/*}:\022connection_profile\332" + + "A\036connection_profile,update_mask\312A&\n\021Con" + + "nectionProfile\022\021OperationMetadata\022\350\001\n\027De" + + "leteConnectionProfile\022:.google.cloud.dat" + + "astream.v1.DeleteConnectionProfileReques" + + "t\032\035.google.longrunning.Operation\"r\202\323\344\223\0028" + + "*6/v1/{name=projects/*/locations/*/conne" + + "ctionProfiles/*}\332A\004name\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\022\344\001\n\031Discove" + + "rConnectionProfile\022<.google.cloud.datast" + + "ream.v1.DiscoverConnectionProfileRequest" + + "\032=.google.cloud.datastream.v1.DiscoverCo" + + "nnectionProfileResponse\"J\202\323\344\223\002D\"?/v1/{pa" + + "rent=projects/*/locations/*}/connectionP" + + "rofiles:discover:\001*\022\254\001\n\013ListStreams\022..go" + + "ogle.cloud.datastream.v1.ListStreamsRequ" + + "est\032/.google.cloud.datastream.v1.ListStr" + + "eamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=projec" + + "ts/*/locations/*}/streams\332A\006parent\022\231\001\n\tG" + + "etStream\022,.google.cloud.datastream.v1.Ge" + + "tStreamRequest\032\".google.cloud.datastream" + + ".v1.Stream\":\202\323\344\223\002-\022+/v1/{name=projects/*" + + "/locations/*/streams/*}\332A\004name\022\323\001\n\014Creat" + + "eStream\022/.google.cloud.datastream.v1.Cre" + + "ateStreamRequest\032\035.google.longrunning.Op" + + "eration\"s\202\323\344\223\0025\"+/v1/{parent=projects/*/" + + "locations/*}/streams:\006stream\332A\027parent,st" + + "ream,stream_id\312A\033\n\006Stream\022\021OperationMeta" + + "data\022\325\001\n\014UpdateStream\022/.google.cloud.dat" + + "astream.v1.UpdateStreamRequest\032\035.google." + + "longrunning.Operation\"u\202\323\344\223\002<22/v1/{stre" + + "am.name=projects/*/locations/*/streams/*" + + "}:\006stream\332A\022stream,update_mask\312A\033\n\006Strea" + + "m\022\021OperationMetadata\022\307\001\n\014DeleteStream\022/." + + "google.cloud.datastream.v1.DeleteStreamR" + + "equest\032\035.google.longrunning.Operation\"g\202" + + "\323\344\223\002-*+/v1/{name=projects/*/locations/*/" + + "streams/*}\332A\004name\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\022\265\001\n\017GetStreamObje" + + "ct\0222.google.cloud.datastream.v1.GetStrea" + + "mObjectRequest\032(.google.cloud.datastream" + + ".v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name=proj" + + "ects/*/locations/*/streams/*/objects/*}\332" + + "A\004name\022\276\001\n\022LookupStreamObject\0225.google.c" + + "loud.datastream.v1.LookupStreamObjectReq" + + "uest\032(.google.cloud.datastream.v1.Stream" + + "Object\"G\202\323\344\223\002A\"cloud.google.com/go/datastream/ap" + + "iv1/datastreampb;datastreampb\252\002\032Google.C" + + "loud.Datastream.V1\312\002\032Google\\Cloud\\Datast" + + "ream\\V1\352\002\035Google::Cloud::Datastream::V1b" + + "\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Parent", + "ConnectionProfile", + "ConnectionProfileName", + "FullHierarchy", + "HierarchyDepth", + "OracleRdbms", + "MysqlRdbms", + "PostgresqlRdbms", + "Target", + "Hierarchy", + "DataObject", + }); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor, + new java.lang.String[] { + "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "DataObject", + }); + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor, + new java.lang.String[] { + "StaticIps", "NextPageToken", + }); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor, + new java.lang.String[] { + "ConnectionProfiles", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Parent", + "ConnectionProfileId", + "ConnectionProfile", + "RequestId", + "ValidateOnly", + "Force", + }); + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", + }); + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor, + new java.lang.String[] { + "Streams", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "StreamId", "Stream", "RequestId", "ValidateOnly", "Force", + }); + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Stream", "RequestId", "ValidateOnly", "Force", + }); + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor, + new java.lang.String[] { + "Parent", "SourceObjectIdentifier", + }); + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, + new java.lang.String[] { + "Object", + }); + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor, + new java.lang.String[] { + "Object", + }); + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor, + new java.lang.String[] { + "Object", + }); + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor, + new java.lang.String[] { + "Object", + }); + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor, + new java.lang.String[] { + "StreamObjects", "NextPageToken", + }); + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "ValidationResult", + }); + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "Force", + }); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor, + new java.lang.String[] { + "PrivateConnections", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Force", + }); + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor, + new java.lang.String[] { + "Parent", "RouteId", "Route", "RequestId", + }); + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor, + new java.lang.String[] { + "Routes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java new file mode 100644 index 000000000000..f5637009022f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java @@ -0,0 +1,1187 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public final class DatastreamResourcesProto { + private DatastreamResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Route_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_Validation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/datastream/v1/datastream_" + + "resources.proto\022\032google.cloud.datastream" + + ".v1\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032\036google/protobuf" + + "/duration.proto\032\037google/protobuf/timesta" + + "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" + + " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" + + "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" + + "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" + + "butes\030\006 \003(\0132C.google.cloud.datastream.v1" + + ".OracleProfile.ConnectionAttributesEntry" + + "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + + "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." + + "datastream.v1.MysqlSslConfig\"}\n\021Postgres" + + "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" + + "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" + + "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" + + "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" + + "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" + + "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" + + "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" + + "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" + + "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" + + "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" + + "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" + + ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" + + "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" + + "bels\030\004 \003(\01329.google.cloud.datastream.v1." + + "PrivateConnection.LabelsEntry\022\031\n\014display" + + "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" + + ".cloud.datastream.v1.PrivateConnection.S" + + "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." + + "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" + + "config\030d \001(\0132,.google.cloud.datastream.v" + + "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" + + "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" + + "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" + + "s.com/PrivateConnection\022Oprojects/{proje" + + "ct}/locations/{location}/privateConnecti" + + "ons/{private_connection}\"f\n\023PrivateConne" + + "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" + + "\372A-\n+datastream.googleapis.com/PrivateCo" + + "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" + + "\0132-.google.cloud.datastream.v1.Route.Lab" + + "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" + + "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" + + "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" + + "m.googleapis.com/Route\022^projects/{projec" + + "t}/locations/{location}/privateConnectio" + + "ns/{private_connection}/routes/{route}\"\312" + + "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" + + "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" + + "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" + + "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" + + "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" + + "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" + + "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" + + "nnectionProfile.LabelsEntry\022\031\n\014display_n" + + "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" + + ".google.cloud.datastream.v1.OracleProfil" + + "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." + + "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" + + "ile\030f \001(\0132(.google.cloud.datastream.v1.M" + + "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" + + "+.google.cloud.datastream.v1.BigQueryPro" + + "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" + + "gle.cloud.datastream.v1.PostgresqlProfil" + + "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" + + " \001(\01327.google.cloud.datastream.v1.Static" + + "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" + + "onnectivity\030\311\001 \001(\01328.google.cloud.datast" + + "ream.v1.ForwardSshTunnelConnectivityH\001\022P" + + "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" + + "loud.datastream.v1.PrivateConnectivityH\001" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" + + "/ConnectionProfile\022Oprojects/{project}/l" + + "ocations/{location}/connectionProfiles/{" + + "connection_profile}B\t\n\007profileB\016\n\014connec" + + "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" + + "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" + + "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" + + "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" + + "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" + + "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" + + "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" + + "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" + + ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" + + "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" + + "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" + + "tastream.v1.OracleSchema\"\347\003\n\022OracleSourc" + + "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" + + "lude_objects\030\002 \001(\0132\'.google.cloud.datast" + + "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" + + "c_tasks\030\003 \001(\005\022%\n\035max_concurrent_backfill" + + "_tasks\030\004 \001(\005\022]\n\022drop_large_objects\030d \001(\013" + + "2?.google.cloud.datastream.v1.OracleSour" + + "ceConfig.DropLargeObjectsH\000\022a\n\024stream_la" + + "rge_objects\030f \001(\0132A.google.cloud.datastr" + + "eam.v1.OracleSourceConfig.StreamLargeObj" + + "ectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLarg" + + "eObjectsB\030\n\026large_objects_handling\"\250\001\n\020P" + + "ostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_" + + "type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030" + + "\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001(" + + "\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030" + + "\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t\022" + + "H\n\022postgresql_columns\030\002 \003(\0132,.google.clo" + + "ud.datastream.v1.PostgresqlColumn\"j\n\020Pos" + + "tgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgre" + + "sql_tables\030\002 \003(\0132+.google.cloud.datastre" + + "am.v1.PostgresqlTable\"[\n\017PostgresqlRdbms" + + "\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.cl" + + "oud.datastream.v1.PostgresqlSchema\"\207\002\n\026P" + + "ostgresqlSourceConfig\022D\n\017include_objects" + + "\030\001 \001(\0132+.google.cloud.datastream.v1.Post" + + "gresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+.g" + + "oogle.cloud.datastream.v1.PostgresqlRdbm" + + "s\022 \n\020replication_slot\030\003 \001(\tB\006\340A\002\340A\005\022\030\n\013p" + + "ublication\030\004 \001(\tB\003\340A\002\022%\n\035max_concurrent_" + + "backfill_tasks\030\005 \001(\005\"\224\001\n\013MysqlColumn\022\016\n\006" + + "column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006lengt" + + "h\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_ke" + + "y\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_pos" + + "ition\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t" + + "\022>\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.d" + + "atastream.v1.MysqlColumn\"_\n\rMysqlDatabas" + + "e\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(" + + "\0132&.google.cloud.datastream.v1.MysqlTabl" + + "e\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\013" + + "2).google.cloud.datastream.v1.MysqlDatab" + + "ase\"\336\001\n\021MysqlSourceConfig\022?\n\017include_obj" + + "ects\030\001 \001(\0132&.google.cloud.datastream.v1." + + "MysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.go" + + "ogle.cloud.datastream.v1.MysqlRdbms\022 \n\030m" + + "ax_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035max_con" + + "current_backfill_tasks\030\004 \001(\005\"\364\002\n\014SourceC" + + "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + + "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + + "ectionProfile\022N\n\024oracle_source_config\030d " + + "\001(\0132..google.cloud.datastream.v1.OracleS" + + "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + + "(\0132-.google.cloud.datastream.v1.MysqlSou" + + "rceConfigH\000\022V\n\030postgresql_source_config\030" + + "f \001(\01322.google.cloud.datastream.v1.Postg" + + "resqlSourceConfigH\000B\026\n\024source_stream_con" + + "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" + + "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" + + "oud.datastream.v1.JsonFileFormat.SchemaF" + + "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." + + "cloud.datastream.v1.JsonFileFormat.JsonC" + + "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" + + "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" + + "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" + + "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" + + "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" + + "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" + + "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" + + "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" + + "vro_file_format\030d \001(\0132*.google.cloud.dat" + + "astream.v1.AvroFileFormatH\000\022F\n\020json_file" + + "_format\030e \001(\0132*.google.cloud.datastream." + + "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" + + "igQueryDestinationConfig\022k\n\025single_targe" + + "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" + + "am.v1.BigQueryDestinationConfig.SingleTa" + + "rgetDatasetH\000\022s\n\031source_hierarchy_datase" + + "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" + + "igQueryDestinationConfig.SourceHierarchy" + + "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" + + "ogle.protobuf.Duration\032)\n\023SingleTargetDa" + + "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" + + "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" + + "].google.cloud.datastream.v1.BigQueryDes" + + "tinationConfig.SourceHierarchyDatasets.D" + + "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" + + "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " + + "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" + + "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" + + "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" + + "tream.googleapis.com/ConnectionProfile\022R" + + "\n\026gcs_destination_config\030d \001(\01320.google." + + "cloud.datastream.v1.GcsDestinationConfig" + + "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" + + "5.google.cloud.datastream.v1.BigQueryDes" + + "tinationConfigH\000B\033\n\031destination_stream_c" + + "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" + + "..google.cloud.datastream.v1.Stream.Labe" + + "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" + + "urce_config\030\006 \001(\0132(.google.cloud.datastr" + + "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" + + "config\030\007 \001(\0132-.google.cloud.datastream.v" + + "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" + + "(.google.cloud.datastream.v1.Stream.Stat" + + "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" + + "atastream.v1.Stream.BackfillAllStrategyH" + + "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." + + "datastream.v1.Stream.BackfillNoneStrateg" + + "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" + + "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" + + "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" + + "illAllStrategy\022J\n\027oracle_excluded_object" + + "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" + + "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" + + "(\0132&.google.cloud.datastream.v1.MysqlRdb" + + "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" + + "\0132+.google.cloud.datastream.v1.Postgresq" + + "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" + + "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" + + "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" + + "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" + + "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" + + "pis.com/Stream\0228projects/{project}/locat" + + "ions/{location}/streams/{stream}B\023\n\021back" + + "fill_strategyB\"\n _customer_managed_encry" + + "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" + + "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" + + "backfill_job\030\007 \001(\0132\'.google.cloud.datast" + + "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" + + "(\01322.google.cloud.datastream.v1.SourceOb" + + "jectIdentifier:v\352As\n&datastream.googleap" + + "is.com/StreamObject\022Iprojects/{project}/" + + "locations/{location}/streams/{stream}/ob" + + "jects/{object}\"\271\004\n\026SourceObjectIdentifie" + + "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" + + "oud.datastream.v1.SourceObjectIdentifier" + + ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" + + "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" + + ".SourceObjectIdentifier.MysqlObjectIdent" + + "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" + + ".google.cloud.datastream.v1.SourceObject" + + "Identifier.PostgresqlObjectIdentifierH\000\032" + + "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" + + "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" + + "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + + "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" + + "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + + "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" + + "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" + + "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" + + "\0162/.google.cloud.datastream.v1.BackfillJ" + + "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" + + "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" + + "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" + + "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" + + "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" + + "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" + + "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" + + "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." + + "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" + + "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" + + "atastream.v1.Error.DetailsEntry\032.\n\014Detai" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" + + "2&.google.cloud.datastream.v1.Validation" + + "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" + + "state\030\002 \001(\0162,.google.cloud.datastream.v1" + + ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" + + "gle.cloud.datastream.v1.ValidationMessag" + + "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" + + "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" + + "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" + + "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" + + "atastream.v1.ValidationMessage.Level\022M\n\010" + + "metadata\030\003 \003(\0132;.google.cloud.datastream" + + ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" + + "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" + + "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\250\002\n\036c" + + "om.google.cloud.datastream.v1B\030Datastrea" + + "mResourcesProtoP\001Z>cloud.google.com/go/d" + + "atastream/apiv1/datastreampb;datastreamp" + + "b\252\002\032Google.Cloud.Datastream.V1\312\002\032Google\\" + + "Cloud\\Datastream\\V1\352\002\035Google::Cloud::Dat" + + "astream::V1\352AO\n\037compute.googleapis.com/N" + + "etworks\022,projects/{project}/global/netwo" + + "rks/{network}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", + }); + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor = + internal_static_google_cloud_datastream_v1_OracleProfile_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "SslConfig", + }); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "Database", + }); + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, + new java.lang.String[] { + "Bucket", "RootPath", + }); + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, + new java.lang.String[] { + "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", + }); + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, + new java.lang.String[] { + "Vpc", "Subnet", + }); + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "State", + "Error", + "VpcPeeringConfig", + }); + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, + new java.lang.String[] { + "PrivateConnection", + }); + internal_static_google_cloud_datastream_v1_Route_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Route_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "DestinationAddress", + "DestinationPort", + }); + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Route_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, + new java.lang.String[] { + "ClientKey", + "ClientKeySet", + "ClientCertificate", + "ClientCertificateSet", + "CaCertificate", + "CaCertificateSet", + }); + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "OracleProfile", + "GcsProfile", + "MysqlProfile", + "BigqueryProfile", + "PostgresqlProfile", + "StaticServiceIpConnectivity", + "ForwardSshConnectivity", + "PrivateConnectivity", + "Profile", + "Connectivity", + }); + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Precision", + "Scale", + "Encoding", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_OracleTable_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleTable_descriptor, + new java.lang.String[] { + "Table", "OracleColumns", + }); + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, + new java.lang.String[] { + "Schema", "OracleTables", + }); + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, + new java.lang.String[] { + "OracleSchemas", + }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", + "ExcludeObjects", + "MaxConcurrentCdcTasks", + "MaxConcurrentBackfillTasks", + "DropLargeObjects", + "StreamLargeObjects", + "LargeObjectsHandling", + }); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = + internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Precision", + "Scale", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, + new java.lang.String[] { + "Table", "PostgresqlColumns", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, + new java.lang.String[] { + "Schema", "PostgresqlTables", + }); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, + new java.lang.String[] { + "PostgresqlSchemas", + }); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", + "ExcludeObjects", + "ReplicationSlot", + "Publication", + "MaxConcurrentBackfillTasks", + }); + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, + new java.lang.String[] { + "Column", + "DataType", + "Length", + "Collation", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, + new java.lang.String[] { + "Table", "MysqlColumns", + }); + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, + new java.lang.String[] { + "Database", "MysqlTables", + }); + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, + new java.lang.String[] { + "MysqlDatabases", + }); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, + new java.lang.String[] { + "IncludeObjects", + "ExcludeObjects", + "MaxConcurrentCdcTasks", + "MaxConcurrentBackfillTasks", + }); + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, + new java.lang.String[] { + "SourceConnectionProfile", + "OracleSourceConfig", + "MysqlSourceConfig", + "PostgresqlSourceConfig", + "SourceStreamConfig", + }); + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, + new java.lang.String[] { + "SchemaFileFormat", "Compression", + }); + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, + new java.lang.String[] { + "Path", + "FileRotationMb", + "FileRotationInterval", + "AvroFileFormat", + "JsonFileFormat", + "FileFormat", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, + new java.lang.String[] { + "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, + new java.lang.String[] { + "DatasetId", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, + new java.lang.String[] { + "DatasetTemplate", + }); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, + new java.lang.String[] { + "Location", "DatasetIdPrefix", "KmsKeyName", + }); + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, + new java.lang.String[] { + "DestinationConnectionProfile", + "GcsDestinationConfig", + "BigqueryDestinationConfig", + "DestinationStreamConfig", + }); + internal_static_google_cloud_datastream_v1_Stream_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "SourceConfig", + "DestinationConfig", + "State", + "BackfillAll", + "BackfillNone", + "Errors", + "CustomerManagedEncryptionKey", + "BackfillStrategy", + "CustomerManagedEncryptionKey", + }); + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, + new java.lang.String[] { + "OracleExcludedObjects", + "MysqlExcludedObjects", + "PostgresqlExcludedObjects", + "ExcludedObjects", + }); + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_StreamObject_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_StreamObject_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "DisplayName", + "Errors", + "BackfillJob", + "SourceObject", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, + new java.lang.String[] { + "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor, + new java.lang.String[] { + "Schema", "Table", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, + new java.lang.String[] { + "Schema", "Table", + }); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, + new java.lang.String[] { + "Database", "Table", + }); + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, + new java.lang.String[] { + "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", + }); + internal_static_google_cloud_datastream_v1_Error_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Error_descriptor, + new java.lang.String[] { + "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", + }); + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor = + internal_static_google_cloud_datastream_v1_Error_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, + new java.lang.String[] { + "Validations", + }); + internal_static_google_cloud_datastream_v1_Validation_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_Validation_descriptor, + new java.lang.String[] { + "Description", "State", "Message", "Code", + }); + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, + new java.lang.String[] { + "Message", "Level", "Metadata", "Code", + }); + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor = + internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java index 664865f1cd0e..17003c315d95 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for deleting a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +45,45 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +146,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +155,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +179,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +196,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +208,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,17 +238,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other = (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other = + (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +269,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteConnectionProfileRequest) com.google.cloud.datastream.v1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,13 +409,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance(); } @@ -392,13 +431,17 @@ public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = + new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -412,38 +455,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeleteConnectionProfil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +495,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +534,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +562,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +591,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +615,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +657,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +683,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +700,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +715,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +732,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +747,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +764,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +795,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +805,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +822,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +848,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.DeleteConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(); } @@ -774,27 +863,27 @@ public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +898,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java index fb6fe83c7818..c1def32dfeb7 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteConnectionProfileRequestOrBuilder extends +public interface DeleteConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java index 0d5c90a85c50..37d19bdf9747 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request to delete a private connection.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeletePrivateConnectionRequest} */ -public final class DeletePrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeletePrivateConnectionRequest) DeletePrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePrivateConnectionRequest.newBuilder() to construct. - private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePrivateConnectionRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +45,45 @@ private DeletePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +92,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +125,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +146,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +155,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +179,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -166,12 +198,15 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** + * + * *
    * Optional. If set to true, any child routes that belong to this
    * PrivateConnection will also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -180,6 +215,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +227,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -218,8 +253,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -229,19 +263,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeletePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other = (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other = + (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -258,137 +290,143 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to delete a private connection.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeletePrivateConnectionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeletePrivateConnectionRequest) com.google.cloud.datastream.v1.DeletePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -400,13 +438,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance(); } @@ -421,13 +460,17 @@ public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = + new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -444,38 +487,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeletePrivateConnectio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; @@ -483,7 +527,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -523,27 +569,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - force_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -553,22 +603,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -577,20 +632,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -598,28 +656,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -629,17 +698,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -649,6 +724,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -664,13 +741,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -679,6 +756,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -694,15 +773,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -710,6 +788,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -725,18 +805,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -752,6 +836,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -761,6 +846,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -776,12 +863,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; @@ -789,14 +878,17 @@ public Builder setRequestIdBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set to true, any child routes that belong to this
      * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -804,29 +896,35 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set to true, any child routes that belong to this
      * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set to true, any child routes that belong to this
      * PrivateConnection will also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -835,9 +933,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,12 +945,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeletePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeletePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1.DeletePrivateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.DeletePrivateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(); } @@ -861,27 +960,27 @@ public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +995,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java index 5b3dd2fe7bb7..2cd02b0b8bb9 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeletePrivateConnectionRequestOrBuilder extends +public interface DeletePrivateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeletePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeletePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,18 +92,21 @@ public interface DeletePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. If set to true, any child routes that belong to this
    * PrivateConnection will also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java index 2e245525070b..99a2035459be 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Route deletion request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteRouteRequest} */ -public final class DeleteRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteRouteRequest) DeleteRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRouteRequest.newBuilder() to construct. private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRouteRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteRouteRequest.class, com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteRouteRequest.class, + com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteRouteRequest other = (com.google.cloud.datastream.v1.DeleteRouteRequest) obj; + com.google.cloud.datastream.v1.DeleteRouteRequest other = + (com.google.cloud.datastream.v1.DeleteRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Route deletion request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteRouteRequest) com.google.cloud.datastream.v1.DeleteRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteRouteRequest.class, com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteRouteRequest.class, + com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteRouteRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; } @java.lang.Override @@ -392,8 +428,11 @@ public com.google.cloud.datastream.v1.DeleteRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteRouteRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteRouteRequest result = new com.google.cloud.datastream.v1.DeleteRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DeleteRouteRequest result = + new com.google.cloud.datastream.v1.DeleteRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +451,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeleteRouteRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteRouteRequest other) { - if (other == com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +557,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +586,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +610,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +652,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +678,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +695,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +710,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +727,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +742,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +759,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +790,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +800,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +817,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +843,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteRouteRequest) private static final com.google.cloud.datastream.v1.DeleteRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteRouteRequest(); } @@ -774,27 +857,27 @@ public static com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +892,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java index eb3c2612d62f..15ac9157fc49 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteRouteRequestOrBuilder extends +public interface DeleteRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java index 1ecc84efd6ca..51e2c894a6cd 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for deleting a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteStreamRequest} */ -public final class DeleteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteStreamRequest) DeleteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteStreamRequest.newBuilder() to construct. private DeleteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteStreamRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteStreamRequest.class, com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteStreamRequest.class, + com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DeleteStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DeleteStreamRequest other = (com.google.cloud.datastream.v1.DeleteStreamRequest) obj; + com.google.cloud.datastream.v1.DeleteStreamRequest other = + (com.google.cloud.datastream.v1.DeleteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.DeleteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for deleting a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DeleteStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DeleteStreamRequest) com.google.cloud.datastream.v1.DeleteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DeleteStreamRequest.class, com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1.DeleteStreamRequest.class, + com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DeleteStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +407,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; } @java.lang.Override @@ -392,8 +428,11 @@ public com.google.cloud.datastream.v1.DeleteStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DeleteStreamRequest buildPartial() { - com.google.cloud.datastream.v1.DeleteStreamRequest result = new com.google.cloud.datastream.v1.DeleteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DeleteStreamRequest result = + new com.google.cloud.datastream.v1.DeleteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +451,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.DeleteStreamRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DeleteStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DeleteStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.DeleteStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +491,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteStreamRequest other) { - if (other == com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +529,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +557,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +586,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +610,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +652,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +678,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +695,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +710,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +727,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +742,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +759,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +790,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +800,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +817,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +843,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DeleteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DeleteStreamRequest) private static final com.google.cloud.datastream.v1.DeleteStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteStreamRequest(); } @@ -774,27 +857,27 @@ public static com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +892,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java index fa3991afb723..27aaca5e9146 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DeleteStreamRequestOrBuilder extends +public interface DeleteStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DeleteStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteStreamRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteStreamRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java index 75c2d1213401..9e6af6d51b19 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * The configuration of the stream destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DestinationConfig} */ -public final class DestinationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DestinationConfig) DestinationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DestinationConfig.newBuilder() to construct. private DestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DestinationConfig() { destinationConnectionProfile_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DestinationConfig.class, com.google.cloud.datastream.v1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1.DestinationConfig.class, + com.google.cloud.datastream.v1.DestinationConfig.Builder.class); } private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; + public enum DestinationStreamConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), BIGQUERY_DESTINATION_CONFIG(101), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; + private DestinationStreamConfigCase(int value) { this.value = value; } @@ -72,33 +94,42 @@ public static DestinationStreamConfigCase valueOf(int value) { public static DestinationStreamConfigCase forNumber(int value) { switch (value) { - case 100: return GCS_DESTINATION_CONFIG; - case 101: return BIGQUERY_DESTINATION_CONFIG; - case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return GCS_DESTINATION_CONFIG; + case 101: + return BIGQUERY_DESTINATION_CONFIG; + case 0: + return DESTINATIONSTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationStreamConfigCase - getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber( - destinationStreamConfigCase_); + public DestinationStreamConfigCase getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); } public static final int DESTINATION_CONNECTION_PROFILE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object destinationConnectionProfile_ = ""; /** + * + * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destinationConnectionProfile. */ @java.lang.Override @@ -107,30 +138,32 @@ public java.lang.String getDestinationConnectionProfile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfile_ = s; return s; } } /** + * + * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationConnectionProfile. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationConnectionProfileBytes() { + public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { java.lang.Object ref = destinationConnectionProfile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationConnectionProfile_ = b; return b; } else { @@ -140,11 +173,14 @@ public java.lang.String getDestinationConnectionProfile() { public static final int GCS_DESTINATION_CONFIG_FIELD_NUMBER = 100; /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -152,21 +188,26 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConfig() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
@@ -174,20 +215,25 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder + getGcsDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } public static final int BIGQUERY_DESTINATION_CONFIG_FIELD_NUMBER = 101; /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return Whether the bigqueryDestinationConfig field is set. */ @java.lang.Override @@ -195,36 +241,45 @@ public boolean hasBigqueryDestinationConfig() { return destinationStreamConfigCase_ == 101; } /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return The bigqueryDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,16 +291,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationConnectionProfile_); } if (destinationStreamConfigCase_ == 100) { - output.writeMessage(100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); + output.writeMessage( + 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } if (destinationStreamConfigCase_ == 101) { - output.writeMessage(101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + output.writeMessage( + 101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); } getUnknownFields().writeTo(output); } @@ -257,15 +313,20 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfile_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationConnectionProfile_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, destinationConnectionProfile_); } if (destinationStreamConfigCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); } if (destinationStreamConfigCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -275,24 +336,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DestinationConfig other = (com.google.cloud.datastream.v1.DestinationConfig) obj; + com.google.cloud.datastream.v1.DestinationConfig other = + (com.google.cloud.datastream.v1.DestinationConfig) obj; - if (!getDestinationConnectionProfile() - .equals(other.getDestinationConnectionProfile())) return false; - if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) return false; + if (!getDestinationConnectionProfile().equals(other.getDestinationConnectionProfile())) + return false; + if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) + return false; switch (destinationStreamConfigCase_) { case 100: - if (!getGcsDestinationConfig() - .equals(other.getGcsDestinationConfig())) return false; + if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; break; case 101: - if (!getBigqueryDestinationConfig() - .equals(other.getBigqueryDestinationConfig())) return false; + if (!getBigqueryDestinationConfig().equals(other.getBigqueryDestinationConfig())) + return false; break; case 0: default: @@ -327,130 +389,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DestinationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.DestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the stream destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DestinationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DestinationConfig) com.google.cloud.datastream.v1.DestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DestinationConfig.class, com.google.cloud.datastream.v1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1.DestinationConfig.class, + com.google.cloud.datastream.v1.DestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.DestinationConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -468,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; } @java.lang.Override @@ -489,8 +557,11 @@ public com.google.cloud.datastream.v1.DestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfig buildPartial() { - com.google.cloud.datastream.v1.DestinationConfig result = new com.google.cloud.datastream.v1.DestinationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DestinationConfig result = + new com.google.cloud.datastream.v1.DestinationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -506,12 +577,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.DestinationConfig resu private void buildPartialOneofs(com.google.cloud.datastream.v1.DestinationConfig result) { result.destinationStreamConfigCase_ = destinationStreamConfigCase_; result.destinationStreamConfig_ = this.destinationStreamConfig_; - if (destinationStreamConfigCase_ == 100 && - gcsDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 100 && gcsDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } - if (destinationStreamConfigCase_ == 101 && - bigqueryDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 101 && bigqueryDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = bigqueryDestinationConfigBuilder_.build(); } } @@ -520,38 +589,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.DestinationConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.DestinationConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.DestinationConfig) other); } else { super.mergeFrom(other); return this; @@ -559,24 +629,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.DestinationConfig other) { - if (other == com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) + return this; if (!other.getDestinationConnectionProfile().isEmpty()) { destinationConnectionProfile_ = other.destinationConnectionProfile_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDestinationStreamConfigCase()) { - case GCS_DESTINATION_CONFIG: { - mergeGcsDestinationConfig(other.getGcsDestinationConfig()); - break; - } - case BIGQUERY_DESTINATION_CONFIG: { - mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); - break; - } - case DESTINATIONSTREAMCONFIG_NOT_SET: { - break; - } + case GCS_DESTINATION_CONFIG: + { + mergeGcsDestinationConfig(other.getGcsDestinationConfig()); + break; + } + case BIGQUERY_DESTINATION_CONFIG: + { + mergeBigqueryDestinationConfig(other.getBigqueryDestinationConfig()); + break; + } + case DESTINATIONSTREAMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -604,31 +678,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - destinationConnectionProfile_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: { - input.readMessage( - getGcsDestinationConfigFieldBuilder().getBuilder(), - extensionRegistry); - destinationStreamConfigCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getBigqueryDestinationConfigFieldBuilder().getBuilder(), - extensionRegistry); - destinationStreamConfigCase_ = 101; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + destinationConnectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: + { + input.readMessage( + getGcsDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); + destinationStreamConfigCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getBigqueryDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); + destinationStreamConfigCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -638,12 +714,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - public DestinationStreamConfigCase - getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber( - destinationStreamConfigCase_); + + public DestinationStreamConfigCase getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); } public Builder clearDestinationStreamConfig() { @@ -657,19 +733,23 @@ public Builder clearDestinationStreamConfig() { private java.lang.Object destinationConnectionProfile_ = ""; /** + * + * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destinationConnectionProfile. */ public java.lang.String getDestinationConnectionProfile() { java.lang.Object ref = destinationConnectionProfile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfile_ = s; return s; @@ -678,21 +758,24 @@ public java.lang.String getDestinationConnectionProfile() { } } /** + * + * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationConnectionProfile. */ - public com.google.protobuf.ByteString - getDestinationConnectionProfileBytes() { + public com.google.protobuf.ByteString getDestinationConnectionProfileBytes() { java.lang.Object ref = destinationConnectionProfile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationConnectionProfile_ = b; return b; } else { @@ -700,30 +783,41 @@ public java.lang.String getDestinationConnectionProfile() { } } /** + * + * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The destinationConnectionProfile to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfile( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationConnectionProfile_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearDestinationConnectionProfile() { @@ -733,18 +827,24 @@ public Builder clearDestinationConnectionProfile() { return this; } /** + * + * *
      * Required. Destination connection profile resource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for destinationConnectionProfile to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationConnectionProfile_ = value; bitField0_ |= 0x00000001; @@ -753,13 +853,19 @@ public Builder setDestinationConnectionProfileBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> gcsDestinationConfigBuilder_; + com.google.cloud.datastream.v1.GcsDestinationConfig, + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> + gcsDestinationConfigBuilder_; /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -767,11 +873,14 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return The gcsDestinationConfig. */ @java.lang.Override @@ -789,13 +898,16 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConf } } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestinationConfig value) { + public Builder setGcsDestinationConfig( + com.google.cloud.datastream.v1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -809,6 +921,8 @@ public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestina return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -827,18 +941,26 @@ public Builder setGcsDestinationConfig( return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestinationConfig value) { + public Builder mergeGcsDestinationConfig( + com.google.cloud.datastream.v1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 100 && - destinationStreamConfig_ != com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder((com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_) - .mergeFrom(value).buildPartial(); + if (destinationStreamConfigCase_ == 100 + && destinationStreamConfig_ + != com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder( + (com.google.cloud.datastream.v1.GcsDestinationConfig) + destinationStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { destinationStreamConfig_ = value; } @@ -854,6 +976,8 @@ public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDesti return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -877,16 +1001,21 @@ public Builder clearGcsDestinationConfig() { return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ - public com.google.cloud.datastream.v1.GcsDestinationConfig.Builder getGcsDestinationConfigBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfig.Builder + getGcsDestinationConfigBuilder() { return getGcsDestinationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -894,7 +1023,8 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig.Builder getGcsDestina * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder + getGcsDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 100) && (gcsDestinationConfigBuilder_ != null)) { return gcsDestinationConfigBuilder_.getMessageOrBuilder(); } else { @@ -905,6 +1035,8 @@ public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestin } } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -912,14 +1044,20 @@ public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestin * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> + com.google.cloud.datastream.v1.GcsDestinationConfig, + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder> getGcsDestinationConfigFieldBuilder() { if (gcsDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 100)) { - destinationStreamConfig_ = com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = + com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); } - gcsDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.GcsDestinationConfig, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder>( + gcsDestinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.GcsDestinationConfig, + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder>( (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_, getParentForChildren(), isClean()); @@ -931,13 +1069,21 @@ public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestin } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> bigqueryDestinationConfigBuilder_; + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + bigqueryDestinationConfigBuilder_; /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return Whether the bigqueryDestinationConfig field is set. */ @java.lang.Override @@ -945,18 +1091,24 @@ public boolean hasBigqueryDestinationConfig() { return destinationStreamConfigCase_ == 101; } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return The bigqueryDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig() { if (bigqueryDestinationConfigBuilder_ == null) { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } else { @@ -967,13 +1119,18 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDesti } } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ - public Builder setBigqueryDestinationConfig(com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + public Builder setBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { if (bigqueryDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -987,11 +1144,15 @@ public Builder setBigqueryDestinationConfig(com.google.cloud.datastream.v1.BigQu return this; } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ public Builder setBigqueryDestinationConfig( com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder builderForValue) { @@ -1005,18 +1166,28 @@ public Builder setBigqueryDestinationConfig( return this; } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ - public Builder mergeBigqueryDestinationConfig(com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { + public Builder mergeBigqueryDestinationConfig( + com.google.cloud.datastream.v1.BigQueryDestinationConfig value) { if (bigqueryDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 101 && - destinationStreamConfig_ != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder((com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_) - .mergeFrom(value).buildPartial(); + if (destinationStreamConfigCase_ == 101 + && destinationStreamConfig_ + != com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.newBuilder( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { destinationStreamConfig_ = value; } @@ -1032,11 +1203,15 @@ public Builder mergeBigqueryDestinationConfig(com.google.cloud.datastream.v1.Big return this; } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ public Builder clearBigqueryDestinationConfig() { if (bigqueryDestinationConfigBuilder_ == null) { @@ -1055,49 +1230,70 @@ public Builder clearBigqueryDestinationConfig() { return this; } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ - public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder getBigqueryDestinationConfigBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder + getBigqueryDestinationConfigBuilder() { return getBigqueryDestinationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 101) && (bigqueryDestinationConfigBuilder_ != null)) { return bigqueryDestinationConfigBuilder_.getMessageOrBuilder(); } else { if (destinationStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_; } return com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } } /** + * + * *
      * BigQuery destination configuration.
      * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder> getBigqueryDestinationConfigFieldBuilder() { if (bigqueryDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 101)) { - destinationStreamConfig_ = com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = + com.google.cloud.datastream.v1.BigQueryDestinationConfig.getDefaultInstance(); } - bigqueryDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BigQueryDestinationConfig, com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( + bigqueryDestinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BigQueryDestinationConfig, + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder, + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder>( (com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_, getParentForChildren(), isClean()); @@ -1107,9 +1303,9 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigq onChanged(); return bigqueryDestinationConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1119,12 +1315,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DestinationConfig) private static final com.google.cloud.datastream.v1.DestinationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DestinationConfig(); } @@ -1133,27 +1329,27 @@ public static com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,6 +1364,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java index 4b7ec8c82c71..6c9dd4b63ef5 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface DestinationConfigOrBuilder extends +public interface DestinationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DestinationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The destinationConnectionProfile. */ java.lang.String getDestinationConnectionProfile(); /** + * + * *
    * Required. Destination connection profile resource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string destination_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for destinationConnectionProfile. */ - com.google.protobuf.ByteString - getDestinationConnectionProfileBytes(); + com.google.protobuf.ByteString getDestinationConnectionProfileBytes(); /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return Whether the gcsDestinationConfig field is set. */ boolean hasGcsDestinationConfig(); /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
* * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + * * @return The gcsDestinationConfig. */ com.google.cloud.datastream.v1.GcsDestinationConfig getGcsDestinationConfig(); /** + * + * *
    * A configuration for how data should be loaded to Cloud Storage.
    * 
@@ -57,31 +90,44 @@ public interface DestinationConfigOrBuilder extends com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return Whether the bigqueryDestinationConfig field is set. */ boolean hasBigqueryDestinationConfig(); /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * + * * @return The bigqueryDestinationConfig. */ com.google.cloud.datastream.v1.BigQueryDestinationConfig getBigqueryDestinationConfig(); /** + * + * *
    * BigQuery destination configuration.
    * 
* - * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * .google.cloud.datastream.v1.BigQueryDestinationConfig bigquery_destination_config = 101; + * */ - com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder getBigqueryDestinationConfigOrBuilder(); + com.google.cloud.datastream.v1.BigQueryDestinationConfigOrBuilder + getBigqueryDestinationConfigOrBuilder(); - public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); + public com.google.cloud.datastream.v1.DestinationConfig.DestinationStreamConfigCase + getDestinationStreamConfigCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index aee864c71427..3fadca8bff6f 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -1,62 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for 'discover' ConnectionProfile request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ -public final class DiscoverConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiscoverConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) DiscoverConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileRequest.newBuilder() to construct. - private DiscoverConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiscoverConnectionProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_PROFILE(200), CONNECTION_PROFILE_NAME(201), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -72,32 +95,38 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 200: return CONNECTION_PROFILE; - case 201: return CONNECTION_PROFILE_NAME; - case 0: return TARGET_NOT_SET; - default: return null; + case 200: + return CONNECTION_PROFILE; + case 201: + return CONNECTION_PROFILE_NAME; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; + public enum HierarchyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { FULL_HIERARCHY(3), HIERARCHY_DEPTH(4), HIERARCHY_NOT_SET(0); private final int value; + private HierarchyCase(int value) { this.value = value; } @@ -113,33 +142,39 @@ public static HierarchyCase valueOf(int value) { public static HierarchyCase forNumber(int value) { switch (value) { - case 3: return FULL_HIERARCHY; - case 4: return HIERARCHY_DEPTH; - case 0: return HIERARCHY_NOT_SET; - default: return null; + case 3: + return FULL_HIERARCHY; + case 4: + return HIERARCHY_DEPTH; + case 0: + return HIERARCHY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public HierarchyCase - getHierarchyCase() { - return HierarchyCase.forNumber( - hierarchyCase_); + public HierarchyCase getHierarchyCase() { + return HierarchyCase.forNumber(hierarchyCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; + public enum DataObjectCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -155,34 +190,44 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: return ORACLE_RDBMS; - case 101: return MYSQL_RDBMS; - case 102: return POSTGRESQL_RDBMS; - case 0: return DATAOBJECT_NOT_SET; - default: return null; + case 100: + return ORACLE_RDBMS; + case 101: + return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; + case 0: + return DATAOBJECT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource of the connection profile type. Must be in
    * the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -191,30 +236,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource of the connection profile type. Must be in
    * the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -224,11 +271,14 @@ public java.lang.String getParent() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -236,21 +286,26 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
@@ -260,29 +315,35 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { @@ -293,8 +354,7 @@ public java.lang.String getConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -303,23 +363,24 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ - public com.google.protobuf.ByteString - getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -331,12 +392,15 @@ public java.lang.String getConnectionProfileName() { public static final int FULL_HIERARCHY_FIELD_NUMBER = 3; /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; + * * @return Whether the fullHierarchy field is set. */ @java.lang.Override @@ -344,12 +408,15 @@ public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; + * * @return The fullHierarchy. */ @java.lang.Override @@ -362,11 +429,14 @@ public boolean getFullHierarchy() { public static final int HIERARCHY_DEPTH_FIELD_NUMBER = 4; /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; + * * @return Whether the hierarchyDepth field is set. */ @java.lang.Override @@ -374,11 +444,14 @@ public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; + * * @return The hierarchyDepth. */ @java.lang.Override @@ -391,11 +464,14 @@ public int getHierarchyDepth() { public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -403,21 +479,26 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -427,18 +508,21 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -446,21 +530,26 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -470,18 +559,21 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -489,21 +581,26 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -513,12 +610,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,18 +628,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (hierarchyCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) hierarchy_)); + output.writeBool(3, (boolean) ((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { - output.writeInt32( - 4, (int)((java.lang.Integer) hierarchy_)); + output.writeInt32(4, (int) ((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); @@ -571,30 +666,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (hierarchyCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) hierarchy_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) hierarchy_)); } if (hierarchyCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 4, (int)((java.lang.Integer) hierarchy_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 4, (int) ((java.lang.Integer) hierarchy_)); } if (dataObjectCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (dataObjectCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } if (targetCase_ == 200) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); @@ -607,24 +706,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other = + (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; break; case 201: - if (!getConnectionProfileName() - .equals(other.getConnectionProfileName())) return false; + if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; break; case 0: default: @@ -632,12 +729,10 @@ public boolean equals(final java.lang.Object obj) { if (!getHierarchyCase().equals(other.getHierarchyCase())) return false; switch (hierarchyCase_) { case 3: - if (getFullHierarchy() - != other.getFullHierarchy()) return false; + if (getFullHierarchy() != other.getFullHierarchy()) return false; break; case 4: - if (getHierarchyDepth() - != other.getHierarchyDepth()) return false; + if (getHierarchyDepth() != other.getHierarchyDepth()) return false; break; case 0: default: @@ -645,16 +740,13 @@ public boolean equals(final java.lang.Object obj) { if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms() - .equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms() - .equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; case 102: - if (!getPostgresqlRdbms() - .equals(other.getPostgresqlRdbms())) return false; + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; break; case 0: default: @@ -687,8 +779,7 @@ public int hashCode() { switch (hierarchyCase_) { case 3: hash = (37 * hash) + FULL_HIERARCHY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFullHierarchy()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullHierarchy()); break; case 4: hash = (37 * hash) + HIERARCHY_DEPTH_FIELD_NUMBER; @@ -719,129 +810,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for 'discover' ConnectionProfile request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) com.google.cloud.datastream.v1.DiscoverConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -869,13 +967,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance(); } @@ -890,41 +989,42 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = + new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } } - private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 200 && - connectionProfileBuilder_ != null) { + if (targetCase_ == 200 && connectionProfileBuilder_ != null) { result.target_ = connectionProfileBuilder_.build(); } result.hierarchyCase_ = hierarchyCase_; result.hierarchy_ = this.hierarchy_; result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && - oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && - mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } - if (dataObjectCase_ == 102 && - postgresqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } } @@ -933,95 +1033,109 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case CONNECTION_PROFILE: { - mergeConnectionProfile(other.getConnectionProfile()); - break; - } - case CONNECTION_PROFILE_NAME: { - targetCase_ = 201; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: { - break; - } + case CONNECTION_PROFILE: + { + mergeConnectionProfile(other.getConnectionProfile()); + break; + } + case CONNECTION_PROFILE_NAME: + { + targetCase_ = 201; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: + { + break; + } } switch (other.getHierarchyCase()) { - case FULL_HIERARCHY: { - setFullHierarchy(other.getFullHierarchy()); - break; - } - case HIERARCHY_DEPTH: { - setHierarchyDepth(other.getHierarchyDepth()); - break; - } - case HIERARCHY_NOT_SET: { - break; - } + case FULL_HIERARCHY: + { + setFullHierarchy(other.getFullHierarchy()); + break; + } + case HIERARCHY_DEPTH: + { + setHierarchyDepth(other.getHierarchyDepth()); + break; + } + case HIERARCHY_NOT_SET: + { + break; + } } switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case POSTGRESQL_RDBMS: { - mergePostgresqlRdbms(other.getPostgresqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: { - break; - } + case ORACLE_RDBMS: + { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: + { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1049,61 +1163,63 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - hierarchy_ = input.readBool(); - hierarchyCase_ = 3; - break; - } // case 24 - case 32: { - hierarchy_ = input.readInt32(); - hierarchyCase_ = 4; - break; - } // case 32 - case 802: { - input.readMessage( - getOracleRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getPostgresqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 102; - break; - } // case 818 - case 1602: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - targetCase_ = 200; - break; - } // case 1602 - case 1610: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } // case 1610 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + hierarchy_ = input.readBool(); + hierarchyCase_ = 3; + break; + } // case 24 + case 32: + { + hierarchy_ = input.readInt32(); + hierarchyCase_ = 4; + break; + } // case 32 + case 802: + { + input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getPostgresqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 102; + break; + } // case 818 + case 1602: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 200; + break; + } // case 1602 + case 1610: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } // case 1610 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1113,12 +1229,12 @@ public Builder mergeFrom( } // finally return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -1130,10 +1246,9 @@ public Builder clearTarget() { private int hierarchyCase_ = 0; private java.lang.Object hierarchy_; - public HierarchyCase - getHierarchyCase() { - return HierarchyCase.forNumber( - hierarchyCase_); + + public HierarchyCase getHierarchyCase() { + return HierarchyCase.forNumber(hierarchyCase_); } public Builder clearHierarchy() { @@ -1145,10 +1260,9 @@ public Builder clearHierarchy() { private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public Builder clearDataObject() { @@ -1162,19 +1276,23 @@ public Builder clearDataObject() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource of the connection profile type. Must be in
      * the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1183,21 +1301,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource of the connection profile type. Must be in
      * the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1205,30 +1326,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource of the connection profile type. Must be in
      * the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource of the connection profile type. Must be in
      * the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1238,18 +1370,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource of the connection profile type. Must be in
      * the format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1258,13 +1396,19 @@ public Builder setParentBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -1272,11 +1416,14 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ @java.lang.Override @@ -1294,6 +1441,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1314,6 +1463,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1332,6 +1483,8 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1340,10 +1493,13 @@ public Builder setConnectionProfile( */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (targetCase_ == 200 && - target_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { - target_ = com.google.cloud.datastream.v1.ConnectionProfile.newBuilder((com.google.cloud.datastream.v1.ConnectionProfile) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 200 + && target_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + target_ = + com.google.cloud.datastream.v1.ConnectionProfile.newBuilder( + (com.google.cloud.datastream.v1.ConnectionProfile) target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -1359,6 +1515,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1382,6 +1540,8 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1392,6 +1552,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1399,7 +1561,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { @@ -1410,6 +1573,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1417,14 +1582,19 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); } - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1.ConnectionProfile) target_, getParentForChildren(), isClean()); @@ -1436,11 +1606,14 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1448,11 +1621,14 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ @java.lang.Override @@ -1462,8 +1638,7 @@ public java.lang.String getConnectionProfileName() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -1474,24 +1649,25 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -1501,28 +1677,35 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @param value The connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetCase_ = 201; target_ = value; onChanged(); return this; } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @return This builder for chaining. */ public Builder clearConnectionProfileName() { @@ -1534,17 +1717,21 @@ public Builder clearConnectionProfileName() { return this; } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; @@ -1553,24 +1740,30 @@ public Builder setConnectionProfileNameBytes( } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; + * * @return Whether the fullHierarchy field is set. */ public boolean hasFullHierarchy() { return hierarchyCase_ == 3; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; + * * @return The fullHierarchy. */ public boolean getFullHierarchy() { @@ -1580,29 +1773,35 @@ public boolean getFullHierarchy() { return false; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; + * * @param value The fullHierarchy to set. * @return This builder for chaining. */ public Builder setFullHierarchy(boolean value) { - + hierarchyCase_ = 3; hierarchy_ = value; onChanged(); return this; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool full_hierarchy = 3; + * * @return This builder for chaining. */ public Builder clearFullHierarchy() { @@ -1615,22 +1814,28 @@ public Builder clearFullHierarchy() { } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; + * * @return Whether the hierarchyDepth field is set. */ public boolean hasHierarchyDepth() { return hierarchyCase_ == 4; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; + * * @return The hierarchyDepth. */ public int getHierarchyDepth() { @@ -1640,27 +1845,33 @@ public int getHierarchyDepth() { return 0; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; + * * @param value The hierarchyDepth to set. * @return This builder for chaining. */ public Builder setHierarchyDepth(int value) { - + hierarchyCase_ = 4; hierarchy_ = value; onChanged(); return this; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 hierarchy_depth = 4; + * * @return This builder for chaining. */ public Builder clearHierarchyDepth() { @@ -1673,13 +1884,19 @@ public Builder clearHierarchyDepth() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + oracleRdbmsBuilder_; /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -1687,11 +1904,14 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override @@ -1709,6 +1929,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1729,6 +1951,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1747,6 +1971,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1755,10 +1981,13 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 && - dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 100 + && dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1.OracleRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -1774,6 +2003,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1797,6 +2028,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1807,6 +2040,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1825,6 +2060,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1832,14 +2069,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1851,13 +2093,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + mysqlRdbmsBuilder_; /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -1865,11 +2113,14 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override @@ -1887,6 +2138,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1907,6 +2160,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1925,6 +2180,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1933,10 +2190,13 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 && - dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 101 + && dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -1952,6 +2212,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1975,6 +2237,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1985,6 +2249,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2003,6 +2269,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2010,14 +2278,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2029,13 +2302,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlRdbmsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -2043,11 +2322,14 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ @java.lang.Override @@ -2065,6 +2347,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2085,6 +2369,8 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2103,6 +2389,8 @@ public Builder setPostgresqlRdbms( return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2111,10 +2399,13 @@ public Builder setPostgresqlRdbms( */ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 102 && - dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -2130,6 +2421,8 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2153,6 +2446,8 @@ public Builder clearPostgresqlRdbms() { return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2163,6 +2458,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2181,6 +2478,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2188,14 +2487,19 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlRdbmsFieldBuilder() { if (postgresqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 102)) { dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -2205,9 +2509,9 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm onChanged(); return postgresqlRdbmsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2217,41 +2521,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2263,9 +2569,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 8406f2118606..28bd4ea979f3 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DiscoverConnectionProfileRequestOrBuilder extends +public interface DiscoverConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource of the connection profile type. Must be in
    * the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource of the connection profile type. Must be in
    * the format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
* * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * An ad-hoc connection profile configuration.
    * 
@@ -57,93 +90,121 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ boolean hasConnectionProfileName(); /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ java.lang.String getConnectionProfileName(); /** + * + * *
    * A reference to an existing connection profile.
    * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ - com.google.protobuf.ByteString - getConnectionProfileNameBytes(); + com.google.protobuf.ByteString getConnectionProfileNameBytes(); /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; + * * @return Whether the fullHierarchy field is set. */ boolean hasFullHierarchy(); /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool full_hierarchy = 3; + * * @return The fullHierarchy. */ boolean getFullHierarchy(); /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; + * * @return Whether the hierarchyDepth field is set. */ boolean hasHierarchyDepth(); /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 hierarchy_depth = 4; + * * @return The hierarchyDepth. */ int getHierarchyDepth(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -153,24 +214,32 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -180,24 +249,32 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ boolean hasPostgresqlRdbms(); /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); /** + * + * *
    * PostgreSQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -208,7 +285,9 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase getHierarchyCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.HierarchyCase + getHierarchyCase(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.DataObjectCase getDataObjectCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.DataObjectCase + getDataObjectCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index 661666587fa8..ff8fc4601cd7 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response from a discover request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileResponse} */ -public final class DiscoverConnectionProfileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiscoverConnectionProfileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) DiscoverConnectionProfileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileResponse.newBuilder() to construct. - private DiscoverConnectionProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiscoverConnectionProfileResponse() { - } + + private DiscoverConnectionProfileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverConnectionProfileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; + public enum DataObjectCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), POSTGRESQL_RDBMS(102), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -72,31 +94,38 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: return ORACLE_RDBMS; - case 101: return MYSQL_RDBMS; - case 102: return POSTGRESQL_RDBMS; - case 0: return DATAOBJECT_NOT_SET; - default: return null; + case 100: + return ORACLE_RDBMS; + case 101: + return MYSQL_RDBMS; + case 102: + return POSTGRESQL_RDBMS; + case 0: + return DATAOBJECT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -104,21 +133,26 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
@@ -128,18 +162,21 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -147,21 +184,26 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
@@ -171,18 +213,21 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_RDBMS_FIELD_NUMBER = 102; /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -190,21 +235,26 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
@@ -214,12 +264,13 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder() { if (dataObjectCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +282,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } @@ -252,16 +302,19 @@ public int getSerializedSize() { size = 0; if (dataObjectCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); } if (dataObjectCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -271,26 +324,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other = (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) obj; + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other = + (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) obj; if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms() - .equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms() - .equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; case 102: - if (!getPostgresqlRdbms() - .equals(other.getPostgresqlRdbms())) return false; + if (!getPostgresqlRdbms().equals(other.getPostgresqlRdbms())) return false; break; case 0: default: @@ -328,129 +379,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response from a discover request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.DiscoverConnectionProfileResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) com.google.cloud.datastream.v1.DiscoverConnectionProfileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -470,13 +528,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance(); } @@ -491,30 +550,32 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse build() @java.lang.Override public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse buildPartial() { - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = + new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result) { result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && - oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && - mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } - if (dataObjectCase_ == 102 && - postgresqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 102 && postgresqlRdbmsBuilder_ != null) { result.dataObject_ = postgresqlRdbmsBuilder_.build(); } } @@ -523,62 +584,70 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.DiscoverConnectio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) { - return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other) { - if (other == com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse other) { + if (other + == com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance()) + return this; switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case POSTGRESQL_RDBMS: { - mergePostgresqlRdbms(other.getPostgresqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: { - break; - } + case ORACLE_RDBMS: + { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: + { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case POSTGRESQL_RDBMS: + { + mergePostgresqlRdbms(other.getPostgresqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -606,33 +675,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 802: { - input.readMessage( - getOracleRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getPostgresqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 102; - break; - } // case 818 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 802: + { + input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getPostgresqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,12 +709,12 @@ public Builder mergeFrom( } // finally return this; } + private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public Builder clearDataObject() { @@ -660,13 +727,19 @@ public Builder clearDataObject() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + oracleRdbmsBuilder_; /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -674,11 +747,14 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override @@ -696,6 +772,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -716,6 +794,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -734,6 +814,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -742,10 +824,13 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 && - dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 100 + && dataObject_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1.OracleRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -761,6 +846,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -784,6 +871,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -794,6 +883,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -812,6 +903,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -819,14 +912,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -838,13 +936,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + mysqlRdbmsBuilder_; /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -852,11 +956,14 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override @@ -874,6 +981,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -894,6 +1003,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -912,6 +1023,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -920,10 +1033,13 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 && - dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 101 + && dataObject_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -939,6 +1055,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -962,6 +1080,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -972,6 +1092,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -990,6 +1112,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -997,14 +1121,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1016,13 +1145,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlRdbmsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlRdbmsBuilder_; /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ @java.lang.Override @@ -1030,11 +1165,14 @@ public boolean hasPostgresqlRdbms() { return dataObjectCase_ == 102; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ @java.lang.Override @@ -1052,6 +1190,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1072,6 +1212,8 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1090,6 +1232,8 @@ public Builder setPostgresqlRdbms( return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1098,10 +1242,13 @@ public Builder setPostgresqlRdbms( */ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 102 && - dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 102 + && dataObject_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -1117,6 +1264,8 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1140,6 +1289,8 @@ public Builder clearPostgresqlRdbms() { return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1150,6 +1301,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1168,6 +1321,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1175,14 +1330,19 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlRdbmsFieldBuilder() { if (postgresqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 102)) { dataObject_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1192,9 +1352,9 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm onChanged(); return postgresqlRdbmsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,41 +1364,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) - private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(); } - public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstance() { + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,9 +1412,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index 94817804806c..d458039aed95 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface DiscoverConnectionProfileResponseOrBuilder extends +public interface DiscoverConnectionProfileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms(); /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
@@ -35,24 +59,32 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
@@ -62,24 +94,32 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return Whether the postgresqlRdbms field is set. */ boolean hasPostgresqlRdbms(); /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_rdbms = 102; + * * @return The postgresqlRdbms. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms(); /** + * + * *
    * Enriched PostgreSQL RDBMS object.
    * 
@@ -88,5 +128,6 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.DataObjectCase + getDataObjectCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java index 4a0b35f221d7..347f37eb47dd 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Represent a user-facing Error.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Error} */ -public final class Error extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Error extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Error) ErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Error() { reason_ = ""; errorUuid_ = ""; @@ -27,50 +45,54 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Error.class, com.google.cloud.datastream.v1.Error.Builder.class); + com.google.cloud.datastream.v1.Error.class, + com.google.cloud.datastream.v1.Error.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ @java.lang.Override @@ -79,29 +101,29 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -110,15 +132,19 @@ public java.lang.String getReason() { } public static final int ERROR_UUID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object errorUuid_ = ""; /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The errorUuid. */ @java.lang.Override @@ -127,30 +153,30 @@ public java.lang.String getErrorUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; } } /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorUuidBytes() { + public com.google.protobuf.ByteString getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -159,14 +185,18 @@ public java.lang.String getErrorUuid() { } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The message. */ @java.lang.Override @@ -175,29 +205,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -208,11 +238,14 @@ public java.lang.String getMessage() { public static final int ERROR_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp errorTime_; /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ @java.lang.Override @@ -220,11 +253,14 @@ public boolean hasErrorTime() { return errorTime_ != null; } /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ @java.lang.Override @@ -232,6 +268,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -244,32 +282,34 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { } public static final int DETAILS_FIELD_NUMBER = 5; + private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } + public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -277,20 +317,21 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -302,6 +343,8 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -309,17 +352,19 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getDetailsOrDefault( + public /* nullable */ java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional information about the error.
    * 
@@ -327,11 +372,11 @@ java.lang.String getDetailsOrDefault( * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -339,6 +384,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } @@ -364,12 +409,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (errorTime_ != null) { output.writeMessage(4, getErrorTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDetails(), - DetailsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -389,18 +430,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (errorTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getErrorTime()); - } - for (java.util.Map.Entry entry - : internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry - details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, details__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorTime()); + } + for (java.util.Map.Entry entry : + internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry details__ = + DetailsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, details__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -410,26 +450,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Error)) { return super.equals(obj); } com.google.cloud.datastream.v1.Error other = (com.google.cloud.datastream.v1.Error) obj; - if (!getReason() - .equals(other.getReason())) return false; - if (!getErrorUuid() - .equals(other.getErrorUuid())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getReason().equals(other.getReason())) return false; + if (!getErrorUuid().equals(other.getErrorUuid())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (hasErrorTime() != other.hasErrorTime()) return false; if (hasErrorTime()) { - if (!getErrorTime() - .equals(other.getErrorTime())) return false; + if (!getErrorTime().equals(other.getErrorTime())) return false; } - if (!internalGetDetails().equals( - other.internalGetDetails())) return false; + if (!internalGetDetails().equals(other.internalGetDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,152 +495,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Error parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Error parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Error parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.datastream.v1.Error parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Error parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Error parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Error parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Error parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represent a user-facing Error.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Error} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Error) com.google.cloud.datastream.v1.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Error.class, com.google.cloud.datastream.v1.Error.Builder.class); + com.google.cloud.datastream.v1.Error.class, + com.google.cloud.datastream.v1.Error.Builder.class); } // Construct using com.google.cloud.datastream.v1.Error.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -623,9 +661,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Error_descriptor; } @java.lang.Override @@ -645,7 +683,9 @@ public com.google.cloud.datastream.v1.Error build() { @java.lang.Override public com.google.cloud.datastream.v1.Error buildPartial() { com.google.cloud.datastream.v1.Error result = new com.google.cloud.datastream.v1.Error(this); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -662,9 +702,7 @@ private void buildPartial0(com.google.cloud.datastream.v1.Error result) { result.message_ = message_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.errorTime_ = errorTimeBuilder_ == null - ? errorTime_ - : errorTimeBuilder_.build(); + result.errorTime_ = errorTimeBuilder_ == null ? errorTime_ : errorTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.details_ = internalGetDetails(); @@ -676,38 +714,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.Error result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Error) { - return mergeFrom((com.google.cloud.datastream.v1.Error)other); + return mergeFrom((com.google.cloud.datastream.v1.Error) other); } else { super.mergeFrom(other); return this; @@ -734,8 +773,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Error other) { if (other.hasErrorTime()) { mergeErrorTime(other.getErrorTime()); } - internalGetMutableDetails().mergeFrom( - other.internalGetDetails()); + internalGetMutableDetails().mergeFrom(other.internalGetDetails()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -763,43 +801,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - errorUuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getErrorTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - details__ = input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDetails().getMutableMap().put( - details__.getKey(), details__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getErrorTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDetails() + .getMutableMap() + .put(details__.getKey(), details__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -809,22 +853,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object reason_ = ""; /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -833,20 +880,21 @@ public java.lang.String getReason() { } } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return The bytes for reason. */ - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -854,28 +902,35 @@ public java.lang.String getReason() { } } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reason_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -885,17 +940,21 @@ public Builder clearReason() { return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000001; @@ -905,19 +964,21 @@ public Builder setReasonBytes( private java.lang.Object errorUuid_ = ""; /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return The errorUuid. */ public java.lang.String getErrorUuid() { java.lang.Object ref = errorUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; @@ -926,21 +987,22 @@ public java.lang.String getErrorUuid() { } } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ - public com.google.protobuf.ByteString - getErrorUuidBytes() { + public com.google.protobuf.ByteString getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -948,30 +1010,37 @@ public java.lang.String getErrorUuid() { } } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @param value The errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorUuid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return This builder for chaining. */ public Builder clearErrorUuid() { @@ -981,18 +1050,22 @@ public Builder clearErrorUuid() { return this; } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorUuid_ = value; bitField0_ |= 0x00000002; @@ -1002,18 +1075,20 @@ public Builder setErrorUuidBytes( private java.lang.Object message_ = ""; /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1022,20 +1097,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -1043,28 +1119,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1074,17 +1157,21 @@ public Builder clearMessage() { return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; @@ -1094,24 +1181,33 @@ public Builder setMessageBytes( private com.google.protobuf.Timestamp errorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + errorTimeBuilder_; /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ public boolean hasErrorTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1122,6 +1218,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1142,14 +1240,15 @@ public Builder setErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; */ - public Builder setErrorTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (errorTimeBuilder_ == null) { errorTime_ = builderForValue.build(); } else { @@ -1160,6 +1259,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1168,9 +1269,9 @@ public Builder setErrorTime( */ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - errorTime_ != null && - errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && errorTime_ != null + && errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getErrorTimeBuilder().mergeFrom(value); } else { errorTime_ = value; @@ -1183,6 +1284,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1200,6 +1303,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1212,6 +1317,8 @@ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { return getErrorTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1222,11 +1329,12 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { if (errorTimeBuilder_ != null) { return errorTimeBuilder_.getMessageOrBuilder(); } else { - return errorTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1234,34 +1342,35 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { * .google.protobuf.Timestamp error_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getErrorTimeFieldBuilder() { if (errorTimeBuilder_ == null) { - errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getErrorTime(), - getParentForChildren(), - isClean()); + errorTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getErrorTime(), getParentForChildren(), isClean()); errorTime_ = null; } return errorTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } + private com.google.protobuf.MapField internalGetMutableDetails() { if (details_ == null) { - details_ = com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); + details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); } if (!details_.isMutable()) { details_ = details_.copy(); @@ -1270,10 +1379,13 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { onChanged(); return details_; } + public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1281,20 +1393,21 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1306,6 +1419,8 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1313,17 +1428,19 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getDetailsOrDefault( + public /* nullable */ java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional information about the error.
      * 
@@ -1331,79 +1448,81 @@ java.lang.String getDetailsOrDefault( * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearDetails() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableDetails().getMutableMap() - .clear(); + internalGetMutableDetails().getMutableMap().clear(); return this; } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder removeDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableDetails().getMutableMap() - .remove(key); + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDetails().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableDetails() { + public java.util.Map getMutableDetails() { bitField0_ |= 0x00000010; return internalGetMutableDetails().getMutableMap(); } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putDetails( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDetails().getMutableMap() - .put(key, value); + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDetails().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putAllDetails( - java.util.Map values) { - internalGetMutableDetails().getMutableMap() - .putAll(values); + public Builder putAllDetails(java.util.Map values) { + internalGetMutableDetails().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1413,12 +1532,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Error) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Error) private static final com.google.cloud.datastream.v1.Error DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Error(); } @@ -1427,27 +1546,27 @@ public static com.google.cloud.datastream.v1.Error getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1462,6 +1581,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java index 0591a20e5540..8fe5bb640c4e 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java @@ -1,93 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ErrorOrBuilder extends +public interface ErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Error) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ java.lang.String getReason(); /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The bytes for reason. */ - com.google.protobuf.ByteString - getReasonBytes(); + com.google.protobuf.ByteString getReasonBytes(); /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The errorUuid. */ java.lang.String getErrorUuid(); /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ - com.google.protobuf.ByteString - getErrorUuidBytes(); + com.google.protobuf.ByteString getErrorUuidBytes(); /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ boolean hasErrorTime(); /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ com.google.protobuf.Timestamp getErrorTime(); /** + * + * *
    * The time when the error occurred.
    * 
@@ -97,6 +136,8 @@ public interface ErrorOrBuilder extends com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); /** + * + * *
    * Additional information about the error.
    * 
@@ -105,30 +146,31 @@ public interface ErrorOrBuilder extends */ int getDetailsCount(); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - boolean containsDetails( - java.lang.String key); - /** - * Use {@link #getDetailsMap()} instead. - */ + boolean containsDetails(java.lang.String key); + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getDetails(); + java.util.Map getDetails(); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.util.Map - getDetailsMap(); + java.util.Map getDetailsMap(); /** + * + * *
    * Additional information about the error.
    * 
@@ -136,17 +178,18 @@ boolean containsDetails( * map<string, string> details = 5; */ /* nullable */ -java.lang.String getDetailsOrDefault( + java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.lang.String getDetailsOrThrow( - java.lang.String key); + java.lang.String getDetailsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java index f355bc46450d..d1c5dc804ec6 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for 'FetchStaticIps' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsRequest} */ -public final class FetchStaticIpsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsRequest) FetchStaticIpsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchStaticIpsRequest.newBuilder() to construct. private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchStaticIpsRequest() { name_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ private FetchStaticIpsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchStaticIpsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, + com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The resource name for the location for which static IPs should be
    * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The resource name for the location for which static IPs should be
    * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,11 +128,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,15 +144,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,30 +165,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -163,6 +197,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,8 +232,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -212,19 +245,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.FetchStaticIpsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.FetchStaticIpsRequest other = (com.google.cloud.datastream.v1.FetchStaticIpsRequest) obj; + com.google.cloud.datastream.v1.FetchStaticIpsRequest other = + (com.google.cloud.datastream.v1.FetchStaticIpsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,129 +279,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.FetchStaticIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for 'FetchStaticIps' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.FetchStaticIpsRequest) com.google.cloud.datastream.v1.FetchStaticIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, + com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.FetchStaticIpsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; } @java.lang.Override @@ -403,8 +440,11 @@ public com.google.cloud.datastream.v1.FetchStaticIpsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.FetchStaticIpsRequest buildPartial() { - com.google.cloud.datastream.v1.FetchStaticIpsRequest result = new com.google.cloud.datastream.v1.FetchStaticIpsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.FetchStaticIpsRequest result = + new com.google.cloud.datastream.v1.FetchStaticIpsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +466,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.FetchStaticIpsRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.FetchStaticIpsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +506,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsRequest other) { - if (other == com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +547,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,23 +581,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name for the location for which static IPs should be
      * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -560,21 +611,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the location for which static IPs should be
      * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -582,30 +636,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the location for which static IPs should be
      * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the location for which static IPs should be
      * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -615,18 +680,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The resource name for the location for which static IPs should be
      * returned. Must be in the format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -634,13 +705,16 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -648,27 +722,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,19 +760,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -701,21 +783,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -723,30 +806,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -756,27 +846,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +880,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.FetchStaticIpsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.FetchStaticIpsRequest) private static final com.google.cloud.datastream.v1.FetchStaticIpsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.FetchStaticIpsRequest(); } @@ -800,27 +894,27 @@ public static com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +929,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java index 6e7c2f088c57..be3eb2fd93b5 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface FetchStaticIpsRequestOrBuilder extends +public interface FetchStaticIpsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource name for the location for which static IPs should be
    * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The resource name for the location for which static IPs should be
    * returned. Must be in the format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java index a1016c05bc5a..57e47cd8cd4f 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response message for a 'FetchStaticIps' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsResponse} */ -public final class FetchStaticIpsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsResponse) FetchStaticIpsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchStaticIpsResponse.newBuilder() to construct. private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchStaticIpsResponse() { staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -26,61 +44,71 @@ private FetchStaticIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchStaticIpsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, + com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); } public static final int STATIC_IPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList staticIps_; /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList - getStaticIpsList() { + public com.google.protobuf.ProtocolStringList getStaticIpsList() { return staticIps_; } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -88,29 +116,35 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString - getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -119,30 +153,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -151,6 +185,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < staticIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); } @@ -198,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.FetchStaticIpsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.FetchStaticIpsResponse other = (com.google.cloud.datastream.v1.FetchStaticIpsResponse) obj; + com.google.cloud.datastream.v1.FetchStaticIpsResponse other = + (com.google.cloud.datastream.v1.FetchStaticIpsResponse) obj; - if (!getStaticIpsList() - .equals(other.getStaticIpsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,129 +265,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.FetchStaticIpsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.FetchStaticIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for a 'FetchStaticIps' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.FetchStaticIpsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.FetchStaticIpsResponse) com.google.cloud.datastream.v1.FetchStaticIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, + com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.FetchStaticIpsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; } @java.lang.Override @@ -387,14 +427,18 @@ public com.google.cloud.datastream.v1.FetchStaticIpsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.FetchStaticIpsResponse buildPartial() { - com.google.cloud.datastream.v1.FetchStaticIpsResponse result = new com.google.cloud.datastream.v1.FetchStaticIpsResponse(this); + com.google.cloud.datastream.v1.FetchStaticIpsResponse result = + new com.google.cloud.datastream.v1.FetchStaticIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.FetchStaticIpsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.FetchStaticIpsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -413,38 +457,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.FetchStaticIpsResponse public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.FetchStaticIpsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.FetchStaticIpsResponse) other); } else { super.mergeFrom(other); return this; @@ -452,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsResponse other) { - if (other == com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance()) + return this; if (!other.staticIps_.isEmpty()) { if (staticIps_.isEmpty()) { staticIps_ = other.staticIps_; @@ -494,23 +540,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStaticIpsIsMutable(); - staticIps_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpsIsMutable(); + staticIps_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,44 +569,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList staticIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStaticIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { staticIps_ = new com.google.protobuf.LazyStringArrayList(staticIps_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList - getStaticIpsList() { + public com.google.protobuf.ProtocolStringList getStaticIpsList() { return staticIps_.getUnmodifiableView(); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -565,76 +625,90 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString - getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index to set the value at. * @param value The staticIps to set. * @return This builder for chaining. */ - public Builder setStaticIps( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStaticIps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStaticIpsIsMutable(); staticIps_.set(index, value); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param value The staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIps( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStaticIps(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param values The staticIps to add. * @return This builder for chaining. */ - public Builder addAllStaticIps( - java.lang.Iterable values) { + public Builder addAllStaticIps(java.lang.Iterable values) { ensureStaticIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, staticIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIps_); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return This builder for chaining. */ public Builder clearStaticIps() { @@ -644,17 +718,21 @@ public Builder clearStaticIps() { return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param value The bytes of the staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); @@ -664,19 +742,21 @@ public Builder addStaticIpsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -685,21 +765,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -707,30 +788,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -740,27 +828,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.FetchStaticIpsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.FetchStaticIpsResponse) private static final com.google.cloud.datastream.v1.FetchStaticIpsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.FetchStaticIpsResponse(); } @@ -784,27 +876,27 @@ public static com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,6 +911,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java index 128d3d6325da..fc59ab73d8c9 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java @@ -1,72 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface FetchStaticIpsResponseOrBuilder extends +public interface FetchStaticIpsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - java.util.List - getStaticIpsList(); + java.util.List getStaticIpsList(); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ int getStaticIpsCount(); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ java.lang.String getStaticIps(int index); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - com.google.protobuf.ByteString - getStaticIpsBytes(int index); + com.google.protobuf.ByteString getStaticIpsBytes(int index); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java index ff14f783b1d7..f5913bcc0049 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Forward SSH Tunnel connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ForwardSshTunnelConnectivity} */ -public final class ForwardSshTunnelConnectivity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) ForwardSshTunnelConnectivityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ForwardSshTunnelConnectivity.newBuilder() to construct. private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ForwardSshTunnelConnectivity() { hostname_ = ""; username_ = ""; @@ -26,38 +44,42 @@ private ForwardSshTunnelConnectivity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ForwardSshTunnelConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; + public enum AuthenticationMethodCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PASSWORD(100), PRIVATE_KEY(101), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; + private AuthenticationMethodCase(int value) { this.value = value; } @@ -73,32 +95,39 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 100: return PASSWORD; - case 101: return PRIVATE_KEY; - case 0: return AUTHENTICATIONMETHOD_NOT_SET; - default: return null; + case 100: + return PASSWORD; + case 101: + return PRIVATE_KEY; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -107,29 +136,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -138,14 +167,18 @@ public java.lang.String getHostname() { } public static final int USERNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -154,29 +187,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -187,11 +220,14 @@ public java.lang.String getUsername() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -201,22 +237,28 @@ public int getPort() { public static final int PASSWORD_FIELD_NUMBER = 100; /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ public java.lang.String getPassword() { @@ -227,8 +269,7 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -237,23 +278,24 @@ public java.lang.String getPassword() { } } /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -265,22 +307,28 @@ public java.lang.String getPassword() { public static final int PRIVATE_KEY_FIELD_NUMBER = 101; /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ public java.lang.String getPrivateKey() { @@ -291,8 +339,7 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -301,23 +348,24 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -328,6 +376,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -372,8 +420,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); } if (authenticationMethodCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); @@ -389,28 +436,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other = (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) obj; + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other = + (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) obj; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (getPort() - != other.getPort()) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (getPort() != other.getPort()) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 100: - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getPassword().equals(other.getPassword())) return false; break; case 101: - if (!getPrivateKey() - .equals(other.getPrivateKey())) return false; + if (!getPrivateKey().equals(other.getPrivateKey())) return false; break; case 0: default: @@ -450,129 +493,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Forward SSH Tunnel connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ForwardSshTunnelConnectivity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,9 +636,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override @@ -607,8 +657,11 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity buildPartial() { - com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = + new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -627,7 +680,8 @@ private void buildPartial0(com.google.cloud.datastream.v1.ForwardSshTunnelConnec } } - private void buildPartialOneofs(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; } @@ -636,38 +690,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.ForwardSshTunnelC public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity)other); + return mergeFrom((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) other); } else { super.mergeFrom(other); return this; @@ -675,7 +730,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other) { - if (other == com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) + return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -690,21 +746,24 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ForwardSshTunnelConnecti setPort(other.getPort()); } switch (other.getAuthenticationMethodCase()) { - case PASSWORD: { - authenticationMethodCase_ = 100; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case PRIVATE_KEY: { - authenticationMethodCase_ = 101; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: { - break; - } + case PASSWORD: + { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: + { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -732,39 +791,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - port_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } // case 802 - case 810: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -774,12 +839,12 @@ public Builder mergeFrom( } // finally return this; } + private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -793,18 +858,20 @@ public Builder clearAuthenticationMethod() { private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -813,20 +880,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -834,28 +902,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -865,17 +940,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -885,18 +964,20 @@ public Builder setHostnameBytes( private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -905,20 +986,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -926,28 +1008,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -957,17 +1046,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000002; @@ -975,13 +1068,16 @@ public Builder setUsernameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -989,27 +1085,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -1020,11 +1122,14 @@ public Builder clearPort() { } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ @java.lang.Override @@ -1032,11 +1137,14 @@ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ @java.lang.Override @@ -1046,8 +1154,7 @@ public java.lang.String getPassword() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -1058,24 +1165,25 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -1085,28 +1193,35 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1118,17 +1233,21 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; @@ -1137,11 +1256,14 @@ public Builder setPasswordBytes( } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ @java.lang.Override @@ -1149,11 +1271,14 @@ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ @java.lang.Override @@ -1163,8 +1288,7 @@ public java.lang.String getPrivateKey() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -1175,24 +1299,25 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -1202,28 +1327,35 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -1235,26 +1367,30 @@ public Builder clearPrivateKey() { return this; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,12 +1400,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) private static final com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(); } @@ -1278,27 +1414,27 @@ public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ForwardSshTunnelConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardSshTunnelConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,6 +1449,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java index e636a45654c6..6febb57443c6 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java @@ -1,119 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ForwardSshTunnelConnectivityOrBuilder extends +public interface ForwardSshTunnelConnectivityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ int getPort(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ boolean hasPassword(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ boolean hasPrivateKey(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ java.lang.String getPrivateKey(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString - getPrivateKeyBytes(); + com.google.protobuf.ByteString getPrivateKeyBytes(); - public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase(); + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.AuthenticationMethodCase + getAuthenticationMethodCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java index c42e2175c25e..34cf322345cd 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Google Cloud Storage destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsDestinationConfig} */ -public final class GcsDestinationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsDestinationConfig) GcsDestinationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestinationConfig.newBuilder() to construct. private GcsDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestinationConfig() { path_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsDestinationConfig.class, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.GcsDestinationConfig.class, + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); } private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; + public enum FileFormatCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_FILE_FORMAT(100), JSON_FILE_FORMAT(101), FILEFORMAT_NOT_SET(0); private final int value; + private FileFormatCase(int value) { this.value = value; } @@ -72,32 +94,39 @@ public static FileFormatCase valueOf(int value) { public static FileFormatCase forNumber(int value) { switch (value) { - case 100: return AVRO_FILE_FORMAT; - case 101: return JSON_FILE_FORMAT; - case 0: return FILEFORMAT_NOT_SET; - default: return null; + case 100: + return AVRO_FILE_FORMAT; + case 101: + return JSON_FILE_FORMAT; + case 0: + return FILEFORMAT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FileFormatCase - getFileFormatCase() { - return FileFormatCase.forNumber( - fileFormatCase_); + public FileFormatCase getFileFormatCase() { + return FileFormatCase.forNumber(fileFormatCase_); } public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The path. */ @java.lang.Override @@ -106,29 +135,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -139,11 +168,14 @@ public java.lang.String getPath() { public static final int FILE_ROTATION_MB_FIELD_NUMBER = 2; private int fileRotationMb_ = 0; /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 2; + * * @return The fileRotationMb. */ @java.lang.Override @@ -154,6 +186,8 @@ public int getFileRotationMb() { public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER = 3; private com.google.protobuf.Duration fileRotationInterval_; /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -161,6 +195,7 @@ public int getFileRotationMb() {
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -168,6 +203,8 @@ public boolean hasFileRotationInterval() { return fileRotationInterval_ != null; } /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -175,13 +212,18 @@ public boolean hasFileRotationInterval() {
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return The fileRotationInterval. */ @java.lang.Override public com.google.protobuf.Duration getFileRotationInterval() { - return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; + return fileRotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fileRotationInterval_; } /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -192,16 +234,21 @@ public com.google.protobuf.Duration getFileRotationInterval() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() {
-    return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
+    return fileRotationInterval_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : fileRotationInterval_;
   }
 
   public static final int AVRO_FILE_FORMAT_FIELD_NUMBER = 100;
   /**
+   *
+   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -209,21 +256,26 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** + * + * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } /** + * + * *
    * AVRO file format configuration.
    * 
@@ -233,18 +285,21 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } public static final int JSON_FILE_FORMAT_FIELD_NUMBER = 101; /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -252,21 +307,26 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } /** + * + * *
    * JSON file format configuration.
    * 
@@ -276,12 +336,13 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +354,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } @@ -323,20 +383,21 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } if (fileRotationMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, fileRotationMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fileRotationMb_); } if (fileRotationInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFileRotationInterval()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFileRotationInterval()); } if (fileFormatCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); } if (fileFormatCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,31 +407,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GcsDestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GcsDestinationConfig other = (com.google.cloud.datastream.v1.GcsDestinationConfig) obj; + com.google.cloud.datastream.v1.GcsDestinationConfig other = + (com.google.cloud.datastream.v1.GcsDestinationConfig) obj; - if (!getPath() - .equals(other.getPath())) return false; - if (getFileRotationMb() - != other.getFileRotationMb()) return false; + if (!getPath().equals(other.getPath())) return false; + if (getFileRotationMb() != other.getFileRotationMb()) return false; if (hasFileRotationInterval() != other.hasFileRotationInterval()) return false; if (hasFileRotationInterval()) { - if (!getFileRotationInterval() - .equals(other.getFileRotationInterval())) return false; + if (!getFileRotationInterval().equals(other.getFileRotationInterval())) return false; } if (!getFileFormatCase().equals(other.getFileFormatCase())) return false; switch (fileFormatCase_) { case 100: - if (!getAvroFileFormat() - .equals(other.getAvroFileFormat())) return false; + if (!getAvroFileFormat().equals(other.getAvroFileFormat())) return false; break; case 101: - if (!getJsonFileFormat() - .equals(other.getJsonFileFormat())) return false; + if (!getJsonFileFormat().equals(other.getJsonFileFormat())) return false; break; case 0: default: @@ -412,129 +469,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.GcsDestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Google Cloud Storage destination configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsDestinationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GcsDestinationConfig) com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsDestinationConfig.class, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1.GcsDestinationConfig.class, + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -558,9 +621,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; } @java.lang.Override @@ -579,8 +642,11 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.GcsDestinationConfig buildPartial() { - com.google.cloud.datastream.v1.GcsDestinationConfig result = new com.google.cloud.datastream.v1.GcsDestinationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GcsDestinationConfig result = + new com.google.cloud.datastream.v1.GcsDestinationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -595,21 +661,20 @@ private void buildPartial0(com.google.cloud.datastream.v1.GcsDestinationConfig r result.fileRotationMb_ = fileRotationMb_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.fileRotationInterval_ = fileRotationIntervalBuilder_ == null - ? fileRotationInterval_ - : fileRotationIntervalBuilder_.build(); + result.fileRotationInterval_ = + fileRotationIntervalBuilder_ == null + ? fileRotationInterval_ + : fileRotationIntervalBuilder_.build(); } } private void buildPartialOneofs(com.google.cloud.datastream.v1.GcsDestinationConfig result) { result.fileFormatCase_ = fileFormatCase_; result.fileFormat_ = this.fileFormat_; - if (fileFormatCase_ == 100 && - avroFileFormatBuilder_ != null) { + if (fileFormatCase_ == 100 && avroFileFormatBuilder_ != null) { result.fileFormat_ = avroFileFormatBuilder_.build(); } - if (fileFormatCase_ == 101 && - jsonFileFormatBuilder_ != null) { + if (fileFormatCase_ == 101 && jsonFileFormatBuilder_ != null) { result.fileFormat_ = jsonFileFormatBuilder_.build(); } } @@ -618,38 +683,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.GcsDestinationCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GcsDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1.GcsDestinationConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.GcsDestinationConfig) other); } else { super.mergeFrom(other); return this; @@ -657,7 +723,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GcsDestinationConfig other) { - if (other == com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) + return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -670,17 +737,20 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.GcsDestinationConfig oth mergeFileRotationInterval(other.getFileRotationInterval()); } switch (other.getFileFormatCase()) { - case AVRO_FILE_FORMAT: { - mergeAvroFileFormat(other.getAvroFileFormat()); - break; - } - case JSON_FILE_FORMAT: { - mergeJsonFileFormat(other.getJsonFileFormat()); - break; - } - case FILEFORMAT_NOT_SET: { - break; - } + case AVRO_FILE_FORMAT: + { + mergeAvroFileFormat(other.getAvroFileFormat()); + break; + } + case JSON_FILE_FORMAT: + { + mergeJsonFileFormat(other.getJsonFileFormat()); + break; + } + case FILEFORMAT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -708,43 +778,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - fileRotationMb_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getFileRotationIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 802: { - input.readMessage( - getAvroFileFormatFieldBuilder().getBuilder(), - extensionRegistry); - fileFormatCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getJsonFileFormatFieldBuilder().getBuilder(), - extensionRegistry); - fileFormatCase_ = 101; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + fileRotationMb_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getFileRotationIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 802: + { + input.readMessage(getAvroFileFormatFieldBuilder().getBuilder(), extensionRegistry); + fileFormatCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getJsonFileFormatFieldBuilder().getBuilder(), extensionRegistry); + fileFormatCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -754,12 +825,12 @@ public Builder mergeFrom( } // finally return this; } + private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - public FileFormatCase - getFileFormatCase() { - return FileFormatCase.forNumber( - fileFormatCase_); + + public FileFormatCase getFileFormatCase() { + return FileFormatCase.forNumber(fileFormatCase_); } public Builder clearFileFormat() { @@ -773,18 +844,20 @@ public Builder clearFileFormat() { private java.lang.Object path_ = ""; /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -793,20 +866,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -814,28 +888,35 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -845,17 +926,21 @@ public Builder clearPath() { return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -863,13 +948,16 @@ public Builder setPathBytes( return this; } - private int fileRotationMb_ ; + private int fileRotationMb_; /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; + * * @return The fileRotationMb. */ @java.lang.Override @@ -877,27 +965,33 @@ public int getFileRotationMb() { return fileRotationMb_; } /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; + * * @param value The fileRotationMb to set. * @return This builder for chaining. */ public Builder setFileRotationMb(int value) { - + fileRotationMb_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 2; + * * @return This builder for chaining. */ public Builder clearFileRotationMb() { @@ -909,8 +1003,13 @@ public Builder clearFileRotationMb() { private com.google.protobuf.Duration fileRotationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileRotationIntervalBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + fileRotationIntervalBuilder_; /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -918,12 +1017,15 @@ public Builder clearFileRotationMb() {
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -931,16 +1033,21 @@ public boolean hasFileRotationInterval() {
      * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return The fileRotationInterval. */ public com.google.protobuf.Duration getFileRotationInterval() { if (fileRotationIntervalBuilder_ == null) { - return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; + return fileRotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fileRotationInterval_; } else { return fileRotationIntervalBuilder_.getMessage(); } } /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -963,6 +1070,8 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -971,8 +1080,7 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration file_rotation_interval = 3;
      */
-    public Builder setFileRotationInterval(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue) {
       if (fileRotationIntervalBuilder_ == null) {
         fileRotationInterval_ = builderForValue.build();
       } else {
@@ -983,6 +1091,8 @@ public Builder setFileRotationInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -993,9 +1103,9 @@ public Builder setFileRotationInterval(
      */
     public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       if (fileRotationIntervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000004) != 0) &&
-          fileRotationInterval_ != null &&
-          fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000004) != 0)
+            && fileRotationInterval_ != null
+            && fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getFileRotationIntervalBuilder().mergeFrom(value);
         } else {
           fileRotationInterval_ = value;
@@ -1008,6 +1118,8 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -1027,6 +1139,8 @@ public Builder clearFileRotationInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -1041,6 +1155,8 @@ public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() {
       return getFileRotationIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -1053,11 +1169,14 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
       if (fileRotationIntervalBuilder_ != null) {
         return fileRotationIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return fileRotationInterval_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
+        return fileRotationInterval_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : fileRotationInterval_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created. Values within the range of 15-60 seconds
@@ -1067,27 +1186,36 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
      * .google.protobuf.Duration file_rotation_interval = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getFileRotationIntervalFieldBuilder() {
       if (fileRotationIntervalBuilder_ == null) {
-        fileRotationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getFileRotationInterval(),
-                getParentForChildren(),
-                isClean());
+        fileRotationIntervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getFileRotationInterval(), getParentForChildren(), isClean());
         fileRotationInterval_ = null;
       }
       return fileRotationIntervalBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> avroFileFormatBuilder_;
+            com.google.cloud.datastream.v1.AvroFileFormat,
+            com.google.cloud.datastream.v1.AvroFileFormat.Builder,
+            com.google.cloud.datastream.v1.AvroFileFormatOrBuilder>
+        avroFileFormatBuilder_;
     /**
+     *
+     *
      * 
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -1095,11 +1223,14 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** + * + * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ @java.lang.Override @@ -1117,6 +1248,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1137,6 +1270,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat v return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1155,6 +1290,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1163,10 +1300,13 @@ public Builder setAvroFileFormat( */ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat value) { if (avroFileFormatBuilder_ == null) { - if (fileFormatCase_ == 100 && - fileFormat_ != com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) { - fileFormat_ = com.google.cloud.datastream.v1.AvroFileFormat.newBuilder((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_) - .mergeFrom(value).buildPartial(); + if (fileFormatCase_ == 100 + && fileFormat_ != com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) { + fileFormat_ = + com.google.cloud.datastream.v1.AvroFileFormat.newBuilder( + (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_) + .mergeFrom(value) + .buildPartial(); } else { fileFormat_ = value; } @@ -1182,6 +1322,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1205,6 +1347,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1215,6 +1359,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat.Builder getAvroFileFormatBu return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1233,6 +1379,8 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1240,14 +1388,19 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> + com.google.cloud.datastream.v1.AvroFileFormat, + com.google.cloud.datastream.v1.AvroFileFormat.Builder, + com.google.cloud.datastream.v1.AvroFileFormatOrBuilder> getAvroFileFormatFieldBuilder() { if (avroFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 100)) { fileFormat_ = com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); } - avroFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.AvroFileFormat, com.google.cloud.datastream.v1.AvroFileFormat.Builder, com.google.cloud.datastream.v1.AvroFileFormatOrBuilder>( + avroFileFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.AvroFileFormat, + com.google.cloud.datastream.v1.AvroFileFormat.Builder, + com.google.cloud.datastream.v1.AvroFileFormatOrBuilder>( (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1259,13 +1412,19 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> jsonFileFormatBuilder_; + com.google.cloud.datastream.v1.JsonFileFormat, + com.google.cloud.datastream.v1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> + jsonFileFormatBuilder_; /** + * + * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -1273,11 +1432,14 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** + * + * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ @java.lang.Override @@ -1295,6 +1457,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1315,6 +1479,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat v return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1333,6 +1499,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1341,10 +1509,13 @@ public Builder setJsonFileFormat( */ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat value) { if (jsonFileFormatBuilder_ == null) { - if (fileFormatCase_ == 101 && - fileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance()) { - fileFormat_ = com.google.cloud.datastream.v1.JsonFileFormat.newBuilder((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_) - .mergeFrom(value).buildPartial(); + if (fileFormatCase_ == 101 + && fileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance()) { + fileFormat_ = + com.google.cloud.datastream.v1.JsonFileFormat.newBuilder( + (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_) + .mergeFrom(value) + .buildPartial(); } else { fileFormat_ = value; } @@ -1360,6 +1531,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1383,6 +1556,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1393,6 +1568,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat.Builder getJsonFileFormatBu return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1411,6 +1588,8 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1418,14 +1597,19 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> + com.google.cloud.datastream.v1.JsonFileFormat, + com.google.cloud.datastream.v1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1.JsonFileFormatOrBuilder> getJsonFileFormatFieldBuilder() { if (jsonFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 101)) { fileFormat_ = com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); } - jsonFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.JsonFileFormat, com.google.cloud.datastream.v1.JsonFileFormat.Builder, com.google.cloud.datastream.v1.JsonFileFormatOrBuilder>( + jsonFileFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.JsonFileFormat, + com.google.cloud.datastream.v1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1.JsonFileFormatOrBuilder>( (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1435,9 +1619,9 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO onChanged(); return jsonFileFormatBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1447,12 +1631,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GcsDestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GcsDestinationConfig) private static final com.google.cloud.datastream.v1.GcsDestinationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GcsDestinationConfig(); } @@ -1461,27 +1645,27 @@ public static com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1496,6 +1680,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java similarity index 80% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java index 830bc946731a..729161dc735c 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java @@ -1,43 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface GcsDestinationConfigOrBuilder extends +public interface GcsDestinationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GcsDestinationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 2; + * * @return The fileRotationMb. */ int getFileRotationMb(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -45,10 +71,13 @@ public interface GcsDestinationConfigOrBuilder extends
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return Whether the fileRotationInterval field is set. */ boolean hasFileRotationInterval(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -56,10 +85,13 @@ public interface GcsDestinationConfigOrBuilder extends
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return The fileRotationInterval. */ com.google.protobuf.Duration getFileRotationInterval(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created. Values within the range of 15-60 seconds
@@ -71,24 +103,32 @@ public interface GcsDestinationConfigOrBuilder extends
   com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ boolean hasAvroFileFormat(); /** + * + * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat(); /** + * + * *
    * AVRO file format configuration.
    * 
@@ -98,24 +138,32 @@ public interface GcsDestinationConfigOrBuilder extends com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder(); /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ boolean hasJsonFileFormat(); /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat(); /** + * + * *
    * JSON file format configuration.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java index 48b927a5b6df..3f8f9312a74d 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Cloud Storage bucket profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} */ -public final class GcsProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsProfile) GcsProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsProfile.newBuilder() to construct. private GcsProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsProfile() { bucket_ = ""; rootPath_ = ""; @@ -26,38 +44,43 @@ private GcsProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsProfile.class, com.google.cloud.datastream.v1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1.GcsProfile.class, + com.google.cloud.datastream.v1.GcsProfile.Builder.class); } public static final int BUCKET_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucket_ = ""; /** + * + * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getBucket() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; } } /** + * + * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -97,14 +120,18 @@ public java.lang.String getBucket() { } public static final int ROOT_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rootPath_ = ""; /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ @java.lang.Override @@ -113,29 +140,29 @@ public java.lang.String getRootPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; } } /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootPathBytes() { + public com.google.protobuf.ByteString getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPath_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getRootPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucket_); } @@ -186,17 +213,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GcsProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GcsProfile other = (com.google.cloud.datastream.v1.GcsProfile) obj; + com.google.cloud.datastream.v1.GcsProfile other = + (com.google.cloud.datastream.v1.GcsProfile) obj; - if (!getBucket() - .equals(other.getBucket())) return false; - if (!getRootPath() - .equals(other.getRootPath())) return false; + if (!getBucket().equals(other.getBucket())) return false; + if (!getRootPath().equals(other.getRootPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -217,130 +243,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GcsProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GcsProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.GcsProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Cloud Storage bucket profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GcsProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GcsProfile) com.google.cloud.datastream.v1.GcsProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GcsProfile.class, com.google.cloud.datastream.v1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1.GcsProfile.class, + com.google.cloud.datastream.v1.GcsProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.GcsProfile.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; } @java.lang.Override @@ -372,8 +404,11 @@ public com.google.cloud.datastream.v1.GcsProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.GcsProfile buildPartial() { - com.google.cloud.datastream.v1.GcsProfile result = new com.google.cloud.datastream.v1.GcsProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GcsProfile result = + new com.google.cloud.datastream.v1.GcsProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -392,38 +427,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GcsProfile result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GcsProfile) { - return mergeFrom((com.google.cloud.datastream.v1.GcsProfile)other); + return mergeFrom((com.google.cloud.datastream.v1.GcsProfile) other); } else { super.mergeFrom(other); return this; @@ -468,22 +504,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bucket_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - rootPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bucket_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rootPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -493,22 +532,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object bucket_ = ""; /** + * + * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ public java.lang.String getBucket() { java.lang.Object ref = bucket_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucket_ = s; return s; @@ -517,20 +559,21 @@ public java.lang.String getBucket() { } } /** + * + * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ - public com.google.protobuf.ByteString - getBucketBytes() { + public com.google.protobuf.ByteString getBucketBytes() { java.lang.Object ref = bucket_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucket_ = b; return b; } else { @@ -538,28 +581,35 @@ public java.lang.String getBucket() { } } /** + * + * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bucket to set. * @return This builder for chaining. */ - public Builder setBucket( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucket(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bucket_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucket() { @@ -569,17 +619,21 @@ public Builder clearBucket() { return this; } /** + * + * *
      * Required. The Cloud Storage bucket name.
      * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for bucket to set. * @return This builder for chaining. */ - public Builder setBucketBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bucket_ = value; bitField0_ |= 0x00000001; @@ -589,18 +643,20 @@ public Builder setBucketBytes( private java.lang.Object rootPath_ = ""; /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return The rootPath. */ public java.lang.String getRootPath() { java.lang.Object ref = rootPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; @@ -609,20 +665,21 @@ public java.lang.String getRootPath() { } } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ - public com.google.protobuf.ByteString - getRootPathBytes() { + public com.google.protobuf.ByteString getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPath_ = b; return b; } else { @@ -630,28 +687,35 @@ public java.lang.String getRootPath() { } } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @param value The rootPath to set. * @return This builder for chaining. */ - public Builder setRootPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRootPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return This builder for chaining. */ public Builder clearRootPath() { @@ -661,26 +725,30 @@ public Builder clearRootPath() { return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @param value The bytes for rootPath to set. * @return This builder for chaining. */ - public Builder setRootPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRootPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -690,12 +758,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GcsProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GcsProfile) private static final com.google.cloud.datastream.v1.GcsProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GcsProfile(); } @@ -704,27 +772,27 @@ public static com.google.cloud.datastream.v1.GcsProfile getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -739,6 +807,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java similarity index 57% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java index 6d170ffc29a0..08fbfc7b4dc2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface GcsProfileOrBuilder extends +public interface GcsProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GcsProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ java.lang.String getBucket(); /** + * + * *
    * Required. The Cloud Storage bucket name.
    * 
* * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucket. */ - com.google.protobuf.ByteString - getBucketBytes(); + com.google.protobuf.ByteString getBucketBytes(); /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ java.lang.String getRootPath(); /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ - com.google.protobuf.ByteString - getRootPathBytes(); + com.google.protobuf.ByteString getRootPathBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java similarity index 61% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java index 0a2b97524365..25379e1979b1 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for getting a connection profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetConnectionProfileRequest} */ -public final class GetConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, + com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the connection profile resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the connection profile resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetConnectionProfileRequest other = (com.google.cloud.datastream.v1.GetConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.GetConnectionProfileRequest other = + (com.google.cloud.datastream.v1.GetConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GetConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.GetConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a connection profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetConnectionProfileRequest) com.google.cloud.datastream.v1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, + com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetConnectionProfileRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.datastream.v1.GetConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.GetConnectionProfileRequest result = new com.google.cloud.datastream.v1.GetConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GetConnectionProfileRequest result = + new com.google.cloud.datastream.v1.GetConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetConnectionProfileRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.GetConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetConnectionProfileRequest) private static final com.google.cloud.datastream.v1.GetConnectionProfileRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetConnectionProfileRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 000000000000..56b92a1f4eae --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetConnectionProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java similarity index 61% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java index 7899c8df11e0..4ee17b193686 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request to get a private connection configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetPrivateConnectionRequest} */ -public final class GetPrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetPrivateConnectionRequest) GetPrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPrivateConnectionRequest.newBuilder() to construct. private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPrivateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetPrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetPrivateConnectionRequest other = (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) obj; + com.google.cloud.datastream.v1.GetPrivateConnectionRequest other = + (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GetPrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request to get a private connection configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetPrivateConnectionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetPrivateConnectionRequest) com.google.cloud.datastream.v1.GetPrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetPrivateConnectionRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.datastream.v1.GetPrivateConnectionRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetPrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = + new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetPrivateConnectionRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetPrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetPrivateConnectionRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.GetPrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetPrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetPrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetPrivateConnectionRequest) private static final com.google.cloud.datastream.v1.GetPrivateConnectionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..713b409f0b2b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetPrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java similarity index 62% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java index d75b915ead3d..6a41658456aa 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Route get request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetRouteRequest} */ -public final class GetRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetRouteRequest) GetRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRouteRequest.newBuilder() to construct. private GetRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRouteRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetRouteRequest.class, com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1.GetRouteRequest.class, + com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Route resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Route resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetRouteRequest other = (com.google.cloud.datastream.v1.GetRouteRequest) obj; + com.google.cloud.datastream.v1.GetRouteRequest other = + (com.google.cloud.datastream.v1.GetRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.GetRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Route get request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetRouteRequest) com.google.cloud.datastream.v1.GetRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetRouteRequest.class, com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1.GetRouteRequest.class, + com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetRouteRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; } @java.lang.Override @@ -313,8 +346,11 @@ public com.google.cloud.datastream.v1.GetRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetRouteRequest buildPartial() { - com.google.cloud.datastream.v1.GetRouteRequest result = new com.google.cloud.datastream.v1.GetRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GetRouteRequest result = + new com.google.cloud.datastream.v1.GetRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +366,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetRouteRequest result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.GetRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -401,17 +438,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +460,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +489,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +513,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +555,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +590,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetRouteRequest) private static final com.google.cloud.datastream.v1.GetRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetRouteRequest(); } @@ -540,27 +604,27 @@ public static com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +639,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java new file mode 100644 index 000000000000..f63f5593a143 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java similarity index 61% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java index 6c070aa5a767..5a64d63246df 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for fetching a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamObjectRequest} */ -public final class GetStreamObjectRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetStreamObjectRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamObjectRequest) GetStreamObjectRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetStreamObjectRequest.newBuilder() to construct. private GetStreamObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetStreamObjectRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetStreamObjectRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamObjectRequest.class, com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamObjectRequest.class, + com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the stream object resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the stream object resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetStreamObjectRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetStreamObjectRequest other = (com.google.cloud.datastream.v1.GetStreamObjectRequest) obj; + com.google.cloud.datastream.v1.GetStreamObjectRequest other = + (com.google.cloud.datastream.v1.GetStreamObjectRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.GetStreamObjectRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.GetStreamObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for fetching a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamObjectRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetStreamObjectRequest) com.google.cloud.datastream.v1.GetStreamObjectRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamObjectRequest.class, com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamObjectRequest.class, + com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetStreamObjectRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +326,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; } @java.lang.Override @@ -313,8 +347,11 @@ public com.google.cloud.datastream.v1.GetStreamObjectRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetStreamObjectRequest buildPartial() { - com.google.cloud.datastream.v1.GetStreamObjectRequest result = new com.google.cloud.datastream.v1.GetStreamObjectRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GetStreamObjectRequest result = + new com.google.cloud.datastream.v1.GetStreamObjectRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +367,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetStreamObjectRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetStreamObjectRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetStreamObjectRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.GetStreamObjectRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamObjectRequest other) { - if (other == com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +462,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the stream object resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +491,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream object resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +515,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream object resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream object resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +557,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the stream object resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +592,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetStreamObjectRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetStreamObjectRequest) private static final com.google.cloud.datastream.v1.GetStreamObjectRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetStreamObjectRequest(); } @@ -540,27 +606,27 @@ public static com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +641,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java new file mode 100644 index 000000000000..63588e715a1e --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamObjectRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java similarity index 61% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java index c55273bdf4b9..0c25c928e9c0 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for getting a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamRequest} */ -public final class GetStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamRequest) GetStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetStreamRequest.newBuilder() to construct. private GetStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamRequest.class, com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamRequest.class, + com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the stream resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the stream resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.GetStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.GetStreamRequest other = (com.google.cloud.datastream.v1.GetStreamRequest) obj; + com.google.cloud.datastream.v1.GetStreamRequest other = + (com.google.cloud.datastream.v1.GetStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -159,130 +186,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.GetStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.GetStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for getting a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.GetStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.GetStreamRequest) com.google.cloud.datastream.v1.GetStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.GetStreamRequest.class, com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1.GetStreamRequest.class, + com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.GetStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; } @java.lang.Override @@ -313,8 +346,11 @@ public com.google.cloud.datastream.v1.GetStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.GetStreamRequest buildPartial() { - com.google.cloud.datastream.v1.GetStreamRequest result = new com.google.cloud.datastream.v1.GetStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.GetStreamRequest result = + new com.google.cloud.datastream.v1.GetStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +366,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.GetStreamRequest resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.GetStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.GetStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.GetStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamRequest other) { - if (other == com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.GetStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.GetStreamRequest) private static final com.google.cloud.datastream.v1.GetStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.GetStreamRequest(); } @@ -540,27 +605,27 @@ public static com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java new file mode 100644 index 000000000000..0c06df45d76d --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java similarity index 67% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java index 6783773e1605..55ad8d1ebe6e 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * JSON file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.JsonFileFormat} */ -public final class JsonFileFormat extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JsonFileFormat extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.JsonFileFormat) JsonFileFormatOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JsonFileFormat.newBuilder() to construct. private JsonFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private JsonFileFormat() { schemaFileFormat_ = 0; compression_ = 0; @@ -26,39 +44,43 @@ private JsonFileFormat() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JsonFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.JsonFileFormat.class, com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1.JsonFileFormat.class, + com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); } /** + * + * *
    * Schema file format.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat} */ - public enum SchemaFileFormat - implements com.google.protobuf.ProtocolMessageEnum { + public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified schema file format.
      * 
@@ -67,6 +89,8 @@ public enum SchemaFileFormat */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** + * + * *
      * Do not attach schema file.
      * 
@@ -75,6 +99,8 @@ public enum SchemaFileFormat */ NO_SCHEMA_FILE(1), /** + * + * *
      * Avro schema format.
      * 
@@ -86,6 +112,8 @@ public enum SchemaFileFormat ; /** + * + * *
      * Unspecified schema file format.
      * 
@@ -94,6 +122,8 @@ public enum SchemaFileFormat */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not attach schema file.
      * 
@@ -102,6 +132,8 @@ public enum SchemaFileFormat */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** + * + * *
      * Avro schema format.
      * 
@@ -110,7 +142,6 @@ public enum SchemaFileFormat */ public static final int AVRO_SCHEMA_FILE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -135,39 +166,42 @@ public static SchemaFileFormat valueOf(int value) { */ public static SchemaFileFormat forNumber(int value) { switch (value) { - case 0: return SCHEMA_FILE_FORMAT_UNSPECIFIED; - case 1: return NO_SCHEMA_FILE; - case 2: return AVRO_SCHEMA_FILE; - default: return null; + case 0: + return SCHEMA_FILE_FORMAT_UNSPECIFIED; + case 1: + return NO_SCHEMA_FILE; + case 2: + return AVRO_SCHEMA_FILE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaFileFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaFileFormat findValueByNumber(int number) { - return SchemaFileFormat.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaFileFormat findValueByNumber(int number) { + return SchemaFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); } @@ -176,8 +210,7 @@ public SchemaFileFormat findValueByNumber(int number) { public static SchemaFileFormat valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -195,15 +228,18 @@ private SchemaFileFormat(int value) { } /** + * + * *
    * Json file compression.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.JsonFileFormat.JsonCompression} */ - public enum JsonCompression - implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified json file compression.
      * 
@@ -212,6 +248,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -220,6 +258,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -231,6 +271,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -239,6 +281,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -247,6 +291,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -255,7 +301,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -280,39 +325,42 @@ public static JsonCompression valueOf(int value) { */ public static JsonCompression forNumber(int value) { switch (value) { - case 0: return JSON_COMPRESSION_UNSPECIFIED; - case 1: return NO_COMPRESSION; - case 2: return GZIP; - default: return null; + case 0: + return JSON_COMPRESSION_UNSPECIFIED; + case 1: + return NO_COMPRESSION; + case 2: + return GZIP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - JsonCompression> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JsonCompression findValueByNumber(int number) { - return JsonCompression.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JsonCompression findValueByNumber(int number) { + return JsonCompression.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(1); } @@ -321,8 +369,7 @@ public JsonCompression findValueByNumber(int number) { public static JsonCompression valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -342,56 +389,81 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int schemaFileFormat_ = 0; /** + * + * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override public int getSchemaFileFormatValue() { + @java.lang.Override + public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** + * + * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The schemaFileFormat. */ - @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED + : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_ = 0; /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override public int getCompressionValue() { + @java.lang.Override + public int getCompressionValue() { return compression_; } /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The compression. */ - @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null + ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,12 +475,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (schemaFileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (schemaFileFormat_ + != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat + .SCHEMA_FILE_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, schemaFileFormat_); } - if (compression_ != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + if (compression_ + != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression + .JSON_COMPRESSION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, compression_); } getUnknownFields().writeTo(output); @@ -420,13 +497,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (schemaFileFormat_ != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, schemaFileFormat_); + if (schemaFileFormat_ + != com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat + .SCHEMA_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, schemaFileFormat_); } - if (compression_ != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, compression_); + if (compression_ + != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression + .JSON_COMPRESSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -436,12 +517,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.JsonFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1.JsonFileFormat other = (com.google.cloud.datastream.v1.JsonFileFormat) obj; + com.google.cloud.datastream.v1.JsonFileFormat other = + (com.google.cloud.datastream.v1.JsonFileFormat) obj; if (schemaFileFormat_ != other.schemaFileFormat_) return false; if (compression_ != other.compression_) return false; @@ -465,130 +547,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.JsonFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.JsonFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * JSON file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.JsonFileFormat} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.JsonFileFormat) com.google.cloud.datastream.v1.JsonFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.JsonFileFormat.class, com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1.JsonFileFormat.class, + com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1.JsonFileFormat.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +687,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; } @java.lang.Override @@ -620,8 +708,11 @@ public com.google.cloud.datastream.v1.JsonFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat buildPartial() { - com.google.cloud.datastream.v1.JsonFileFormat result = new com.google.cloud.datastream.v1.JsonFileFormat(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.JsonFileFormat result = + new com.google.cloud.datastream.v1.JsonFileFormat(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -640,38 +731,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.JsonFileFormat result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.JsonFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat)other); + return mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat) other); } else { super.mergeFrom(other); return this; @@ -712,22 +804,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - schemaFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - compression_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + schemaFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + compression_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -737,26 +832,36 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int schemaFileFormat_ = 0; /** + * + * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override public int getSchemaFileFormatValue() { + @java.lang.Override + public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @param value The enum numeric value on the wire for schemaFileFormat to set. * @return This builder for chaining. */ @@ -767,28 +872,41 @@ public Builder setSchemaFileFormatValue(int value) { return this; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The schemaFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.forNumber( + schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED + : result; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @param value The schemaFileFormat to set. * @return This builder for chaining. */ - public Builder setSchemaFileFormat(com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat value) { + public Builder setSchemaFileFormat( + com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -798,11 +916,15 @@ public Builder setSchemaFileFormat(com.google.cloud.datastream.v1.JsonFileFormat return this; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return This builder for chaining. */ public Builder clearSchemaFileFormat() { @@ -814,22 +936,29 @@ public Builder clearSchemaFileFormat() { private int compression_ = 0; /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override public int getCompressionValue() { + @java.lang.Override + public int getCompressionValue() { return compression_; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @param value The enum numeric value on the wire for compression to set. * @return This builder for chaining. */ @@ -840,28 +969,38 @@ public Builder setCompressionValue(int value) { return this; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The compression. */ @java.lang.Override public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null + ? com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.UNRECOGNIZED + : result; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @param value The compression to set. * @return This builder for chaining. */ - public Builder setCompression(com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression value) { + public Builder setCompression( + com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression value) { if (value == null) { throw new NullPointerException(); } @@ -871,11 +1010,14 @@ public Builder setCompression(com.google.cloud.datastream.v1.JsonFileFormat.Json return this; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return This builder for chaining. */ public Builder clearCompression() { @@ -884,9 +1026,9 @@ public Builder clearCompression() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -896,12 +1038,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.JsonFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.JsonFileFormat) private static final com.google.cloud.datastream.v1.JsonFileFormat DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.JsonFileFormat(); } @@ -910,27 +1052,27 @@ public static com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -945,6 +1087,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java similarity index 63% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java index 494d2d98e1b5..ef4b8a8ebe40 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface JsonFileFormatOrBuilder extends +public interface JsonFileFormatOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.JsonFileFormat) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The enum numeric value on the wire for schemaFileFormat. */ int getSchemaFileFormatValue(); /** + * + * *
    * The schema file format along JSON data files.
    * 
* - * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * .google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat schema_file_format = 1; + * + * * @return The schemaFileFormat. */ com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat(); /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return The compression. */ com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java index ca37ae13568a..c0b353ab8eb3 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for listing connection profiles.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -151,16 +186,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -169,14 +203,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -185,29 +223,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -216,14 +254,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -232,29 +274,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -263,6 +305,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -304,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -324,23 +365,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListConnectionProfilesRequest other = (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListConnectionProfilesRequest other = + (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,129 +405,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListConnectionProfilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing connection profiles.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListConnectionProfilesRequest) com.google.cloud.datastream.v1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,13 +548,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListConnectionProfilesRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance(); } @@ -525,13 +570,17 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = + new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfilesRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -554,38 +603,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfiles public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListConnectionProfilesRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +643,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesRequest other) { - if (other == com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -643,37 +695,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -683,22 +741,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,20 +770,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -728,28 +794,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -759,17 +836,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -777,8 +860,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -786,6 +871,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -793,6 +879,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -800,17 +888,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -818,6 +909,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -829,6 +921,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -837,13 +931,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -852,6 +946,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -860,15 +956,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -876,6 +971,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -884,18 +981,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -904,6 +1005,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -913,6 +1015,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -921,12 +1025,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -936,18 +1042,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -956,20 +1064,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -977,28 +1086,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1008,17 +1124,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1028,18 +1148,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1048,20 +1170,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1069,28 +1192,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1100,26 +1230,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1129,12 +1263,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListConnectionProfilesRequest) - private static final com.google.cloud.datastream.v1.ListConnectionProfilesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.ListConnectionProfilesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(); } @@ -1143,27 +1278,27 @@ public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1178,6 +1313,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java index 4981775be2fb..f79b030ec862 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListConnectionProfilesRequestOrBuilder extends +public interface ListConnectionProfilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -35,11 +62,14 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -60,48 +93,58 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java index bb0d23638248..740c4fc2a587 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response message for listing connection profiles.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +46,37 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List connectionProfiles_; /** + * + * *
    * List of connection profiles.
    * 
@@ -61,10 +84,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { return connectionProfiles_; } /** + * + * *
    * List of connection profiles.
    * 
@@ -72,11 +98,13 @@ public java.util.List getConne * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** + * + * *
    * List of connection profiles.
    * 
@@ -88,6 +116,8 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** + * + * *
    * List of connection profiles.
    * 
@@ -99,6 +129,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in return connectionProfiles_.get(index); } /** + * + * *
    * List of connection profiles.
    * 
@@ -112,15 +144,19 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +165,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,37 +197,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +244,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -245,8 +292,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connectionProfiles_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListConnectionProfilesResponse other = (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) obj; + com.google.cloud.datastream.v1.ListConnectionProfilesResponse other = + (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList() - .equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +352,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListConnectionProfilesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing connection profiles.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListConnectionProfilesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListConnectionProfilesResponse) com.google.cloud.datastream.v1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +500,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance(); } @@ -469,14 +522,18 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.datastream.v1.ListConnectionProfilesResponse result = new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(this); + com.google.cloud.datastream.v1.ListConnectionProfilesResponse result = + new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -493,7 +550,8 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListConne result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +562,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListConnectionProfiles public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListConnectionProfilesResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.ListConnectionProfilesResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +602,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesResponse other) { - if (other == com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance()) + return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -562,9 +623,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesRe connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionProfilesFieldBuilder() : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionProfilesFieldBuilder() + : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -611,36 +673,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.ConnectionProfile m = - input.readMessage( - com.google.cloud.datastream.v1.ConnectionProfile.parser(), - extensionRegistry); - if (connectionProfilesBuilder_ == null) { - ensureConnectionProfilesIsMutable(); - connectionProfiles_.add(m); - } else { - connectionProfilesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.ConnectionProfile m = + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), + extensionRegistry); + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(m); + } else { + connectionProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,28 +716,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List connectionProfiles_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); + connectionProfiles_ = + new java.util.ArrayList( + connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + connectionProfilesBuilder_; /** + * + * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -679,6 +755,8 @@ public java.util.List getConne } } /** + * + * *
      * List of connection profiles.
      * 
@@ -693,6 +771,8 @@ public int getConnectionProfilesCount() { } } /** + * + * *
      * List of connection profiles.
      * 
@@ -707,6 +787,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in } } /** + * + * *
      * List of connection profiles.
      * 
@@ -728,6 +810,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -746,6 +830,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -766,6 +852,8 @@ public Builder addConnectionProfiles(com.google.cloud.datastream.v1.ConnectionPr return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -787,6 +875,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -805,6 +895,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -823,6 +915,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -833,8 +927,7 @@ public Builder addAllConnectionProfiles( java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -842,6 +935,8 @@ public Builder addAllConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -859,6 +954,8 @@ public Builder clearConnectionProfiles() { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -876,6 +973,8 @@ public Builder removeConnectionProfiles(int index) { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -887,6 +986,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfilesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connection profiles.
      * 
@@ -896,19 +997,22 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); } else { + return connectionProfiles_.get(index); + } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1020,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * List of connection profiles.
      * 
@@ -923,10 +1029,12 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * List of connection profiles.
      * 
@@ -935,26 +1043,34 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionPro */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionProfilesBuilder( int index) { - return getConnectionProfilesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); + return getConnectionProfilesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * List of connection profiles.
      * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1082,21 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionPro private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -987,21 +1105,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1009,30 +1128,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1168,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1191,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1370,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListConnectionProfilesResponse) - private static final com.google.cloud.datastream.v1.ListConnectionProfilesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.ListConnectionProfilesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(); } @@ -1226,27 +1385,27 @@ public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1420,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java index e8c750796c95..13d60e164df2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListConnectionProfilesResponseOrBuilder extends +public interface ListConnectionProfilesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of connection profiles.
    * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List - getConnectionProfilesList(); + java.util.List getConnectionProfilesList(); /** + * + * *
    * List of connection profiles.
    * 
@@ -25,6 +44,8 @@ public interface ListConnectionProfilesResponseOrBuilder extends */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(int index); /** + * + * *
    * List of connection profiles.
    * 
@@ -33,15 +54,19 @@ public interface ListConnectionProfilesResponseOrBuilder extends */ int getConnectionProfilesCount(); /** + * + * *
    * List of connection profiles.
    * 
* * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** + * + * *
    * List of connection profiles.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfilesO int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java index 9e799e2d17c7..c1057b8d788b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for listing private connections.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsRequest} */ -public final class ListPrivateConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsRequest) ListPrivateConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsRequest.newBuilder() to construct. private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPrivateConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,39 +46,46 @@ private ListPrivateConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPrivateConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of private connectivity
    * configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -69,30 +94,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of private connectivity
    * configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -103,6 +130,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -111,6 +140,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,9 +149,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -131,6 +164,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -139,14 +173,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -156,16 +191,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -174,14 +208,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -190,29 +228,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -221,14 +259,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -237,29 +279,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -268,6 +310,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,8 +322,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -309,8 +351,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -329,23 +370,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other = (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other = + (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -373,129 +410,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for listing private connections.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListPrivateConnectionsRequest) com.google.cloud.datastream.v1.ListPrivateConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -509,13 +553,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance(); } @@ -530,13 +575,17 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest buildPartial() { - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = + new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -559,38 +608,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnections public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) other); } else { super.mergeFrom(other); return this; @@ -598,7 +648,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other) { - if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -648,37 +700,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -688,23 +746,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of private connectivity
      * configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -713,21 +776,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of private connectivity
      * configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -735,30 +801,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of private connectivity
      * configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of private connectivity
      * configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -768,18 +845,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of private connectivity
      * configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -787,8 +870,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -797,6 +882,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -804,6 +890,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -812,17 +900,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -831,6 +922,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -842,6 +934,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -851,13 +945,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -866,6 +960,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -875,15 +971,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -891,6 +986,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -900,18 +997,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -921,6 +1022,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -930,6 +1032,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -939,12 +1043,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -954,18 +1060,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -974,20 +1082,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -995,28 +1104,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1026,17 +1142,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1046,18 +1166,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1066,20 +1188,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1087,28 +1210,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1118,26 +1248,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1147,12 +1281,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListPrivateConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListPrivateConnectionsRequest) - private static final com.google.cloud.datastream.v1.ListPrivateConnectionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.ListPrivateConnectionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(); } @@ -1161,27 +1296,27 @@ public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1196,6 +1331,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java index 64f1dcbd5934..3afa793b2c92 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListPrivateConnectionsRequestOrBuilder extends +public interface ListPrivateConnectionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListPrivateConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of private connectivity
    * configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of private connectivity
    * configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -38,11 +65,14 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -52,10 +82,13 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -65,48 +98,58 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java index e126e549d9ca..b73413f066be 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response containing a list of private connection configurations.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsResponse} */ -public final class ListPrivateConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsResponse) ListPrivateConnectionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsResponse.newBuilder() to construct. - private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPrivateConnectionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPrivateConnectionsResponse() { privateConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +46,37 @@ private ListPrivateConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPrivateConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); } public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List privateConnections_; /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -61,10 +84,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List getPrivateConnectionsList() { + public java.util.List + getPrivateConnectionsList() { return privateConnections_; } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -72,11 +98,13 @@ public java.util.List getPriva * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPrivateConnectionsOrBuilderList() { return privateConnections_; } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -88,6 +116,8 @@ public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -99,6 +129,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in return privateConnections_.get(index); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -112,15 +144,19 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +165,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,37 +197,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +244,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < privateConnections_.size(); i++) { output.writeMessage(1, privateConnections_.get(i)); } @@ -245,8 +292,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < privateConnections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, privateConnections_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +314,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other = (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) obj; + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other = + (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) obj; - if (!getPrivateConnectionsList() - .equals(other.getPrivateConnectionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +352,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response containing a list of private connection configurations.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListPrivateConnectionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListPrivateConnectionsResponse) com.google.cloud.datastream.v1.ListPrivateConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,13 +500,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance(); } @@ -469,14 +522,18 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse buildPartial() { - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result = new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(this); + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result = + new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -493,7 +550,8 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListPriva result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -504,38 +562,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListPrivateConnections public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +602,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other) { - if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance()) + return this; if (privateConnectionsBuilder_ == null) { if (!other.privateConnections_.isEmpty()) { if (privateConnections_.isEmpty()) { @@ -562,9 +623,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsRe privateConnectionsBuilder_ = null; privateConnections_ = other.privateConnections_; bitField0_ = (bitField0_ & ~0x00000001); - privateConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPrivateConnectionsFieldBuilder() : null; + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateConnectionsFieldBuilder() + : null; } else { privateConnectionsBuilder_.addAllMessages(other.privateConnections_); } @@ -611,36 +673,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.PrivateConnection m = - input.readMessage( - com.google.cloud.datastream.v1.PrivateConnection.parser(), - extensionRegistry); - if (privateConnectionsBuilder_ == null) { - ensurePrivateConnectionsIsMutable(); - privateConnections_.add(m); - } else { - privateConnectionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.PrivateConnection m = + input.readMessage( + com.google.cloud.datastream.v1.PrivateConnection.parser(), + extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,28 +716,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List privateConnections_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePrivateConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - privateConnections_ = new java.util.ArrayList(privateConnections_); + privateConnections_ = + new java.util.ArrayList( + privateConnections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> privateConnectionsBuilder_; + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + privateConnectionsBuilder_; /** + * + * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List getPrivateConnectionsList() { + public java.util.List + getPrivateConnectionsList() { if (privateConnectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(privateConnections_); } else { @@ -679,6 +755,8 @@ public java.util.List getPriva } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -693,6 +771,8 @@ public int getPrivateConnectionsCount() { } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -707,6 +787,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -728,6 +810,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -746,6 +830,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -766,6 +852,8 @@ public Builder addPrivateConnections(com.google.cloud.datastream.v1.PrivateConne return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -787,6 +875,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -805,6 +895,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -823,6 +915,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -833,8 +927,7 @@ public Builder addAllPrivateConnections( java.lang.Iterable values) { if (privateConnectionsBuilder_ == null) { ensurePrivateConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, privateConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); onChanged(); } else { privateConnectionsBuilder_.addAllMessages(values); @@ -842,6 +935,8 @@ public Builder addAllPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -859,6 +954,8 @@ public Builder clearPrivateConnections() { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -876,6 +973,8 @@ public Builder removePrivateConnections(int index) { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -887,6 +986,8 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -896,19 +997,22 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( int index) { if (privateConnectionsBuilder_ == null) { - return privateConnections_.get(index); } else { + return privateConnections_.get(index); + } else { return privateConnectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsOrBuilderList() { + public java.util.List + getPrivateConnectionsOrBuilderList() { if (privateConnectionsBuilder_ != null) { return privateConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1020,8 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -923,10 +1029,12 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnectionsBuilder() { - return getPrivateConnectionsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); + return getPrivateConnectionsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -935,26 +1043,34 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnec */ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnectionsBuilder( int index) { - return getPrivateConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); + return getPrivateConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()); } /** + * + * *
      * List of private connectivity configurations.
      * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsBuilderList() { + public java.util.List + getPrivateConnectionsBuilderList() { return getPrivateConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder> getPrivateConnectionsFieldBuilder() { if (privateConnectionsBuilder_ == null) { - privateConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PrivateConnection, com.google.cloud.datastream.v1.PrivateConnection.Builder, com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( + privateConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PrivateConnection, + com.google.cloud.datastream.v1.PrivateConnection.Builder, + com.google.cloud.datastream.v1.PrivateConnectionOrBuilder>( privateConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -966,19 +1082,21 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnec private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -987,21 +1105,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1009,30 +1128,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1168,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1191,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1244,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1337,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1370,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListPrivateConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListPrivateConnectionsResponse) - private static final com.google.cloud.datastream.v1.ListPrivateConnectionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.ListPrivateConnectionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(); } @@ -1226,27 +1385,27 @@ public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1420,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java index 8b26670c3934..5eefa715442c 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListPrivateConnectionsResponseOrBuilder extends +public interface ListPrivateConnectionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListPrivateConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of private connectivity configurations.
    * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - java.util.List - getPrivateConnectionsList(); + java.util.List getPrivateConnectionsList(); /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -25,6 +44,8 @@ public interface ListPrivateConnectionsResponseOrBuilder extends */ com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(int index); /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -33,15 +54,19 @@ public interface ListPrivateConnectionsResponseOrBuilder extends */ int getPrivateConnectionsCount(); /** + * + * *
    * List of private connectivity configurations.
    * 
* * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsOrBuilderList(); /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -52,65 +77,80 @@ com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionsO int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java index c51337b89ff4..1caf0f3be9d9 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Route list request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesRequest} */ -public final class ListRoutesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRoutesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesRequest) ListRoutesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRoutesRequest.newBuilder() to construct. private ListRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRoutesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesRequest.class, com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1.ListRoutesRequest.class, + com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -129,6 +162,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,14 +171,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -154,16 +189,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -172,14 +206,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -188,29 +226,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -219,14 +257,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -235,29 +277,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -266,6 +308,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -307,8 +349,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -327,23 +368,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListRoutesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListRoutesRequest other = (com.google.cloud.datastream.v1.ListRoutesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListRoutesRequest other = + (com.google.cloud.datastream.v1.ListRoutesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -370,130 +407,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ListRoutesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Route list request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListRoutesRequest) com.google.cloud.datastream.v1.ListRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesRequest.class, com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1.ListRoutesRequest.class, + com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListRoutesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +550,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; } @java.lang.Override @@ -528,8 +571,11 @@ public com.google.cloud.datastream.v1.ListRoutesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListRoutesRequest buildPartial() { - com.google.cloud.datastream.v1.ListRoutesRequest result = new com.google.cloud.datastream.v1.ListRoutesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ListRoutesRequest result = + new com.google.cloud.datastream.v1.ListRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -557,38 +603,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListRoutesRequest resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListRoutesRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListRoutesRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.ListRoutesRequest) other); } else { super.mergeFrom(other); return this; @@ -596,7 +643,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesRequest other) { - if (other == com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -646,37 +694,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,22 +740,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -710,20 +769,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -731,28 +793,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -762,17 +835,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -780,8 +859,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -790,6 +871,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -797,6 +879,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -805,17 +889,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -824,6 +911,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -835,6 +923,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -844,13 +934,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -859,6 +949,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -868,15 +960,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -884,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -893,18 +986,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -914,6 +1011,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -923,6 +1021,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -932,12 +1032,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,18 +1049,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -967,20 +1071,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -988,28 +1093,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,17 +1131,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1039,18 +1155,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1059,20 +1177,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1080,28 +1199,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1111,26 +1237,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1140,12 +1270,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListRoutesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListRoutesRequest) private static final com.google.cloud.datastream.v1.ListRoutesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListRoutesRequest(); } @@ -1154,27 +1284,27 @@ public static com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,6 +1319,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java index 0065059896fb..9ea59a4062fb 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListRoutesRequestOrBuilder extends +public interface ListRoutesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListRoutesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -36,11 +63,14 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -63,48 +96,58 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java index c3e13cea1f36..e251d9b9d588 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Route list response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesResponse} */ -public final class ListRoutesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRoutesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesResponse) ListRoutesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRoutesResponse.newBuilder() to construct. private ListRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRoutesResponse() { routes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListRoutesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRoutesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesResponse.class, com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1.ListRoutesResponse.class, + com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List routes_; /** + * + * *
    * List of Routes.
    * 
@@ -65,6 +87,8 @@ public java.util.List getRoutesList() { return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -72,11 +96,13 @@ public java.util.List getRoutesList() { * repeated .google.cloud.datastream.v1.Route routes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -88,6 +114,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { * repeated .google.cloud.datastream.v1.Route routes = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index) { return routes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +241,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListRoutesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListRoutesResponse other = (com.google.cloud.datastream.v1.ListRoutesResponse) obj; + com.google.cloud.datastream.v1.ListRoutesResponse other = + (com.google.cloud.datastream.v1.ListRoutesResponse) obj; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRoutesList().equals(other.getRoutesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ListRoutesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Route list response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListRoutesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListRoutesResponse) com.google.cloud.datastream.v1.ListRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListRoutesResponse.class, com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1.ListRoutesResponse.class, + com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListRoutesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; } @java.lang.Override @@ -469,14 +516,18 @@ public com.google.cloud.datastream.v1.ListRoutesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListRoutesResponse buildPartial() { - com.google.cloud.datastream.v1.ListRoutesResponse result = new com.google.cloud.datastream.v1.ListRoutesResponse(this); + com.google.cloud.datastream.v1.ListRoutesResponse result = + new com.google.cloud.datastream.v1.ListRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListRoutesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ListRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -504,38 +555,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListRoutesResponse res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListRoutesResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListRoutesResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.ListRoutesResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +595,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesResponse other) { - if (other == com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance()) + return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -562,9 +615,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesResponse other routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutesFieldBuilder() : null; + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRoutesFieldBuilder() + : null; } else { routesBuilder_.addAllMessages(other.routes_); } @@ -611,36 +665,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.Route m = - input.readMessage( - com.google.cloud.datastream.v1.Route.parser(), - extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.Route m = + input.readMessage( + com.google.cloud.datastream.v1.Route.parser(), extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +707,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List routes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> routesBuilder_; + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder> + routesBuilder_; /** + * + * *
      * List of Routes.
      * 
@@ -679,6 +743,8 @@ public java.util.List getRoutesList() { } } /** + * + * *
      * List of Routes.
      * 
@@ -693,6 +759,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -707,14 +775,15 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { } } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder setRoutes( - int index, com.google.cloud.datastream.v1.Route value) { + public Builder setRoutes(int index, com.google.cloud.datastream.v1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +797,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -746,6 +817,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -766,14 +839,15 @@ public Builder addRoutes(com.google.cloud.datastream.v1.Route value) { return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder addRoutes( - int index, com.google.cloud.datastream.v1.Route value) { + public Builder addRoutes(int index, com.google.cloud.datastream.v1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +861,15 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public Builder addRoutes( - com.google.cloud.datastream.v1.Route.Builder builderForValue) { + public Builder addRoutes(com.google.cloud.datastream.v1.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -805,6 +880,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -823,6 +900,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -833,8 +912,7 @@ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); @@ -842,6 +920,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -859,6 +939,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -876,39 +958,44 @@ public Builder removeRoutes(int index) { return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.Route.Builder getRoutesBuilder( - int index) { + public com.google.cloud.datastream.v1.Route.Builder getRoutesBuilder(int index) { return getRoutesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index) { if (routesBuilder_ == null) { - return routes_.get(index); } else { + return routes_.get(index); + } else { return routesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public java.util.List - getRoutesOrBuilderList() { + public java.util.List + getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1003,8 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -923,42 +1012,47 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( * repeated .google.cloud.datastream.v1.Route routes = 1; */ public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.Route.getDefaultInstance()); + return getRoutesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Route.getDefaultInstance()); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder( - int index) { - return getRoutesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.Route.getDefaultInstance()); + public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder(int index) { + return getRoutesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Route.getDefaultInstance()); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - public java.util.List - getRoutesBuilderList() { + public java.util.List getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder> + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { - routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Route, com.google.cloud.datastream.v1.Route.Builder, com.google.cloud.datastream.v1.RouteOrBuilder>( - routes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + routesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Route, + com.google.cloud.datastream.v1.Route.Builder, + com.google.cloud.datastream.v1.RouteOrBuilder>( + routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); routes_ = null; } return routesBuilder_; @@ -966,19 +1060,21 @@ public com.google.cloud.datastream.v1.Route.Builder addRoutesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -987,21 +1083,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1009,30 +1106,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1146,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1169,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1222,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1315,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1348,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListRoutesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListRoutesResponse) private static final com.google.cloud.datastream.v1.ListRoutesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListRoutesResponse(); } @@ -1226,27 +1362,27 @@ public static com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1397,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java index 8910746cfde0..78026acebae8 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListRoutesResponseOrBuilder extends +public interface ListRoutesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListRoutesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - java.util.List - getRoutesList(); + java.util.List getRoutesList(); /** + * + * *
    * List of Routes.
    * 
@@ -25,6 +44,8 @@ public interface ListRoutesResponseOrBuilder extends */ com.google.cloud.datastream.v1.Route getRoutes(int index); /** + * + * *
    * List of Routes.
    * 
@@ -33,84 +54,101 @@ public interface ListRoutesResponseOrBuilder extends */ int getRoutesCount(); /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - java.util.List - getRoutesOrBuilderList(); + java.util.List getRoutesOrBuilderList(); /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1.Route routes = 1; */ - com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( - int index); + com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java similarity index 67% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java index 8ce4f3d02e15..182b52a901a7 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for listing all objects for a specific stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsRequest} */ -public final class ListStreamObjectsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListStreamObjectsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsRequest) ListStreamObjectsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamObjectsRequest.newBuilder() to construct. private ListStreamObjectsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamObjectsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,38 +44,45 @@ private ListStreamObjectsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamObjectsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, + com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,12 +126,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of objects to return. Default is 50.
    * The maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +143,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -125,6 +158,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,14 +167,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -150,16 +185,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -168,6 +202,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,8 +214,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -203,8 +237,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -217,19 +250,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamObjectsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamObjectsRequest other = (com.google.cloud.datastream.v1.ListStreamObjectsRequest) obj; + com.google.cloud.datastream.v1.ListStreamObjectsRequest other = + (com.google.cloud.datastream.v1.ListStreamObjectsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,129 +284,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamObjectsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListStreamObjectsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for listing all objects for a specific stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamObjectsRequest) com.google.cloud.datastream.v1.ListStreamObjectsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, + com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamObjectsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -387,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; } @java.lang.Override @@ -408,8 +446,11 @@ public com.google.cloud.datastream.v1.ListStreamObjectsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamObjectsRequest buildPartial() { - com.google.cloud.datastream.v1.ListStreamObjectsRequest result = new com.google.cloud.datastream.v1.ListStreamObjectsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ListStreamObjectsRequest result = + new com.google.cloud.datastream.v1.ListStreamObjectsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -431,38 +472,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamObjectsReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamObjectsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsRequest) other); } else { super.mergeFrom(other); return this; @@ -470,7 +512,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsRequest other) { - if (other == com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -510,27 +553,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -540,22 +587,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -564,20 +616,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -585,28 +640,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -616,17 +682,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -634,14 +706,17 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -649,29 +724,35 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of objects to return. Default is 50.
      * The maximum value is 1000; values above 1000 will be coerced to 1000.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -683,6 +764,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -692,13 +775,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -707,6 +790,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -716,15 +801,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -732,6 +816,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -741,18 +827,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -762,6 +852,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -771,6 +862,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -780,21 +873,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -804,12 +899,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamObjectsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamObjectsRequest) private static final com.google.cloud.datastream.v1.ListStreamObjectsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamObjectsRequest(); } @@ -818,27 +913,27 @@ public static com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamObjectsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamObjectsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -853,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java index aa381f59a06e..32bd025d78f9 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java @@ -1,44 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamObjectsRequestOrBuilder extends +public interface ListStreamObjectsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamObjectsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of objects to return. Default is 50.
    * The maximum value is 1000; values above 1000 will be coerced to 1000.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListStreamObjectsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -61,8 +94,8 @@ public interface ListStreamObjectsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java index 2b6cde55f9b0..799d2d055701 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response containing the objects for a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsResponse} */ -public final class ListStreamObjectsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListStreamObjectsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsResponse) ListStreamObjectsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamObjectsResponse.newBuilder() to construct. private ListStreamObjectsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamObjectsResponse() { streamObjects_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListStreamObjectsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamObjectsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, + com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); } public static final int STREAM_OBJECTS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List streamObjects_; /** + * + * *
    * List of stream objects.
    * 
@@ -64,6 +86,8 @@ public java.util.List getStreamObje return streamObjects_; } /** + * + * *
    * List of stream objects.
    * 
@@ -71,11 +95,13 @@ public java.util.List getStreamObje * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamObjectsOrBuilderList() { return streamObjects_; } /** + * + * *
    * List of stream objects.
    * 
@@ -87,6 +113,8 @@ public int getStreamObjectsCount() { return streamObjects_.size(); } /** + * + * *
    * List of stream objects.
    * 
@@ -98,6 +126,8 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { return streamObjects_.get(index); } /** + * + * *
    * List of stream objects.
    * 
@@ -105,20 +135,23 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder(int index) { return streamObjects_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -127,29 +160,29 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -158,6 +191,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < streamObjects_.size(); i++) { output.writeMessage(1, streamObjects_.get(i)); } @@ -187,8 +220,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streamObjects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, streamObjects_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streamObjects_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamObjectsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamObjectsResponse other = (com.google.cloud.datastream.v1.ListStreamObjectsResponse) obj; + com.google.cloud.datastream.v1.ListStreamObjectsResponse other = + (com.google.cloud.datastream.v1.ListStreamObjectsResponse) obj; - if (!getStreamObjectsList() - .equals(other.getStreamObjectsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getStreamObjectsList().equals(other.getStreamObjectsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +266,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamObjectsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.ListStreamObjectsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response containing the objects for a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamObjectsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamObjectsResponse) com.google.cloud.datastream.v1.ListStreamObjectsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, + com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamObjectsResponse.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; } @java.lang.Override @@ -395,14 +433,18 @@ public com.google.cloud.datastream.v1.ListStreamObjectsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamObjectsResponse buildPartial() { - com.google.cloud.datastream.v1.ListStreamObjectsResponse result = new com.google.cloud.datastream.v1.ListStreamObjectsResponse(this); + com.google.cloud.datastream.v1.ListStreamObjectsResponse result = + new com.google.cloud.datastream.v1.ListStreamObjectsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListStreamObjectsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ListStreamObjectsResponse result) { if (streamObjectsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streamObjects_ = java.util.Collections.unmodifiableList(streamObjects_); @@ -425,38 +467,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamObjectsRespo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamObjectsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamObjectsResponse) other); } else { super.mergeFrom(other); return this; @@ -464,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsResponse other) { - if (other == com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance()) + return this; if (streamObjectsBuilder_ == null) { if (!other.streamObjects_.isEmpty()) { if (streamObjects_.isEmpty()) { @@ -483,9 +527,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsRespons streamObjectsBuilder_ = null; streamObjects_ = other.streamObjects_; bitField0_ = (bitField0_ & ~0x00000001); - streamObjectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamObjectsFieldBuilder() : null; + streamObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamObjectsFieldBuilder() + : null; } else { streamObjectsBuilder_.addAllMessages(other.streamObjects_); } @@ -522,30 +567,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.StreamObject m = - input.readMessage( - com.google.cloud.datastream.v1.StreamObject.parser(), - extensionRegistry); - if (streamObjectsBuilder_ == null) { - ensureStreamObjectsIsMutable(); - streamObjects_.add(m); - } else { - streamObjectsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.StreamObject m = + input.readMessage( + com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.add(m); + } else { + streamObjectsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,21 +602,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List streamObjects_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamObjectsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - streamObjects_ = new java.util.ArrayList(streamObjects_); + streamObjects_ = + new java.util.ArrayList(streamObjects_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> streamObjectsBuilder_; + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> + streamObjectsBuilder_; /** + * + * *
      * List of stream objects.
      * 
@@ -584,6 +639,8 @@ public java.util.List getStreamObje } } /** + * + * *
      * List of stream objects.
      * 
@@ -598,6 +655,8 @@ public int getStreamObjectsCount() { } } /** + * + * *
      * List of stream objects.
      * 
@@ -612,14 +671,15 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { } } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public Builder setStreamObjects( - int index, com.google.cloud.datastream.v1.StreamObject value) { + public Builder setStreamObjects(int index, com.google.cloud.datastream.v1.StreamObject value) { if (streamObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -633,6 +693,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -651,6 +713,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -671,14 +735,15 @@ public Builder addStreamObjects(com.google.cloud.datastream.v1.StreamObject valu return this; } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public Builder addStreamObjects( - int index, com.google.cloud.datastream.v1.StreamObject value) { + public Builder addStreamObjects(int index, com.google.cloud.datastream.v1.StreamObject value) { if (streamObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -692,6 +757,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -710,6 +777,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -728,6 +797,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -738,8 +809,7 @@ public Builder addAllStreamObjects( java.lang.Iterable values) { if (streamObjectsBuilder_ == null) { ensureStreamObjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streamObjects_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streamObjects_); onChanged(); } else { streamObjectsBuilder_.addAllMessages(values); @@ -747,6 +817,8 @@ public Builder addAllStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -764,6 +836,8 @@ public Builder clearStreamObjects() { return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -781,17 +855,20 @@ public Builder removeStreamObjects(int index) { return this; } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuilder( - int index) { + public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuilder(int index) { return getStreamObjectsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of stream objects.
      * 
@@ -801,19 +878,22 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getStreamObjectsBuild public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( int index) { if (streamObjectsBuilder_ == null) { - return streamObjects_.get(index); } else { + return streamObjects_.get(index); + } else { return streamObjectsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public java.util.List - getStreamObjectsOrBuilderList() { + public java.util.List + getStreamObjectsOrBuilderList() { if (streamObjectsBuilder_ != null) { return streamObjectsBuilder_.getMessageOrBuilderList(); } else { @@ -821,6 +901,8 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu } } /** + * + * *
      * List of stream objects.
      * 
@@ -828,38 +910,47 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder() { - return getStreamObjectsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); + return getStreamObjectsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder( - int index) { - return getStreamObjectsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); + public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuilder(int index) { + return getStreamObjectsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()); } /** + * + * *
      * List of stream objects.
      * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - public java.util.List - getStreamObjectsBuilderList() { + public java.util.List + getStreamObjectsBuilderList() { return getStreamObjectsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> getStreamObjectsFieldBuilder() { if (streamObjectsBuilder_ == null) { - streamObjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + streamObjectsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder>( streamObjects_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -871,18 +962,20 @@ public com.google.cloud.datastream.v1.StreamObject.Builder addStreamObjectsBuild private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -891,20 +984,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -912,28 +1006,35 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -943,26 +1044,30 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1077,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamObjectsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamObjectsResponse) private static final com.google.cloud.datastream.v1.ListStreamObjectsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamObjectsResponse(); } @@ -986,27 +1091,27 @@ public static com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamObjectsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamObjectsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java index 989af467cc68..fe71d90b326d 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamObjectsResponseOrBuilder extends +public interface ListStreamObjectsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamObjectsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - java.util.List - getStreamObjectsList(); + java.util.List getStreamObjectsList(); /** + * + * *
    * List of stream objects.
    * 
@@ -25,6 +44,8 @@ public interface ListStreamObjectsResponseOrBuilder extends */ com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index); /** + * + * *
    * List of stream objects.
    * 
@@ -33,41 +54,49 @@ public interface ListStreamObjectsResponseOrBuilder extends */ int getStreamObjectsCount(); /** + * + * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - java.util.List + java.util.List getStreamObjectsOrBuilderList(); /** + * + * *
    * List of stream objects.
    * 
* * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; */ - com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( - int index); + com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java index 2f1e16d2c9ec..0ac98ca6ccd4 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for listing streams.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsRequest} */ -public final class ListStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsRequest) ListStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamsRequest.newBuilder() to construct. private ListStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsRequest.class, com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamsRequest.class, + com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -108,6 +137,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -116,9 +146,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -127,6 +160,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -135,14 +169,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -151,16 +186,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -169,14 +203,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -185,29 +223,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -216,14 +254,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -232,29 +274,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -263,6 +305,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +317,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -304,8 +346,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -324,23 +365,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamsRequest other = (com.google.cloud.datastream.v1.ListStreamsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1.ListStreamsRequest other = + (com.google.cloud.datastream.v1.ListStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -368,129 +405,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for listing streams.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamsRequest) com.google.cloud.datastream.v1.ListStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsRequest.class, com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1.ListStreamsRequest.class, + com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +547,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; } @java.lang.Override @@ -525,8 +568,11 @@ public com.google.cloud.datastream.v1.ListStreamsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamsRequest buildPartial() { - com.google.cloud.datastream.v1.ListStreamsRequest result = new com.google.cloud.datastream.v1.ListStreamsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ListStreamsRequest result = + new com.google.cloud.datastream.v1.ListStreamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -554,38 +600,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamsRequest res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamsRequest) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamsRequest) other); } else { super.mergeFrom(other); return this; @@ -593,7 +640,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsRequest other) { - if (other == com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -643,37 +691,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -683,22 +737,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -707,20 +766,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -728,28 +790,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -759,17 +832,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -777,8 +856,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -786,6 +867,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -793,6 +875,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -800,17 +884,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -818,6 +905,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -829,6 +917,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -837,13 +927,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -852,6 +942,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -860,15 +952,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -876,6 +967,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -884,18 +977,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -904,6 +1001,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -913,6 +1011,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -921,12 +1021,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -936,18 +1038,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -956,20 +1060,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -977,28 +1082,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1008,17 +1120,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1028,18 +1144,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1048,20 +1166,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1069,28 +1188,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1100,26 +1226,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1129,12 +1259,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamsRequest) private static final com.google.cloud.datastream.v1.ListStreamsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamsRequest(); } @@ -1143,27 +1273,27 @@ public static com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1178,6 +1308,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java index 37f5d5879c4b..a28162e63c72 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamsRequestOrBuilder extends +public interface ListStreamsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -35,11 +62,14 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -60,48 +93,58 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java index f701d63e1dcc..a7ca44ce2f9a 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response message for listing streams.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsResponse} */ -public final class ListStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsResponse) ListStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamsResponse.newBuilder() to construct. private ListStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamsResponse() { streams_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListStreamsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsResponse.class, com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamsResponse.class, + com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
    * List of streams
    * 
@@ -65,6 +87,8 @@ public java.util.List getStreamsList() { return streams_; } /** + * + * *
    * List of streams
    * 
@@ -72,11 +96,13 @@ public java.util.List getStreamsList() { * repeated .google.cloud.datastream.v1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** + * + * *
    * List of streams
    * 
@@ -88,6 +114,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { * repeated .google.cloud.datastream.v1.Stream streams = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index) { return streams_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +241,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ListStreamsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ListStreamsResponse other = (com.google.cloud.datastream.v1.ListStreamsResponse) obj; + com.google.cloud.datastream.v1.ListStreamsResponse other = + (com.google.cloud.datastream.v1.ListStreamsResponse) obj; - if (!getStreamsList() - .equals(other.getStreamsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getStreamsList().equals(other.getStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ListStreamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for listing streams.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ListStreamsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ListStreamsResponse) com.google.cloud.datastream.v1.ListStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ListStreamsResponse.class, com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1.ListStreamsResponse.class, + com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.ListStreamsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +495,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; } @java.lang.Override @@ -469,14 +516,18 @@ public com.google.cloud.datastream.v1.ListStreamsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.ListStreamsResponse buildPartial() { - com.google.cloud.datastream.v1.ListStreamsResponse result = new com.google.cloud.datastream.v1.ListStreamsResponse(this); + com.google.cloud.datastream.v1.ListStreamsResponse result = + new com.google.cloud.datastream.v1.ListStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ListStreamsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ListStreamsResponse result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -504,38 +555,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ListStreamsResponse re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ListStreamsResponse) { - return mergeFrom((com.google.cloud.datastream.v1.ListStreamsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.ListStreamsResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +595,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsResponse other) { - if (other == com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance()) + return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -562,9 +615,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsResponse othe streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -611,36 +665,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.Stream m = - input.readMessage( - com.google.cloud.datastream.v1.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.Stream m = + input.readMessage( + com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +707,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamsBuilder_; + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> + streamsBuilder_; /** + * + * *
      * List of streams
      * 
@@ -679,6 +743,8 @@ public java.util.List getStreamsList() { } } /** + * + * *
      * List of streams
      * 
@@ -693,6 +759,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -707,14 +775,15 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { } } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder setStreams( - int index, com.google.cloud.datastream.v1.Stream value) { + public Builder setStreams(int index, com.google.cloud.datastream.v1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +797,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -746,6 +817,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -766,14 +839,15 @@ public Builder addStreams(com.google.cloud.datastream.v1.Stream value) { return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder addStreams( - int index, com.google.cloud.datastream.v1.Stream value) { + public Builder addStreams(int index, com.google.cloud.datastream.v1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +861,15 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public Builder addStreams( - com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder addStreams(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(builderForValue.build()); @@ -805,6 +880,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -823,6 +900,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -833,8 +912,7 @@ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -842,6 +920,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -859,6 +939,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -876,39 +958,44 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.Stream.Builder getStreamsBuilder( - int index) { + public com.google.cloud.datastream.v1.Stream.Builder getStreamsBuilder(int index) { return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1003,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -923,42 +1012,47 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( * repeated .google.cloud.datastream.v1.Stream streams = 1; */ public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Stream.getDefaultInstance()); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder( - int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.Stream.getDefaultInstance()); + public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder(int index) { + return getStreamsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Stream.getDefaultInstance()); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder>( + streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; @@ -966,19 +1060,21 @@ public com.google.cloud.datastream.v1.Stream.Builder addStreamsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -987,21 +1083,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1009,30 +1106,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1146,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1169,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1222,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1315,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1348,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ListStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ListStreamsResponse) private static final com.google.cloud.datastream.v1.ListStreamsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListStreamsResponse(); } @@ -1226,27 +1362,27 @@ public static com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1397,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java index 1ed1443cc9df..81f14af846c1 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface ListStreamsResponseOrBuilder extends +public interface ListStreamsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ListStreamsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
    * List of streams
    * 
@@ -25,6 +44,8 @@ public interface ListStreamsResponseOrBuilder extends */ com.google.cloud.datastream.v1.Stream getStreams(int index); /** + * + * *
    * List of streams
    * 
@@ -33,84 +54,102 @@ public interface ListStreamsResponseOrBuilder extends */ int getStreamsCount(); /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1.Stream streams = 1; */ - com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( - int index); + com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java similarity index 59% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java index 51e28fa69a99..fadd25ed4030 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for looking up a specific stream object by its source object
  * identifier.
@@ -11,53 +28,61 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest}
  */
-public final class LookupStreamObjectRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LookupStreamObjectRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.LookupStreamObjectRequest)
     LookupStreamObjectRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LookupStreamObjectRequest.newBuilder() to construct.
   private LookupStreamObjectRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LookupStreamObjectRequest() {
     parent_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LookupStreamObjectRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamProto
+        .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamProto
+        .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
+            com.google.cloud.datastream.v1.LookupStreamObjectRequest.class,
+            com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
   }
 
   public static final int PARENT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object parent_ = "";
   /**
+   *
+   *
    * 
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent stream that owns the collection of objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -99,11 +126,16 @@ public java.lang.String getParent() { public static final int SOURCE_OBJECT_IDENTIFIER_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObjectIdentifier_; /** + * + * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceObjectIdentifier field is set. */ @java.lang.Override @@ -111,30 +143,45 @@ public boolean hasSourceObjectIdentifier() { return sourceObjectIdentifier_ != null; } /** + * + * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceObjectIdentifier. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { - return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObjectIdentifier_; } /** + * + * *
    * Required. The source object identifier which maps to the stream object.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder() { - return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder() { + return sourceObjectIdentifier_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObjectIdentifier_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -146,8 +193,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -167,8 +213,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (sourceObjectIdentifier_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSourceObjectIdentifier()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSourceObjectIdentifier()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -178,19 +224,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.LookupStreamObjectRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.LookupStreamObjectRequest other = (com.google.cloud.datastream.v1.LookupStreamObjectRequest) obj; + com.google.cloud.datastream.v1.LookupStreamObjectRequest other = + (com.google.cloud.datastream.v1.LookupStreamObjectRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasSourceObjectIdentifier() != other.hasSourceObjectIdentifier()) return false; if (hasSourceObjectIdentifier()) { - if (!getSourceObjectIdentifier() - .equals(other.getSourceObjectIdentifier())) return false; + if (!getSourceObjectIdentifier().equals(other.getSourceObjectIdentifier())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -215,96 +260,104 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.LookupStreamObjectRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.LookupStreamObjectRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for looking up a specific stream object by its source object
    * identifier.
@@ -312,33 +365,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.LookupStreamObjectRequest)
       com.google.cloud.datastream.v1.LookupStreamObjectRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
+              com.google.cloud.datastream.v1.LookupStreamObjectRequest.class,
+              com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.LookupStreamObjectRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +405,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +426,11 @@ public com.google.cloud.datastream.v1.LookupStreamObjectRequest build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.LookupStreamObjectRequest buildPartial() {
-      com.google.cloud.datastream.v1.LookupStreamObjectRequest result = new com.google.cloud.datastream.v1.LookupStreamObjectRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1.LookupStreamObjectRequest result =
+          new com.google.cloud.datastream.v1.LookupStreamObjectRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -386,9 +441,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.LookupStreamObjectRequ
         result.parent_ = parent_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.sourceObjectIdentifier_ = sourceObjectIdentifierBuilder_ == null
-            ? sourceObjectIdentifier_
-            : sourceObjectIdentifierBuilder_.build();
+        result.sourceObjectIdentifier_ =
+            sourceObjectIdentifierBuilder_ == null
+                ? sourceObjectIdentifier_
+                : sourceObjectIdentifierBuilder_.build();
       }
     }
 
@@ -396,38 +452,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.LookupStreamObjectRequ
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.LookupStreamObjectRequest) {
-        return mergeFrom((com.google.cloud.datastream.v1.LookupStreamObjectRequest)other);
+        return mergeFrom((com.google.cloud.datastream.v1.LookupStreamObjectRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -435,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.LookupStreamObjectRequest other) {
-      if (other == com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance())
+        return this;
       if (!other.getParent().isEmpty()) {
         parent_ = other.parent_;
         bitField0_ |= 0x00000001;
@@ -470,24 +528,26 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              parent_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSourceObjectIdentifierFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                parent_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(
+                    getSourceObjectIdentifierFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -497,22 +557,27 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -521,20 +586,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -542,28 +610,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -573,17 +652,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent stream that owns the collection of objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -593,41 +678,61 @@ public Builder setParentBytes( private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObjectIdentifier_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> sourceObjectIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + sourceObjectIdentifierBuilder_; /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceObjectIdentifier field is set. */ public boolean hasSourceObjectIdentifier() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceObjectIdentifier. */ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier() { if (sourceObjectIdentifierBuilder_ == null) { - return sourceObjectIdentifier_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObjectIdentifier_; } else { return sourceObjectIdentifierBuilder_.getMessage(); } } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + public Builder setSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,11 +746,15 @@ public Builder setSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceOb return this; } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSourceObjectIdentifier( com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) { @@ -659,17 +768,23 @@ public Builder setSourceObjectIdentifier( return this; } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + public Builder mergeSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectIdentifierBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - sourceObjectIdentifier_ != null && - sourceObjectIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && sourceObjectIdentifier_ != null + && sourceObjectIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { getSourceObjectIdentifierBuilder().mergeFrom(value); } else { sourceObjectIdentifier_ = value; @@ -682,11 +797,15 @@ public Builder mergeSourceObjectIdentifier(com.google.cloud.datastream.v1.Source return this; } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSourceObjectIdentifier() { bitField0_ = (bitField0_ & ~0x00000002); @@ -699,55 +818,73 @@ public Builder clearSourceObjectIdentifier() { return this; } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceObjectIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder + getSourceObjectIdentifierBuilder() { bitField0_ |= 0x00000002; onChanged(); return getSourceObjectIdentifierFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder() { if (sourceObjectIdentifierBuilder_ != null) { return sourceObjectIdentifierBuilder_.getMessageOrBuilder(); } else { - return sourceObjectIdentifier_ == null ? - com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObjectIdentifier_; + return sourceObjectIdentifier_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObjectIdentifier_; } } /** + * + * *
      * Required. The source object identifier which maps to the stream object.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> getSourceObjectIdentifierFieldBuilder() { if (sourceObjectIdentifierBuilder_ == null) { - sourceObjectIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( - getSourceObjectIdentifier(), - getParentForChildren(), - isClean()); + sourceObjectIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( + getSourceObjectIdentifier(), getParentForChildren(), isClean()); sourceObjectIdentifier_ = null; } return sourceObjectIdentifierBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -757,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.LookupStreamObjectRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.LookupStreamObjectRequest) private static final com.google.cloud.datastream.v1.LookupStreamObjectRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.LookupStreamObjectRequest(); } @@ -771,27 +908,27 @@ public static com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupStreamObjectRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LookupStreamObjectRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -806,6 +943,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java new file mode 100644 index 000000000000..1727d277d665 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface LookupStreamObjectRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.LookupStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the sourceObjectIdentifier field is set. + */ + boolean hasSourceObjectIdentifier(); + /** + * + * + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The sourceObjectIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); + /** + * + * + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java index 54be20a98b2c..0e93e426cef6 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlColumn} */ -public final class MysqlColumn extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlColumn extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlColumn) MysqlColumnOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlColumn.newBuilder() to construct. private MysqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlColumn() { column_ = ""; dataType_ = ""; @@ -27,38 +45,43 @@ private MysqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlColumn.class, com.google.cloud.datastream.v1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1.MysqlColumn.class, + com.google.cloud.datastream.v1.MysqlColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -98,15 +121,19 @@ public java.lang.String getColumn() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -115,30 +142,30 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -149,11 +176,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -162,14 +192,18 @@ public int getLength() { } public static final int COLLATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object collation_ = ""; /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ @java.lang.Override @@ -178,29 +212,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -211,11 +245,14 @@ public java.lang.String getCollation() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_ = false; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -226,11 +263,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_ = false; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -241,11 +281,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_ = 0; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -254,6 +297,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -304,23 +347,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, primaryKey_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, nullable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -330,27 +369,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlColumn other = (com.google.cloud.datastream.v1.MysqlColumn) obj; - - if (!getColumn() - .equals(other.getColumn())) return false; - if (!getDataType() - .equals(other.getDataType())) return false; - if (getLength() - != other.getLength()) return false; - if (!getCollation() - .equals(other.getCollation())) return false; - if (getPrimaryKey() - != other.getPrimaryKey()) return false; - if (getNullable() - != other.getNullable()) return false; - if (getOrdinalPosition() - != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.MysqlColumn other = + (com.google.cloud.datastream.v1.MysqlColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (!getCollation().equals(other.getCollation())) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -371,11 +404,9 @@ public int hashCode() { hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -383,130 +414,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlColumn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlColumn) com.google.cloud.datastream.v1.MysqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlColumn.class, com.google.cloud.datastream.v1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1.MysqlColumn.class, + com.google.cloud.datastream.v1.MysqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlColumn.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,9 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; } @java.lang.Override @@ -543,8 +580,11 @@ public com.google.cloud.datastream.v1.MysqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlColumn buildPartial() { - com.google.cloud.datastream.v1.MysqlColumn result = new com.google.cloud.datastream.v1.MysqlColumn(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.MysqlColumn result = + new com.google.cloud.datastream.v1.MysqlColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -578,38 +618,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlColumn result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlColumn)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlColumn) other); } else { super.mergeFrom(other); return this; @@ -671,47 +712,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - collation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - nullable_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,22 +770,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object column_ = ""; /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -745,20 +797,21 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The bytes for column. */ - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -766,28 +819,35 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -797,17 +857,21 @@ public Builder clearColumn() { return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -817,19 +881,21 @@ public Builder setColumnBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -838,21 +904,22 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -860,30 +927,37 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { @@ -893,18 +967,22 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -912,13 +990,16 @@ public Builder setDataTypeBytes( return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -926,27 +1007,33 @@ public int getLength() { return length_; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -958,18 +1045,20 @@ public Builder clearLength() { private java.lang.Object collation_ = ""; /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -978,20 +1067,21 @@ public java.lang.String getCollation() { } } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return The bytes for collation. */ - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -999,28 +1089,35 @@ public java.lang.String getCollation() { } } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } collation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return This builder for chaining. */ public Builder clearCollation() { @@ -1030,17 +1127,21 @@ public Builder clearCollation() { return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); collation_ = value; bitField0_ |= 0x00000008; @@ -1048,13 +1149,16 @@ public Builder setCollationBytes( return this; } - private boolean primaryKey_ ; + private boolean primaryKey_; /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -1062,27 +1166,33 @@ public boolean getPrimaryKey() { return primaryKey_; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1092,13 +1202,16 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -1106,27 +1219,33 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1136,13 +1255,16 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_ ; + private int ordinalPosition_; /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -1150,27 +1272,33 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1179,9 +1307,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1191,12 +1319,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlColumn) private static final com.google.cloud.datastream.v1.MysqlColumn DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlColumn(); } @@ -1205,27 +1333,27 @@ public static com.google.cloud.datastream.v1.MysqlColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1240,6 +1368,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java index 56a7195e6127..e99731d1f489 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java @@ -1,110 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlColumnOrBuilder extends +public interface MysqlColumnOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlColumn) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ java.lang.String getColumn(); /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ - com.google.protobuf.ByteString - getColumnBytes(); + com.google.protobuf.ByteString getColumnBytes(); /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The dataType. */ java.lang.String getDataType(); /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - com.google.protobuf.ByteString - getDataTypeBytes(); + com.google.protobuf.ByteString getDataTypeBytes(); /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ int getLength(); /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ java.lang.String getCollation(); /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The bytes for collation. */ - com.google.protobuf.ByteString - getCollationBytes(); + com.google.protobuf.ByteString getCollationBytes(); /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ boolean getPrimaryKey(); /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ boolean getNullable(); /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java index 6cce2361f24c..db8824f4bfd8 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL database.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlDatabase} */ -public final class MysqlDatabase extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlDatabase extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlDatabase) MysqlDatabaseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlDatabase.newBuilder() to construct. private MysqlDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlDatabase() { database_ = ""; mysqlTables_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private MysqlDatabase() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlDatabase(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlDatabase.class, com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1.MysqlDatabase.class, + com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); } public static final int DATABASE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
    * Database name.
    * 
* * string database = 1; + * * @return The database. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * *
    * Database name.
    * 
* * string database = 1; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getDatabase() { } public static final int MYSQL_TABLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -111,6 +137,8 @@ public java.util.List getMysqlTablesL return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -118,11 +146,13 @@ public java.util.List getMysqlTablesL * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlTablesOrBuilderList() { return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -134,6 +164,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -145,6 +177,8 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -152,12 +186,12 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index) { return mysqlTables_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); } for (int i = 0; i < mysqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, mysqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlDatabase)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlDatabase other = (com.google.cloud.datastream.v1.MysqlDatabase) obj; + com.google.cloud.datastream.v1.MysqlDatabase other = + (com.google.cloud.datastream.v1.MysqlDatabase) obj; - if (!getDatabase() - .equals(other.getDatabase())) return false; - if (!getMysqlTablesList() - .equals(other.getMysqlTablesList())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getMysqlTablesList().equals(other.getMysqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +265,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlDatabase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlDatabase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlDatabase} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlDatabase) com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlDatabase.class, com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1.MysqlDatabase.class, + com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlDatabase.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; } @java.lang.Override @@ -395,9 +432,12 @@ public com.google.cloud.datastream.v1.MysqlDatabase build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlDatabase buildPartial() { - com.google.cloud.datastream.v1.MysqlDatabase result = new com.google.cloud.datastream.v1.MysqlDatabase(this); + com.google.cloud.datastream.v1.MysqlDatabase result = + new com.google.cloud.datastream.v1.MysqlDatabase(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +465,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlDatabase result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlDatabase) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlDatabase)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlDatabase) other); } else { super.mergeFrom(other); return this; @@ -488,9 +529,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlDatabase other) { mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlTablesFieldBuilder() : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlTablesFieldBuilder() + : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -522,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.MysqlTable m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlTable.parser(), - extensionRegistry); - if (mysqlTablesBuilder_ == null) { - ensureMysqlTablesIsMutable(); - mysqlTables_.add(m); - } else { - mysqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.MysqlTable m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlTable.parser(), extensionRegistry); + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(m); + } else { + mysqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,22 +599,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object database_ = ""; /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -579,20 +626,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -600,28 +648,35 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -631,17 +686,21 @@ public Builder clearDatabase() { return this; } /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -650,18 +709,25 @@ public Builder setDatabaseBytes( } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlTables_ = new java.util.ArrayList(mysqlTables_); + mysqlTables_ = + new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder> mysqlTablesBuilder_; + com.google.cloud.datastream.v1.MysqlTable, + com.google.cloud.datastream.v1.MysqlTable.Builder, + com.google.cloud.datastream.v1.MysqlTableOrBuilder> + mysqlTablesBuilder_; /** + * + * *
      * Tables in the database.
      * 
@@ -676,6 +742,8 @@ public java.util.List getMysqlTablesL } } /** + * + * *
      * Tables in the database.
      * 
@@ -690,6 +758,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -704,14 +774,15 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { } } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public Builder setMysqlTables( - int index, com.google.cloud.datastream.v1.MysqlTable value) { + public Builder setMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTable value) { if (mysqlTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -725,6 +796,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -743,6 +816,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -763,14 +838,15 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1.MysqlTable value) { return this; } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public Builder addMysqlTables( - int index, com.google.cloud.datastream.v1.MysqlTable value) { + public Builder addMysqlTables(int index, com.google.cloud.datastream.v1.MysqlTable value) { if (mysqlTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -784,6 +860,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -802,6 +880,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -820,6 +900,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -830,8 +912,7 @@ public Builder addAllMysqlTables( java.lang.Iterable values) { if (mysqlTablesBuilder_ == null) { ensureMysqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mysqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlTables_); onChanged(); } else { mysqlTablesBuilder_.addAllMessages(values); @@ -839,6 +920,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -856,6 +939,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -873,39 +958,44 @@ public Builder removeMysqlTables(int index) { return this; } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTable.Builder getMysqlTablesBuilder( - int index) { + public com.google.cloud.datastream.v1.MysqlTable.Builder getMysqlTablesBuilder(int index) { return getMysqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index) { if (mysqlTablesBuilder_ == null) { - return mysqlTables_.get(index); } else { + return mysqlTables_.get(index); + } else { return mysqlTablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesOrBuilderList() { + public java.util.List + getMysqlTablesOrBuilderList() { if (mysqlTablesBuilder_ != null) { return mysqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -913,6 +1003,8 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde } } /** + * + * *
      * Tables in the database.
      * 
@@ -920,49 +1012,55 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder() { - return getMysqlTablesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder( - int index) { - return getMysqlTablesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); + public com.google.cloud.datastream.v1.MysqlTable.Builder addMysqlTablesBuilder(int index) { + return getMysqlTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesBuilderList() { + public java.util.List + getMysqlTablesBuilderList() { return getMysqlTablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder> + com.google.cloud.datastream.v1.MysqlTable, + com.google.cloud.datastream.v1.MysqlTable.Builder, + com.google.cloud.datastream.v1.MysqlTableOrBuilder> getMysqlTablesFieldBuilder() { if (mysqlTablesBuilder_ == null) { - mysqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlTable, com.google.cloud.datastream.v1.MysqlTable.Builder, com.google.cloud.datastream.v1.MysqlTableOrBuilder>( - mysqlTables_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + mysqlTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlTable, + com.google.cloud.datastream.v1.MysqlTable.Builder, + com.google.cloud.datastream.v1.MysqlTableOrBuilder>( + mysqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); mysqlTables_ = null; } return mysqlTablesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlDatabase) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlDatabase) private static final com.google.cloud.datastream.v1.MysqlDatabase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlDatabase(); } @@ -986,27 +1084,27 @@ public static com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlDatabase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlDatabase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1119,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java index 95613a1ad18b..ab3edfc2da4b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlDatabaseOrBuilder extends +public interface MysqlDatabaseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlDatabase) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Database name.
    * 
* * string database = 1; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * Database name.
    * 
* * string database = 1; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - java.util.List - getMysqlTablesList(); + java.util.List getMysqlTablesList(); /** + * + * *
    * Tables in the database.
    * 
@@ -45,6 +69,8 @@ public interface MysqlDatabaseOrBuilder extends */ com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index); /** + * + * *
    * Tables in the database.
    * 
@@ -53,21 +79,24 @@ public interface MysqlDatabaseOrBuilder extends */ int getMysqlTablesCount(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - java.util.List + java.util.List getMysqlTablesOrBuilderList(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; */ - com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder( - int index); + com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java index 0a0e7bd13252..11421931ef78 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} */ -public final class MysqlProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlProfile) MysqlProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlProfile.newBuilder() to construct. private MysqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlProfile() { hostname_ = ""; username_ = ""; @@ -27,38 +45,43 @@ private MysqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlProfile.class, com.google.cloud.datastream.v1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1.MysqlProfile.class, + com.google.cloud.datastream.v1.MysqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -100,11 +123,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -113,14 +139,18 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -129,29 +159,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -160,14 +190,20 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -176,29 +212,31 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -209,11 +247,14 @@ public java.lang.String getPassword() { public static final int SSL_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datastream.v1.MysqlSslConfig sslConfig_; /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -221,18 +262,25 @@ public boolean hasSslConfig() { return sslConfig_ != null; } /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { - return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
@@ -241,10 +289,13 @@ public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,8 +307,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -286,8 +336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -296,8 +345,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (sslConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSslConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSslConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,25 +355,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlProfile other = (com.google.cloud.datastream.v1.MysqlProfile) obj; + com.google.cloud.datastream.v1.MysqlProfile other = + (com.google.cloud.datastream.v1.MysqlProfile) obj; - if (!getHostname() - .equals(other.getHostname())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (hasSslConfig() != other.hasSslConfig()) return false; if (hasSslConfig()) { - if (!getSslConfig() - .equals(other.getSslConfig())) return false; + if (!getSslConfig().equals(other.getSslConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -355,130 +399,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlProfile) com.google.cloud.datastream.v1.MysqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlProfile.class, com.google.cloud.datastream.v1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1.MysqlProfile.class, + com.google.cloud.datastream.v1.MysqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlProfile.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; } @java.lang.Override @@ -517,8 +567,11 @@ public com.google.cloud.datastream.v1.MysqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlProfile buildPartial() { - com.google.cloud.datastream.v1.MysqlProfile result = new com.google.cloud.datastream.v1.MysqlProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.MysqlProfile result = + new com.google.cloud.datastream.v1.MysqlProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -538,9 +591,7 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlProfile result) { result.password_ = password_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null - ? sslConfig_ - : sslConfigBuilder_.build(); + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); } } @@ -548,38 +599,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlProfile result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlProfile)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlProfile) other); } else { super.mergeFrom(other); return this; @@ -635,39 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getSslConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -677,22 +733,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -701,20 +760,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -722,28 +782,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -753,17 +820,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -771,13 +842,16 @@ public Builder setHostnameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -785,27 +859,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -817,18 +897,20 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -837,20 +919,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -858,28 +941,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -889,17 +979,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -909,18 +1003,22 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -929,20 +1027,23 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -950,28 +1051,39 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -981,17 +1093,23 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1001,34 +1119,47 @@ public Builder setPasswordBytes( private com.google.cloud.datastream.v1.MysqlSslConfig sslConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> sslConfigBuilder_; + com.google.cloud.datastream.v1.MysqlSslConfig, + com.google.cloud.datastream.v1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> + sslConfigBuilder_; /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ public boolean hasSslConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ public com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig() { if (sslConfigBuilder_ == null) { - return sslConfig_ == null ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } else { return sslConfigBuilder_.getMessage(); } } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1049,6 +1180,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1067,6 +1200,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1075,9 +1210,9 @@ public Builder setSslConfig( */ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) { if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - sslConfig_ != null && - sslConfig_ != com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && sslConfig_ != null + && sslConfig_ != com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) { getSslConfigBuilder().mergeFrom(value); } else { sslConfig_ = value; @@ -1090,6 +1225,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig valu return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1107,6 +1244,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1119,6 +1258,8 @@ public com.google.cloud.datastream.v1.MysqlSslConfig.Builder getSslConfigBuilder return getSslConfigFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1129,11 +1270,14 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil if (sslConfigBuilder_ != null) { return sslConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null ? - com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1141,21 +1285,24 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> + com.google.cloud.datastream.v1.MysqlSslConfig, + com.google.cloud.datastream.v1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder> getSslConfigFieldBuilder() { if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSslConfig, com.google.cloud.datastream.v1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder>( - getSslConfig(), - getParentForChildren(), - isClean()); + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSslConfig, + com.google.cloud.datastream.v1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); sslConfig_ = null; } return sslConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1165,12 +1312,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlProfile) private static final com.google.cloud.datastream.v1.MysqlProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlProfile(); } @@ -1179,27 +1326,27 @@ public static com.google.cloud.datastream.v1.MysqlProfile getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1214,6 +1361,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java index 588bbd088e73..389974a267b2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java @@ -1,101 +1,147 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlProfileOrBuilder extends +public interface MysqlProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ boolean hasSslConfig(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ com.google.cloud.datastream.v1.MysqlSslConfig getSslConfig(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java index cbb6a7e26a0b..fa7651656591 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL database structure
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlRdbms} */ -public final class MysqlRdbms extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlRdbms extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlRdbms) MysqlRdbmsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlRdbms.newBuilder() to construct. private MysqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlRdbms() { mysqlDatabases_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlRdbms.class, com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1.MysqlRdbms.class, + com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); } public static final int MYSQL_DATABASES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List mysqlDatabases_; /** + * + * *
    * Mysql databases on the server
    * 
@@ -63,6 +85,8 @@ public java.util.List getMysqlData return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -70,11 +94,13 @@ public java.util.List getMysqlData * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlDatabasesOrBuilderList() { return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -86,6 +112,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -110,6 +140,7 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +152,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -136,8 +166,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mysqlDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, mysqlDatabases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mysqlDatabases_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlRdbms other = (com.google.cloud.datastream.v1.MysqlRdbms) obj; + com.google.cloud.datastream.v1.MysqlRdbms other = + (com.google.cloud.datastream.v1.MysqlRdbms) obj; - if (!getMysqlDatabasesList() - .equals(other.getMysqlDatabasesList())) return false; + if (!getMysqlDatabasesList().equals(other.getMysqlDatabasesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,130 +205,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database structure
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlRdbms} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlRdbms) com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlRdbms.class, com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1.MysqlRdbms.class, + com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlRdbms.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; } @java.lang.Override @@ -336,9 +371,12 @@ public com.google.cloud.datastream.v1.MysqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms buildPartial() { - com.google.cloud.datastream.v1.MysqlRdbms result = new com.google.cloud.datastream.v1.MysqlRdbms(this); + com.google.cloud.datastream.v1.MysqlRdbms result = + new com.google.cloud.datastream.v1.MysqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -363,38 +401,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlRdbms result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) other); } else { super.mergeFrom(other); return this; @@ -421,9 +460,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlRdbms other) { mysqlDatabasesBuilder_ = null; mysqlDatabases_ = other.mysqlDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlDatabasesFieldBuilder() : null; + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlDatabasesFieldBuilder() + : null; } else { mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); } @@ -455,25 +495,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.MysqlDatabase m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlDatabase.parser(), - extensionRegistry); - if (mysqlDatabasesBuilder_ == null) { - ensureMysqlDatabasesIsMutable(); - mysqlDatabases_.add(m); - } else { - mysqlDatabasesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.MysqlDatabase m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlDatabase.parser(), extensionRegistry); + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(m); + } else { + mysqlDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,21 +524,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List mysqlDatabases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = new java.util.ArrayList(mysqlDatabases_); + mysqlDatabases_ = + new java.util.ArrayList(mysqlDatabases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> mysqlDatabasesBuilder_; + com.google.cloud.datastream.v1.MysqlDatabase, + com.google.cloud.datastream.v1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> + mysqlDatabasesBuilder_; /** + * + * *
      * Mysql databases on the server
      * 
@@ -512,6 +561,8 @@ public java.util.List getMysqlData } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -526,6 +577,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -540,6 +593,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -561,6 +616,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -579,6 +636,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -599,6 +658,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1.MysqlDatabase va return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -620,6 +681,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -638,6 +701,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -656,6 +721,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -666,8 +733,7 @@ public Builder addAllMysqlDatabases( java.lang.Iterable values) { if (mysqlDatabasesBuilder_ == null) { ensureMysqlDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mysqlDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlDatabases_); onChanged(); } else { mysqlDatabasesBuilder_.addAllMessages(values); @@ -675,6 +741,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -692,6 +760,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -709,6 +779,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -720,6 +792,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -729,19 +803,22 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( int index) { if (mysqlDatabasesBuilder_ == null) { - return mysqlDatabases_.get(index); } else { + return mysqlDatabases_.get(index); + } else { return mysqlDatabasesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesOrBuilderList() { + public java.util.List + getMysqlDatabasesOrBuilderList() { if (mysqlDatabasesBuilder_ != null) { return mysqlDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +826,8 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -756,10 +835,12 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBuilder() { - return getMysqlDatabasesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -768,26 +849,34 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBui */ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBuilder( int index) { - return getMysqlDatabasesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()); } /** + * + * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesBuilderList() { + public java.util.List + getMysqlDatabasesBuilderList() { return getMysqlDatabasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> + com.google.cloud.datastream.v1.MysqlDatabase, + com.google.cloud.datastream.v1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder> getMysqlDatabasesFieldBuilder() { if (mysqlDatabasesBuilder_ == null) { - mysqlDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlDatabase, com.google.cloud.datastream.v1.MysqlDatabase.Builder, com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder>( + mysqlDatabasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlDatabase, + com.google.cloud.datastream.v1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder>( mysqlDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -796,9 +885,9 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBui } return mysqlDatabasesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +897,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlRdbms) private static final com.google.cloud.datastream.v1.MysqlRdbms DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlRdbms(); } @@ -822,27 +911,27 @@ public static com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +946,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java similarity index 62% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java index b9ba684bb8b5..3ede5e208825 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlRdbmsOrBuilder extends +public interface MysqlRdbmsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlRdbms) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - java.util.List - getMysqlDatabasesList(); + java.util.List getMysqlDatabasesList(); /** + * + * *
    * Mysql databases on the server
    * 
@@ -25,6 +44,8 @@ public interface MysqlRdbmsOrBuilder extends */ com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index); /** + * + * *
    * Mysql databases on the server
    * 
@@ -33,21 +54,24 @@ public interface MysqlRdbmsOrBuilder extends */ int getMysqlDatabasesCount(); /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - java.util.List + java.util.List getMysqlDatabasesOrBuilderList(); /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; */ - com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( - int index); + com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index 51d0cd1b5111..bc5d433af9ea 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} */ -public final class MysqlSourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSourceConfig) MysqlSourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlSourceConfig.newBuilder() to construct. private MysqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlSourceConfig() { - } + + private MysqlSourceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSourceConfig.class, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSourceConfig.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : includeObjects_; } /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
@@ -82,17 +110,22 @@ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.MysqlRdbms excludeObjects_; /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -100,18 +133,25 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : excludeObjects_; } /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
@@ -120,18 +160,23 @@ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : excludeObjects_; } public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; private int maxConcurrentCdcTasks_ = 0; /** + * + * *
    * Maximum number of concurrent CDC tasks. The number should be non negative.
    * If not set (or set to 0), the system's default value will be used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -142,6 +187,8 @@ public int getMaxConcurrentCdcTasks() { public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; private int maxConcurrentBackfillTasks_ = 0; /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be non
    * negative. If not set (or set to 0), the system's default value will be
@@ -149,6 +196,7 @@ public int getMaxConcurrentCdcTasks() {
    * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -157,6 +205,7 @@ public int getMaxConcurrentBackfillTasks() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -168,8 +217,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -192,20 +240,17 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } if (maxConcurrentCdcTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxConcurrentCdcTasks_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); } if (maxConcurrentBackfillTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxConcurrentBackfillTasks_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,27 +260,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlSourceConfig other = (com.google.cloud.datastream.v1.MysqlSourceConfig) obj; + com.google.cloud.datastream.v1.MysqlSourceConfig other = + (com.google.cloud.datastream.v1.MysqlSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects() - .equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects() - .equals(other.getExcludeObjects())) return false; + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } - if (getMaxConcurrentCdcTasks() - != other.getMaxConcurrentCdcTasks()) return false; - if (getMaxConcurrentBackfillTasks() - != other.getMaxConcurrentBackfillTasks()) return false; + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -264,130 +306,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSourceConfig) com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSourceConfig.class, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSourceConfig.class, + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +456,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; } @java.lang.Override @@ -429,8 +477,11 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1.MysqlSourceConfig result = new com.google.cloud.datastream.v1.MysqlSourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.MysqlSourceConfig result = + new com.google.cloud.datastream.v1.MysqlSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -438,14 +489,12 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.MysqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = includeObjectsBuilder_ == null - ? includeObjects_ - : includeObjectsBuilder_.build(); + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = excludeObjectsBuilder_ == null - ? excludeObjects_ - : excludeObjectsBuilder_.build(); + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; @@ -459,38 +508,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlSourceConfig resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig) other); } else { super.mergeFrom(other); return this; @@ -498,7 +548,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) + return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -537,36 +588,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIncludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExcludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxConcurrentCdcTasks_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - maxConcurrentBackfillTasks_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -576,38 +628,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1.MysqlRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> includeObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + includeObjectsBuilder_; /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return The includeObjects. */ public com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -628,6 +694,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -646,6 +714,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -654,9 +724,9 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - includeObjects_ != null && - includeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -669,6 +739,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -686,6 +758,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -698,6 +772,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getIncludeObjectsBuilde return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -708,11 +784,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null ? - com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : includeObjects_; } } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -720,14 +799,17 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( - getIncludeObjects(), - getParentForChildren(), - isClean()); + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -735,34 +817,47 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui private com.google.cloud.datastream.v1.MysqlRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> excludeObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + excludeObjectsBuilder_; /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -783,6 +878,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -801,6 +898,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -809,9 +908,9 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - excludeObjects_ != null && - excludeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -824,6 +923,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -841,6 +942,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -853,6 +956,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getExcludeObjectsBuilde return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -863,11 +968,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null ? - com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() + : excludeObjects_; } } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -875,27 +983,33 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( - getExcludeObjects(), - getParentForChildren(), - isClean()); + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; } - private int maxConcurrentCdcTasks_ ; + private int maxConcurrentCdcTasks_; /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -903,29 +1017,35 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @param value The maxConcurrentCdcTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentCdcTasks(int value) { - + maxConcurrentCdcTasks_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non negative.
      * If not set (or set to 0), the system's default value will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return This builder for chaining. */ public Builder clearMaxConcurrentCdcTasks() { @@ -935,8 +1055,10 @@ public Builder clearMaxConcurrentCdcTasks() { return this; } - private int maxConcurrentBackfillTasks_ ; + private int maxConcurrentBackfillTasks_; /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -944,6 +1066,7 @@ public Builder clearMaxConcurrentCdcTasks() {
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -951,6 +1074,8 @@ public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -958,17 +1083,20 @@ public int getMaxConcurrentBackfillTasks() {
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @param value The maxConcurrentBackfillTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentBackfillTasks(int value) { - + maxConcurrentBackfillTasks_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -976,6 +1104,7 @@ public Builder setMaxConcurrentBackfillTasks(int value) {
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return This builder for chaining. */ public Builder clearMaxConcurrentBackfillTasks() { @@ -984,9 +1113,9 @@ public Builder clearMaxConcurrentBackfillTasks() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -996,12 +1125,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSourceConfig) private static final com.google.cloud.datastream.v1.MysqlSourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSourceConfig(); } @@ -1010,27 +1139,27 @@ public static com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java similarity index 76% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index 59c7ae213b36..9f5406854cd5 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlSourceConfigOrBuilder extends +public interface MysqlSourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + * * @return The includeObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getIncludeObjects(); /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
@@ -35,24 +59,32 @@ public interface MysqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getExcludeObjects(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
@@ -62,17 +94,22 @@ public interface MysqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** + * + * *
    * Maximum number of concurrent CDC tasks. The number should be non negative.
    * If not set (or set to 0), the system's default value will be used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ int getMaxConcurrentCdcTasks(); /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be non
    * negative. If not set (or set to 0), the system's default value will be
@@ -80,6 +117,7 @@ public interface MysqlSourceConfigOrBuilder extends
    * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ int getMaxConcurrentBackfillTasks(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java similarity index 74% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java index e118815d52c5..b7ca66a6f088 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig} */ -public final class MysqlSslConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSslConfig) MysqlSslConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlSslConfig.newBuilder() to construct. private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlSslConfig() { clientKey_ = ""; clientCertificate_ = ""; @@ -27,33 +45,37 @@ private MysqlSslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlSslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSslConfig.class, com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSslConfig.class, + com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); } public static final int CLIENT_KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object clientKey_ = ""; /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -84,16 +108,15 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -104,11 +127,14 @@ public java.lang.String getClientKey() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 2; private boolean clientKeySet_ = false; /** + * + * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ @java.lang.Override @@ -117,9 +143,12 @@ public boolean getClientKeySet() { } public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object clientCertificate_ = ""; /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -127,6 +156,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -135,14 +165,15 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -150,16 +181,15 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -170,11 +200,14 @@ public java.lang.String getClientCertificate() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 4; private boolean clientCertificateSet_ = false; /** + * + * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ @java.lang.Override @@ -183,15 +216,19 @@ public boolean getClientCertificateSet() { } public static final int CA_CERTIFICATE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object caCertificate_ = ""; /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source
    * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ @java.lang.Override @@ -200,30 +237,30 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source
    * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -234,11 +271,14 @@ public java.lang.String getCaCertificate() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 6; private boolean caCertificateSet_ = false; /** + * + * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ @java.lang.Override @@ -247,6 +287,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,8 +299,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientKey_); } @@ -291,22 +331,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientKey_); } if (clientKeySet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, clientKeySet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, clientKeySet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clientCertificate_); } if (clientCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, clientCertificateSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, clientCertificateSet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, caCertificate_); } if (caCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, caCertificateSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, caCertificateSet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,25 +353,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.MysqlSslConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.MysqlSslConfig other = (com.google.cloud.datastream.v1.MysqlSslConfig) obj; - - if (!getClientKey() - .equals(other.getClientKey())) return false; - if (getClientKeySet() - != other.getClientKeySet()) return false; - if (!getClientCertificate() - .equals(other.getClientCertificate())) return false; - if (getClientCertificateSet() - != other.getClientCertificateSet()) return false; - if (!getCaCertificate() - .equals(other.getCaCertificate())) return false; - if (getCaCertificateSet() - != other.getCaCertificateSet()) return false; + com.google.cloud.datastream.v1.MysqlSslConfig other = + (com.google.cloud.datastream.v1.MysqlSslConfig) obj; + + if (!getClientKey().equals(other.getClientKey())) return false; + if (getClientKeySet() != other.getClientKeySet()) return false; + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (getClientCertificateSet() != other.getClientCertificateSet()) return false; + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() != other.getCaCertificateSet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,147 +381,150 @@ public int hashCode() { hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; hash = (53 * hash) + getClientKey().hashCode(); hash = (37 * hash) + CLIENT_KEY_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientKeySet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientKeySet()); hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getClientCertificate().hashCode(); hash = (37 * hash) + CLIENT_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientCertificateSet()); hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCaCertificate().hashCode(); hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.MysqlSslConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlSslConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlSslConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlSslConfig) com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlSslConfig.class, com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1.MysqlSslConfig.class, + com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; } @java.lang.Override @@ -525,8 +560,11 @@ public com.google.cloud.datastream.v1.MysqlSslConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSslConfig buildPartial() { - com.google.cloud.datastream.v1.MysqlSslConfig result = new com.google.cloud.datastream.v1.MysqlSslConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.MysqlSslConfig result = + new com.google.cloud.datastream.v1.MysqlSslConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -557,38 +595,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlSslConfig result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlSslConfig) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlSslConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlSslConfig) other); } else { super.mergeFrom(other); return this; @@ -647,42 +686,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - clientKeySet_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - clientCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - caCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - caCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + clientKeySet_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + clientCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + caCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -692,10 +738,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object clientKey_ = ""; /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -703,13 +752,13 @@ public Builder mergeFrom(
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -718,6 +767,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -725,15 +776,14 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -741,6 +791,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -748,18 +800,22 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -767,6 +823,7 @@ public Builder setClientKey(
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKey() { @@ -776,6 +833,8 @@ public Builder clearClientKey() { return this; } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -783,12 +842,14 @@ public Builder clearClientKey() {
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientKey_ = value; bitField0_ |= 0x00000001; @@ -796,13 +857,16 @@ public Builder setClientKeyBytes( return this; } - private boolean clientKeySet_ ; + private boolean clientKeySet_; /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ @java.lang.Override @@ -810,27 +874,33 @@ public boolean getClientKeySet() { return clientKeySet_; } /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clientKeySet to set. * @return This builder for chaining. */ public Builder setClientKeySet(boolean value) { - + clientKeySet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKeySet() { @@ -842,6 +912,8 @@ public Builder clearClientKeySet() { private java.lang.Object clientCertificate_ = ""; /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -849,13 +921,13 @@ public Builder clearClientKeySet() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -864,6 +936,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -871,15 +945,14 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -887,6 +960,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -894,18 +969,22 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientCertificate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -913,6 +992,7 @@ public Builder setClientCertificate(
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificate() { @@ -922,6 +1002,8 @@ public Builder clearClientCertificate() { return this; } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -929,12 +1011,14 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientCertificate_ = value; bitField0_ |= 0x00000004; @@ -942,13 +1026,16 @@ public Builder setClientCertificateBytes( return this; } - private boolean clientCertificateSet_ ; + private boolean clientCertificateSet_; /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ @java.lang.Override @@ -956,27 +1043,33 @@ public boolean getClientCertificateSet() { return clientCertificateSet_; } /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clientCertificateSet to set. * @return This builder for chaining. */ public Builder setClientCertificateSet(boolean value) { - + clientCertificateSet_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificateSet() { @@ -988,19 +1081,21 @@ public Builder clearClientCertificateSet() { private java.lang.Object caCertificate_ = ""; /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source
      * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1009,21 +1104,22 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source
      * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1031,30 +1127,37 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source
      * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } caCertificate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source
      * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCaCertificate() { @@ -1064,18 +1167,22 @@ public Builder clearCaCertificate() { return this; } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source
      * database server's certificate.
      * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); caCertificate_ = value; bitField0_ |= 0x00000010; @@ -1083,13 +1190,16 @@ public Builder setCaCertificateBytes( return this; } - private boolean caCertificateSet_ ; + private boolean caCertificateSet_; /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ @java.lang.Override @@ -1097,27 +1207,33 @@ public boolean getCaCertificateSet() { return caCertificateSet_; } /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The caCertificateSet to set. * @return This builder for chaining. */ public Builder setCaCertificateSet(boolean value) { - + caCertificateSet_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCaCertificateSet() { @@ -1126,9 +1242,9 @@ public Builder clearCaCertificateSet() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1138,12 +1254,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlSslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlSslConfig) private static final com.google.cloud.datastream.v1.MysqlSslConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlSslConfig(); } @@ -1152,27 +1268,27 @@ public static com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1187,6 +1303,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java index 907d40853502..07af8fd62db3 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface MysqlSslConfigOrBuilder extends +public interface MysqlSslConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlSslConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -15,10 +33,13 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ java.lang.String getClientKey(); /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -26,22 +47,27 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString - getClientKeyBytes(); + com.google.protobuf.ByteString getClientKeyBytes(); /** + * + * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ boolean getClientKeySet(); /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -49,10 +75,13 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -60,49 +89,60 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString - getClientCertificateBytes(); + com.google.protobuf.ByteString getClientCertificateBytes(); /** + * + * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ boolean getClientCertificateSet(); /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source
    * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source
    * database server's certificate.
    * 
* * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString - getCaCertificateBytes(); + com.google.protobuf.ByteString getCaCertificateBytes(); /** + * + * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ boolean getCaCertificateSet(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index 11b2df81aa33..5188a6485852 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * MySQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlTable} */ -public final class MysqlTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlTable) MysqlTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlTable.newBuilder() to construct. private MysqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlTable() { table_ = ""; mysqlColumns_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private MysqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlTable.class, com.google.cloud.datastream.v1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1.MysqlTable.class, + com.google.cloud.datastream.v1.MysqlTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTable() { } public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List mysqlColumns_; /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -113,6 +139,8 @@ public java.util.List getMysqlColumn
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -122,11 +150,13 @@ public java.util.List getMysqlColumn
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMysqlColumnsOrBuilderList() {
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -140,6 +170,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -153,6 +185,8 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
     return mysqlColumns_.get(index);
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -162,12 +196,12 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
-      int index) {
+  public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index) {
     return mysqlColumns_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -179,8 +213,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -200,8 +233,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < mysqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, mysqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,17 +243,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.MysqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.MysqlTable other = (com.google.cloud.datastream.v1.MysqlTable) obj;
+    com.google.cloud.datastream.v1.MysqlTable other =
+        (com.google.cloud.datastream.v1.MysqlTable) obj;
 
-    if (!getTable()
-        .equals(other.getTable())) return false;
-    if (!getMysqlColumnsList()
-        .equals(other.getMysqlColumnsList())) return false;
+    if (!getTable().equals(other.getTable())) return false;
+    if (!getMysqlColumnsList().equals(other.getMysqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -244,130 +275,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.MysqlTable parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.MysqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1.MysqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * MySQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.MysqlTable} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.MysqlTable) com.google.cloud.datastream.v1.MysqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.MysqlTable.class, com.google.cloud.datastream.v1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1.MysqlTable.class, + com.google.cloud.datastream.v1.MysqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.MysqlTable.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; } @java.lang.Override @@ -405,9 +442,12 @@ public com.google.cloud.datastream.v1.MysqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlTable buildPartial() { - com.google.cloud.datastream.v1.MysqlTable result = new com.google.cloud.datastream.v1.MysqlTable(this); + com.google.cloud.datastream.v1.MysqlTable result = + new com.google.cloud.datastream.v1.MysqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -435,38 +475,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.MysqlTable result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.MysqlTable) { - return mergeFrom((com.google.cloud.datastream.v1.MysqlTable)other); + return mergeFrom((com.google.cloud.datastream.v1.MysqlTable) other); } else { super.mergeFrom(other); return this; @@ -498,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlTable other) { mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlColumnsFieldBuilder() : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlColumnsFieldBuilder() + : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -532,30 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.MysqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1.MysqlColumn.parser(), - extensionRegistry); - if (mysqlColumnsBuilder_ == null) { - ensureMysqlColumnsIsMutable(); - mysqlColumns_.add(m); - } else { - mysqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.MysqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1.MysqlColumn.parser(), extensionRegistry); + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(m); + } else { + mysqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,22 +609,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object table_ = ""; /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -589,20 +636,21 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -610,28 +658,35 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -641,17 +696,21 @@ public Builder clearTable() { return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -660,18 +719,25 @@ public Builder setTableBytes( } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); + mysqlColumns_ = + new java.util.ArrayList(mysqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder> mysqlColumnsBuilder_; + com.google.cloud.datastream.v1.MysqlColumn, + com.google.cloud.datastream.v1.MysqlColumn.Builder, + com.google.cloud.datastream.v1.MysqlColumnOrBuilder> + mysqlColumnsBuilder_; /** + * + * *
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -688,6 +754,8 @@ public java.util.List getMysqlColumn
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -704,6 +772,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -720,6 +790,8 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -728,8 +800,7 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public Builder setMysqlColumns(
-        int index, com.google.cloud.datastream.v1.MysqlColumn value) {
+    public Builder setMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlColumn value) {
       if (mysqlColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -743,6 +814,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -763,6 +836,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -785,6 +860,8 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value)
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -793,8 +870,7 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value)
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public Builder addMysqlColumns(
-        int index, com.google.cloud.datastream.v1.MysqlColumn value) {
+    public Builder addMysqlColumns(int index, com.google.cloud.datastream.v1.MysqlColumn value) {
       if (mysqlColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -808,6 +884,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -828,6 +906,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -848,6 +928,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -860,8 +942,7 @@ public Builder addAllMysqlColumns(
         java.lang.Iterable values) {
       if (mysqlColumnsBuilder_ == null) {
         ensureMysqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, mysqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlColumns_);
         onChanged();
       } else {
         mysqlColumnsBuilder_.addAllMessages(values);
@@ -869,6 +950,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -888,6 +971,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -907,6 +992,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -915,11 +1002,12 @@ public Builder removeMysqlColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder(
-        int index) {
+    public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder(int index) {
       return getMysqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -928,14 +1016,16 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder getMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
-        int index) {
+    public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index) {
       if (mysqlColumnsBuilder_ == null) {
-        return mysqlColumns_.get(index);  } else {
+        return mysqlColumns_.get(index);
+      } else {
         return mysqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -944,8 +1034,8 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List 
-         getMysqlColumnsOrBuilderList() {
+    public java.util.List
+        getMysqlColumnsOrBuilderList() {
       if (mysqlColumnsBuilder_ != null) {
         return mysqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -953,6 +1043,8 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -962,10 +1054,12 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
     public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder() {
-      return getMysqlColumnsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -974,12 +1068,13 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder(
-        int index) {
-      return getMysqlColumnsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
+    public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder(int index) {
+      return getMysqlColumnsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -988,27 +1083,30 @@ public com.google.cloud.datastream.v1.MysqlColumn.Builder addMysqlColumnsBuilder
      *
      * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List 
-         getMysqlColumnsBuilderList() {
+    public java.util.List
+        getMysqlColumnsBuilderList() {
       return getMysqlColumnsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder> 
+            com.google.cloud.datastream.v1.MysqlColumn,
+            com.google.cloud.datastream.v1.MysqlColumn.Builder,
+            com.google.cloud.datastream.v1.MysqlColumnOrBuilder>
         getMysqlColumnsFieldBuilder() {
       if (mysqlColumnsBuilder_ == null) {
-        mysqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.MysqlColumn, com.google.cloud.datastream.v1.MysqlColumn.Builder, com.google.cloud.datastream.v1.MysqlColumnOrBuilder>(
-                mysqlColumns_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        mysqlColumnsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1.MysqlColumn,
+                com.google.cloud.datastream.v1.MysqlColumn.Builder,
+                com.google.cloud.datastream.v1.MysqlColumnOrBuilder>(
+                mysqlColumns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         mysqlColumns_ = null;
       }
       return mysqlColumnsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1018,12 +1116,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.MysqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.MysqlTable)
   private static final com.google.cloud.datastream.v1.MysqlTable DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.MysqlTable();
   }
@@ -1032,27 +1130,27 @@ public static com.google.cloud.datastream.v1.MysqlTable getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public MysqlTable parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public MysqlTable parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1067,6 +1165,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
similarity index 70%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
index 7933dfcaece0..06dcb4c21a77 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface MysqlTableOrBuilder extends
+public interface MysqlTableOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.MysqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -36,9 +59,10 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List 
-      getMysqlColumnsList();
+  java.util.List getMysqlColumnsList();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -49,6 +73,8 @@ public interface MysqlTableOrBuilder extends
    */
   com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index);
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -59,6 +85,8 @@ public interface MysqlTableOrBuilder extends
    */
   int getMysqlColumnsCount();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -67,9 +95,11 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List 
+  java.util.List
       getMysqlColumnsOrBuilderList();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -78,6 +108,5 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2;
    */
-  com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
similarity index 68%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
index 33104ab53740..995f8801b199 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OperationMetadata.class, com.google.cloud.datastream.v1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1.OperationMetadata.class, + com.google.cloud.datastream.v1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -280,6 +335,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -288,14 +344,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -304,29 +364,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -337,11 +397,16 @@ public java.lang.String getApiVersion() { public static final int VALIDATION_RESULT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1.ValidationResult validationResult_; /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ @java.lang.Override @@ -349,30 +414,44 @@ public boolean hasValidationResult() { return validationResult_ != null; } /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationResult getValidationResult() { - return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() + : validationResult_; } /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder() { - return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() + : validationResult_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,8 +463,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -420,12 +498,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -437,15 +513,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (validationResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getValidationResult()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValidationResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -455,37 +529,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OperationMetadata other = (com.google.cloud.datastream.v1.OperationMetadata) obj; + com.google.cloud.datastream.v1.OperationMetadata other = + (com.google.cloud.datastream.v1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (hasValidationResult() != other.hasValidationResult()) return false; if (hasValidationResult()) { - if (!getValidationResult() - .equals(other.getValidationResult())) return false; + if (!getValidationResult().equals(other.getValidationResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -513,8 +580,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasValidationResult()) { @@ -526,130 +592,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OperationMetadata) com.google.cloud.datastream.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OperationMetadata.class, com.google.cloud.datastream.v1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1.OperationMetadata.class, + com.google.cloud.datastream.v1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.datastream.v1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -678,9 +750,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; } @java.lang.Override @@ -699,8 +771,11 @@ public com.google.cloud.datastream.v1.OperationMetadata build() { @java.lang.Override public com.google.cloud.datastream.v1.OperationMetadata buildPartial() { - com.google.cloud.datastream.v1.OperationMetadata result = new com.google.cloud.datastream.v1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.OperationMetadata result = + new com.google.cloud.datastream.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -708,14 +783,10 @@ public com.google.cloud.datastream.v1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -733,9 +804,8 @@ private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata resu result.apiVersion_ = apiVersion_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.validationResult_ = validationResultBuilder_ == null - ? validationResult_ - : validationResultBuilder_.build(); + result.validationResult_ = + validationResultBuilder_ == null ? validationResult_ : validationResultBuilder_.build(); } } @@ -743,38 +813,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OperationMetadata resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.datastream.v1.OperationMetadata)other); + return mergeFrom((com.google.cloud.datastream.v1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -782,7 +853,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.OperationMetadata other) { - if (other == com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -841,58 +913,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getValidationResultFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getValidationResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -902,43 +978,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -954,14 +1050,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -972,17 +1071,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -995,11 +1098,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1012,11 +1119,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1024,36 +1135,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1061,24 +1184,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1089,11 +1223,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1109,14 +1246,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1127,17 +1266,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1150,11 +1292,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1167,11 +1312,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1179,36 +1327,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1216,18 +1372,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1236,20 +1394,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1257,28 +1416,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1288,17 +1454,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1308,18 +1478,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1328,20 +1500,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1349,28 +1522,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1380,17 +1560,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1400,18 +1584,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1420,20 +1606,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1441,28 +1628,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1472,17 +1666,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1490,8 +1688,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1501,6 +1701,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1508,6 +1709,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1517,17 +1720,20 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1537,6 +1743,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1548,18 +1755,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1568,20 +1777,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1589,28 +1799,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1620,17 +1837,21 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; @@ -1640,39 +1861,58 @@ public Builder setApiVersionBytes( private com.google.cloud.datastream.v1.ValidationResult validationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder> validationResultBuilder_; + com.google.cloud.datastream.v1.ValidationResult, + com.google.cloud.datastream.v1.ValidationResult.Builder, + com.google.cloud.datastream.v1.ValidationResultOrBuilder> + validationResultBuilder_; /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ public boolean hasValidationResult() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ public com.google.cloud.datastream.v1.ValidationResult getValidationResult() { if (validationResultBuilder_ == null) { - return validationResult_ == null ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() + : validationResult_; } else { return validationResultBuilder_.getMessage(); } } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setValidationResult(com.google.cloud.datastream.v1.ValidationResult value) { if (validationResultBuilder_ == null) { @@ -1688,11 +1928,15 @@ public Builder setValidationResult(com.google.cloud.datastream.v1.ValidationResu return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setValidationResult( com.google.cloud.datastream.v1.ValidationResult.Builder builderForValue) { @@ -1706,17 +1950,22 @@ public Builder setValidationResult( return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeValidationResult(com.google.cloud.datastream.v1.ValidationResult value) { if (validationResultBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - validationResult_ != null && - validationResult_ != com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && validationResult_ != null + && validationResult_ + != com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) { getValidationResultBuilder().mergeFrom(value); } else { validationResult_ = value; @@ -1729,11 +1978,15 @@ public Builder mergeValidationResult(com.google.cloud.datastream.v1.ValidationRe return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearValidationResult() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1746,11 +1999,15 @@ public Builder clearValidationResult() { return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.ValidationResult.Builder getValidationResultBuilder() { bitField0_ |= 0x00000080; @@ -1758,43 +2015,55 @@ public com.google.cloud.datastream.v1.ValidationResult.Builder getValidationResu return getValidationResultFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder() { if (validationResultBuilder_ != null) { return validationResultBuilder_.getMessageOrBuilder(); } else { - return validationResult_ == null ? - com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance() + : validationResult_; } } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder> + com.google.cloud.datastream.v1.ValidationResult, + com.google.cloud.datastream.v1.ValidationResult.Builder, + com.google.cloud.datastream.v1.ValidationResultOrBuilder> getValidationResultFieldBuilder() { if (validationResultBuilder_ == null) { - validationResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationResult, com.google.cloud.datastream.v1.ValidationResult.Builder, com.google.cloud.datastream.v1.ValidationResultOrBuilder>( - getValidationResult(), - getParentForChildren(), - isClean()); + validationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ValidationResult, + com.google.cloud.datastream.v1.ValidationResult.Builder, + com.google.cloud.datastream.v1.ValidationResultOrBuilder>( + getValidationResult(), getParentForChildren(), isClean()); validationResult_ = null; } return validationResultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1804,12 +2073,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OperationMetadata) private static final com.google.cloud.datastream.v1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OperationMetadata(); } @@ -1818,27 +2087,27 @@ public static com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1853,6 +2122,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java index 4702c86bcb6b..1590aa252da8 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -131,54 +186,74 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ boolean hasValidationResult(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ com.google.cloud.datastream.v1.ValidationResult getValidationResult(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java index 25a3875548d9..c598e7814596 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleColumn} */ -public final class OracleColumn extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleColumn extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleColumn) OracleColumnOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleColumn.newBuilder() to construct. private OracleColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleColumn() { column_ = ""; dataType_ = ""; @@ -27,38 +45,43 @@ private OracleColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleColumn.class, com.google.cloud.datastream.v1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1.OracleColumn.class, + com.google.cloud.datastream.v1.OracleColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -98,14 +121,18 @@ public java.lang.String getColumn() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -114,29 +141,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -147,11 +174,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -162,11 +192,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -177,11 +210,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -190,14 +226,18 @@ public int getScale() { } public static final int ENCODING_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ @java.lang.Override @@ -206,29 +246,29 @@ public java.lang.String getEncoding() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The bytes for encoding. */ @java.lang.Override - public com.google.protobuf.ByteString - getEncodingBytes() { + public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encoding_ = b; return b; } else { @@ -239,11 +279,14 @@ public java.lang.String getEncoding() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -254,11 +297,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -269,11 +315,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -282,6 +331,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -338,31 +387,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encoding_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,31 +415,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleColumn other = (com.google.cloud.datastream.v1.OracleColumn) obj; - - if (!getColumn() - .equals(other.getColumn())) return false; - if (!getDataType() - .equals(other.getDataType())) return false; - if (getLength() - != other.getLength()) return false; - if (getPrecision() - != other.getPrecision()) return false; - if (getScale() - != other.getScale()) return false; - if (!getEncoding() - .equals(other.getEncoding())) return false; - if (getPrimaryKey() - != other.getPrimaryKey()) return false; - if (getNullable() - != other.getNullable()) return false; - if (getOrdinalPosition() - != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.OracleColumn other = + (com.google.cloud.datastream.v1.OracleColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (!getEncoding().equals(other.getEncoding())) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,11 +456,9 @@ public int hashCode() { hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -433,130 +466,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleColumn parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleColumn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleColumn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleColumn) com.google.cloud.datastream.v1.OracleColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleColumn.class, com.google.cloud.datastream.v1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1.OracleColumn.class, + com.google.cloud.datastream.v1.OracleColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleColumn.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -574,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; } @java.lang.Override @@ -595,8 +634,11 @@ public com.google.cloud.datastream.v1.OracleColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleColumn buildPartial() { - com.google.cloud.datastream.v1.OracleColumn result = new com.google.cloud.datastream.v1.OracleColumn(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.OracleColumn result = + new com.google.cloud.datastream.v1.OracleColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -636,38 +678,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleColumn result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleColumn) { - return mergeFrom((com.google.cloud.datastream.v1.OracleColumn)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleColumn) other); } else { super.mergeFrom(other); return this; @@ -735,57 +778,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - encoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - nullable_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + encoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -795,22 +848,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object column_ = ""; /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -819,20 +875,21 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The bytes for column. */ - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -840,28 +897,35 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -871,17 +935,21 @@ public Builder clearColumn() { return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -891,18 +959,20 @@ public Builder setColumnBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -911,20 +981,21 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -932,28 +1003,35 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { @@ -963,17 +1041,21 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -981,13 +1063,16 @@ public Builder setDataTypeBytes( return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -995,27 +1080,33 @@ public int getLength() { return length_; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -1025,13 +1116,16 @@ public Builder clearLength() { return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -1039,27 +1133,33 @@ public int getPrecision() { return precision_; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -1069,13 +1169,16 @@ public Builder clearPrecision() { return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1083,27 +1186,33 @@ public int getScale() { return scale_; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { @@ -1115,18 +1224,20 @@ public Builder clearScale() { private java.lang.Object encoding_ = ""; /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; @@ -1135,20 +1246,21 @@ public java.lang.String getEncoding() { } } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return The bytes for encoding. */ - public com.google.protobuf.ByteString - getEncodingBytes() { + public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encoding_ = b; return b; } else { @@ -1156,28 +1268,35 @@ public java.lang.String getEncoding() { } } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncoding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } encoding_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -1187,17 +1306,21 @@ public Builder clearEncoding() { return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @param value The bytes for encoding to set. * @return This builder for chaining. */ - public Builder setEncodingBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncodingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); encoding_ = value; bitField0_ |= 0x00000020; @@ -1205,13 +1328,16 @@ public Builder setEncodingBytes( return this; } - private boolean primaryKey_ ; + private boolean primaryKey_; /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -1219,27 +1345,33 @@ public boolean getPrimaryKey() { return primaryKey_; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1249,13 +1381,16 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -1263,27 +1398,33 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1293,13 +1434,16 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_ ; + private int ordinalPosition_; /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -1307,27 +1451,33 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1336,9 +1486,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1348,12 +1498,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleColumn) private static final com.google.cloud.datastream.v1.OracleColumn DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleColumn(); } @@ -1362,27 +1512,27 @@ public static com.google.cloud.datastream.v1.OracleColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1397,6 +1547,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java index 6e4f0635a1e2..ca7797618541 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java @@ -1,128 +1,177 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleColumnOrBuilder extends +public interface OracleColumnOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleColumn) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ java.lang.String getColumn(); /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ - com.google.protobuf.ByteString - getColumnBytes(); + com.google.protobuf.ByteString getColumnBytes(); /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ java.lang.String getDataType(); /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - com.google.protobuf.ByteString - getDataTypeBytes(); + com.google.protobuf.ByteString getDataTypeBytes(); /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ int getLength(); /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ int getPrecision(); /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ int getScale(); /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ java.lang.String getEncoding(); /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The bytes for encoding. */ - com.google.protobuf.ByteString - getEncodingBytes(); + com.google.protobuf.ByteString getEncodingBytes(); /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ boolean getPrimaryKey(); /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ boolean getNullable(); /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java index 25c53feacf52..53f58fb679ef 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} */ -public final class OracleProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleProfile) OracleProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleProfile.newBuilder() to construct. private OracleProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleProfile() { hostname_ = ""; username_ = ""; @@ -28,50 +46,54 @@ private OracleProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleProfile.class, com.google.cloud.datastream.v1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1.OracleProfile.class, + com.google.cloud.datastream.v1.OracleProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -80,29 +102,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -113,11 +135,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -126,14 +151,18 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -142,29 +171,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -173,14 +202,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ @java.lang.Override @@ -189,29 +222,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -220,14 +253,18 @@ public java.lang.String getPassword() { } public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object databaseService_ = ""; /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ @java.lang.Override @@ -236,29 +273,29 @@ public java.lang.String getDatabaseService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; } } /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseServiceBytes() { + public com.google.protobuf.ByteString getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseService_ = b; return b; } else { @@ -267,32 +304,36 @@ public java.lang.String getDatabaseService() { } public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; + private static final class ConnectionAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> connectionAttributes_; + private com.google.protobuf.MapField connectionAttributes_; + private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } + public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
    * Connection string attributes
    * 
@@ -300,20 +341,21 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -325,6 +367,8 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -332,17 +376,20 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Connection string attributes
    * 
@@ -350,9 +397,10 @@ java.lang.String getConnectionAttributesOrDefault( * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -362,6 +410,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,8 +422,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -390,8 +438,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, @@ -409,8 +456,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -421,15 +467,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseService_); } - for (java.util.Map.Entry entry - : internalGetConnectionAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - connectionAttributes__ = ConnectionAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, connectionAttributes__); + for (java.util.Map.Entry entry : + internalGetConnectionAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry connectionAttributes__ = + ConnectionAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -439,25 +485,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleProfile other = (com.google.cloud.datastream.v1.OracleProfile) obj; - - if (!getHostname() - .equals(other.getHostname())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getDatabaseService() - .equals(other.getDatabaseService())) return false; - if (!internalGetConnectionAttributes().equals( - other.internalGetConnectionAttributes())) return false; + com.google.cloud.datastream.v1.OracleProfile other = + (com.google.cloud.datastream.v1.OracleProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabaseService().equals(other.getDatabaseService())) return false; + if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -488,152 +530,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleProfile) com.google.cloud.datastream.v1.OracleProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleProfile.class, com.google.cloud.datastream.v1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1.OracleProfile.class, + com.google.cloud.datastream.v1.OracleProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleProfile.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -648,9 +694,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; } @java.lang.Override @@ -669,8 +715,11 @@ public com.google.cloud.datastream.v1.OracleProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleProfile buildPartial() { - com.google.cloud.datastream.v1.OracleProfile result = new com.google.cloud.datastream.v1.OracleProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.OracleProfile result = + new com.google.cloud.datastream.v1.OracleProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -702,38 +751,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleProfile result) public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleProfile) { - return mergeFrom((com.google.cloud.datastream.v1.OracleProfile)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleProfile) other); } else { super.mergeFrom(other); return this; @@ -765,8 +815,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleProfile other) { bitField0_ |= 0x00000010; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom( - other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -794,46 +843,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - databaseService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - connectionAttributes__ = input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableConnectionAttributes().getMutableMap().put( - connectionAttributes__.getKey(), connectionAttributes__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + databaseService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + connectionAttributes__ = + input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectionAttributes() + .getMutableMap() + .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -843,22 +902,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -867,20 +929,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -888,28 +951,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -919,17 +989,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -937,13 +1011,16 @@ public Builder setHostnameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -951,27 +1028,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -983,18 +1066,20 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1003,20 +1088,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1024,28 +1110,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1055,17 +1148,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1075,18 +1172,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1095,20 +1194,21 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1116,28 +1216,35 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1147,17 +1254,21 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1167,18 +1278,20 @@ public Builder setPasswordBytes( private java.lang.Object databaseService_ = ""; /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ public java.lang.String getDatabaseService() { java.lang.Object ref = databaseService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; @@ -1187,20 +1300,21 @@ public java.lang.String getDatabaseService() { } } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ - public com.google.protobuf.ByteString - getDatabaseServiceBytes() { + public com.google.protobuf.ByteString getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseService_ = b; return b; } else { @@ -1208,28 +1322,35 @@ public java.lang.String getDatabaseService() { } } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } databaseService_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatabaseService() { @@ -1239,17 +1360,21 @@ public Builder clearDatabaseService() { return this; } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); databaseService_ = value; bitField0_ |= 0x00000010; @@ -1257,8 +1382,8 @@ public Builder setDatabaseServiceBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> connectionAttributes_; + private com.google.protobuf.MapField connectionAttributes_; + private com.google.protobuf.MapField internalGetConnectionAttributes() { if (connectionAttributes_ == null) { @@ -1267,11 +1392,13 @@ public Builder setDatabaseServiceBytes( } return connectionAttributes_; } + private com.google.protobuf.MapField internalGetMutableConnectionAttributes() { if (connectionAttributes_ == null) { - connectionAttributes_ = com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); + connectionAttributes_ = + com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); } if (!connectionAttributes_.isMutable()) { connectionAttributes_ = connectionAttributes_.copy(); @@ -1280,10 +1407,13 @@ public Builder setDatabaseServiceBytes( onChanged(); return connectionAttributes_; } + public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1291,20 +1421,21 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1316,6 +1447,8 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1323,17 +1456,20 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Connection string attributes
      * 
@@ -1341,9 +1477,10 @@ java.lang.String getConnectionAttributesOrDefault( * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1351,53 +1488,57 @@ public java.lang.String getConnectionAttributesOrThrow( } return map.get(key); } + public Builder clearConnectionAttributes() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableConnectionAttributes().getMutableMap() - .clear(); + internalGetMutableConnectionAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder removeConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableConnectionAttributes().getMutableMap() - .remove(key); + public Builder removeConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConnectionAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableConnectionAttributes() { + public java.util.Map getMutableConnectionAttributes() { bitField0_ |= 0x00000020; return internalGetMutableConnectionAttributes().getMutableMap(); } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putConnectionAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConnectionAttributes().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** + * + * *
      * Connection string attributes
      * 
@@ -1406,14 +1547,13 @@ public Builder putConnectionAttributes( */ public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap() - .putAll(values); + internalGetMutableConnectionAttributes().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1423,12 +1563,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleProfile) private static final com.google.cloud.datastream.v1.OracleProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleProfile(); } @@ -1437,27 +1577,27 @@ public static com.google.cloud.datastream.v1.OracleProfile getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1472,6 +1612,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java index 34ac1481d3d9..018df6b7b936 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java @@ -1,103 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleProfileOrBuilder extends +public interface OracleProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ java.lang.String getDatabaseService(); /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ - com.google.protobuf.ByteString - getDatabaseServiceBytes(); + com.google.protobuf.ByteString getDatabaseServiceBytes(); /** + * + * *
    * Connection string attributes
    * 
@@ -106,30 +147,31 @@ public interface OracleProfileOrBuilder extends */ int getConnectionAttributesCount(); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - boolean containsConnectionAttributes( - java.lang.String key); - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + boolean containsConnectionAttributes(java.lang.String key); + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getConnectionAttributes(); + java.util.Map getConnectionAttributes(); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.util.Map - getConnectionAttributesMap(); + java.util.Map getConnectionAttributesMap(); /** + * + * *
    * Connection string attributes
    * 
@@ -137,17 +179,18 @@ boolean containsConnectionAttributes( * map<string, string> connection_attributes = 6; */ /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrThrow( - java.lang.String key); + java.lang.String getConnectionAttributesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java index 3e8a447ea096..bb1f4b6c8441 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleRdbms} */ -public final class OracleRdbms extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleRdbms extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleRdbms) OracleRdbmsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleRdbms.newBuilder() to construct. private OracleRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleRdbms() { oracleSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleRdbms.class, com.google.cloud.datastream.v1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1.OracleRdbms.class, + com.google.cloud.datastream.v1.OracleRdbms.Builder.class); } public static final int ORACLE_SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List oracleSchemas_; /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -63,6 +85,8 @@ public java.util.List getOracleSche return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -70,11 +94,13 @@ public java.util.List getOracleSche * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getOracleSchemasOrBuilderList() { return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -86,6 +112,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -104,12 +134,12 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( - int index) { + public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index) { return oracleSchemas_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +151,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -136,8 +165,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < oracleSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, oracleSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, oracleSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +175,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleRdbms other = (com.google.cloud.datastream.v1.OracleRdbms) obj; + com.google.cloud.datastream.v1.OracleRdbms other = + (com.google.cloud.datastream.v1.OracleRdbms) obj; - if (!getOracleSchemasList() - .equals(other.getOracleSchemasList())) return false; + if (!getOracleSchemasList().equals(other.getOracleSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,130 +204,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleRdbms} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleRdbms) com.google.cloud.datastream.v1.OracleRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleRdbms.class, com.google.cloud.datastream.v1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1.OracleRdbms.class, + com.google.cloud.datastream.v1.OracleRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleRdbms.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; } @java.lang.Override @@ -336,9 +370,12 @@ public com.google.cloud.datastream.v1.OracleRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms buildPartial() { - com.google.cloud.datastream.v1.OracleRdbms result = new com.google.cloud.datastream.v1.OracleRdbms(this); + com.google.cloud.datastream.v1.OracleRdbms result = + new com.google.cloud.datastream.v1.OracleRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -363,38 +400,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleRdbms result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.OracleRdbms)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) other); } else { super.mergeFrom(other); return this; @@ -421,9 +459,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleRdbms other) { oracleSchemasBuilder_ = null; oracleSchemas_ = other.oracleSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - oracleSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleSchemasFieldBuilder() : null; + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleSchemasFieldBuilder() + : null; } else { oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); } @@ -455,25 +494,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.OracleSchema m = - input.readMessage( - com.google.cloud.datastream.v1.OracleSchema.parser(), - extensionRegistry); - if (oracleSchemasBuilder_ == null) { - ensureOracleSchemasIsMutable(); - oracleSchemas_.add(m); - } else { - oracleSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.OracleSchema m = + input.readMessage( + com.google.cloud.datastream.v1.OracleSchema.parser(), extensionRegistry); + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(m); + } else { + oracleSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,21 +523,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List oracleSchemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = new java.util.ArrayList(oracleSchemas_); + oracleSchemas_ = + new java.util.ArrayList(oracleSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder> oracleSchemasBuilder_; + com.google.cloud.datastream.v1.OracleSchema, + com.google.cloud.datastream.v1.OracleSchema.Builder, + com.google.cloud.datastream.v1.OracleSchemaOrBuilder> + oracleSchemasBuilder_; /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -512,6 +560,8 @@ public java.util.List getOracleSche } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -526,6 +576,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -540,14 +592,15 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public Builder setOracleSchemas( - int index, com.google.cloud.datastream.v1.OracleSchema value) { + public Builder setOracleSchemas(int index, com.google.cloud.datastream.v1.OracleSchema value) { if (oracleSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -561,6 +614,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -579,6 +634,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -599,14 +656,15 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1.OracleSchema valu return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public Builder addOracleSchemas( - int index, com.google.cloud.datastream.v1.OracleSchema value) { + public Builder addOracleSchemas(int index, com.google.cloud.datastream.v1.OracleSchema value) { if (oracleSchemasBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,6 +678,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -638,6 +698,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -656,6 +718,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -666,8 +730,7 @@ public Builder addAllOracleSchemas( java.lang.Iterable values) { if (oracleSchemasBuilder_ == null) { ensureOracleSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleSchemas_); onChanged(); } else { oracleSchemasBuilder_.addAllMessages(values); @@ -675,6 +738,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -692,6 +757,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -709,17 +776,20 @@ public Builder removeOracleSchemas(int index) { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuilder( - int index) { + public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuilder(int index) { return getOracleSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -729,19 +799,22 @@ public com.google.cloud.datastream.v1.OracleSchema.Builder getOracleSchemasBuild public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( int index) { if (oracleSchemasBuilder_ == null) { - return oracleSchemas_.get(index); } else { + return oracleSchemas_.get(index); + } else { return oracleSchemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasOrBuilderList() { + public java.util.List + getOracleSchemasOrBuilderList() { if (oracleSchemasBuilder_ != null) { return oracleSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +822,8 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -756,38 +831,47 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder() { - return getOracleSchemasFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder( - int index) { - return getOracleSchemasFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); + public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuilder(int index) { + return getOracleSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasBuilderList() { + public java.util.List + getOracleSchemasBuilderList() { return getOracleSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder> + com.google.cloud.datastream.v1.OracleSchema, + com.google.cloud.datastream.v1.OracleSchema.Builder, + com.google.cloud.datastream.v1.OracleSchemaOrBuilder> getOracleSchemasFieldBuilder() { if (oracleSchemasBuilder_ == null) { - oracleSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSchema, com.google.cloud.datastream.v1.OracleSchema.Builder, com.google.cloud.datastream.v1.OracleSchemaOrBuilder>( + oracleSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSchema, + com.google.cloud.datastream.v1.OracleSchema.Builder, + com.google.cloud.datastream.v1.OracleSchemaOrBuilder>( oracleSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -796,9 +880,9 @@ public com.google.cloud.datastream.v1.OracleSchema.Builder addOracleSchemasBuild } return oracleSchemasBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +892,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleRdbms) private static final com.google.cloud.datastream.v1.OracleRdbms DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleRdbms(); } @@ -822,27 +906,27 @@ public static com.google.cloud.datastream.v1.OracleRdbms getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +941,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java index edefd8e8eb06..d5a46d0e27bc 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleRdbmsOrBuilder extends +public interface OracleRdbmsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleRdbms) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - java.util.List - getOracleSchemasList(); + java.util.List getOracleSchemasList(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -25,6 +44,8 @@ public interface OracleRdbmsOrBuilder extends */ com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -33,21 +54,24 @@ public interface OracleRdbmsOrBuilder extends */ int getOracleSchemasCount(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - java.util.List + java.util.List getOracleSchemasOrBuilderList(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; */ - com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( - int index); + com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java index 59716a1b745e..531b034ae221 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSchema} */ -public final class OracleSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSchema) OracleSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleSchema.newBuilder() to construct. private OracleSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleSchema() { schema_ = ""; oracleTables_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private OracleSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSchema.class, com.google.cloud.datastream.v1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1.OracleSchema.class, + com.google.cloud.datastream.v1.OracleSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getSchema() { } public static final int ORACLE_TABLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -111,6 +137,8 @@ public java.util.List getOracleTable return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -118,11 +146,13 @@ public java.util.List getOracleTable * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getOracleTablesOrBuilderList() { return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -134,6 +164,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -145,6 +177,8 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -152,12 +186,12 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index) { return oracleTables_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +203,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -190,8 +223,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } for (int i = 0; i < oracleTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, oracleTables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,17 +233,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSchema other = (com.google.cloud.datastream.v1.OracleSchema) obj; + com.google.cloud.datastream.v1.OracleSchema other = + (com.google.cloud.datastream.v1.OracleSchema) obj; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getOracleTablesList() - .equals(other.getOracleTablesList())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getOracleTablesList().equals(other.getOracleTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +265,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.OracleSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSchema) com.google.cloud.datastream.v1.OracleSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSchema.class, com.google.cloud.datastream.v1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1.OracleSchema.class, + com.google.cloud.datastream.v1.OracleSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; } @java.lang.Override @@ -395,9 +432,12 @@ public com.google.cloud.datastream.v1.OracleSchema build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleSchema buildPartial() { - com.google.cloud.datastream.v1.OracleSchema result = new com.google.cloud.datastream.v1.OracleSchema(this); + com.google.cloud.datastream.v1.OracleSchema result = + new com.google.cloud.datastream.v1.OracleSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -425,38 +465,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleSchema result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSchema) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSchema)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSchema) other); } else { super.mergeFrom(other); return this; @@ -488,9 +529,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSchema other) { oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000002); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleTablesFieldBuilder() : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleTablesFieldBuilder() + : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -522,30 +564,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.OracleTable m = - input.readMessage( - com.google.cloud.datastream.v1.OracleTable.parser(), - extensionRegistry); - if (oracleTablesBuilder_ == null) { - ensureOracleTablesIsMutable(); - oracleTables_.add(m); - } else { - oracleTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.OracleTable m = + input.readMessage( + com.google.cloud.datastream.v1.OracleTable.parser(), extensionRegistry); + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(m); + } else { + oracleTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,22 +599,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -579,20 +626,21 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -600,28 +648,35 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -631,17 +686,21 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -650,18 +709,25 @@ public Builder setSchemaBytes( } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleTables_ = new java.util.ArrayList(oracleTables_); + oracleTables_ = + new java.util.ArrayList(oracleTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder> oracleTablesBuilder_; + com.google.cloud.datastream.v1.OracleTable, + com.google.cloud.datastream.v1.OracleTable.Builder, + com.google.cloud.datastream.v1.OracleTableOrBuilder> + oracleTablesBuilder_; /** + * + * *
      * Tables in the schema.
      * 
@@ -676,6 +742,8 @@ public java.util.List getOracleTable } } /** + * + * *
      * Tables in the schema.
      * 
@@ -690,6 +758,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -704,14 +774,15 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { } } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public Builder setOracleTables( - int index, com.google.cloud.datastream.v1.OracleTable value) { + public Builder setOracleTables(int index, com.google.cloud.datastream.v1.OracleTable value) { if (oracleTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -725,6 +796,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -743,6 +816,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -763,14 +838,15 @@ public Builder addOracleTables(com.google.cloud.datastream.v1.OracleTable value) return this; } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public Builder addOracleTables( - int index, com.google.cloud.datastream.v1.OracleTable value) { + public Builder addOracleTables(int index, com.google.cloud.datastream.v1.OracleTable value) { if (oracleTablesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -784,6 +860,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -802,6 +880,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -820,6 +900,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -830,8 +912,7 @@ public Builder addAllOracleTables( java.lang.Iterable values) { if (oracleTablesBuilder_ == null) { ensureOracleTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleTables_); onChanged(); } else { oracleTablesBuilder_.addAllMessages(values); @@ -839,6 +920,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -856,6 +939,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -873,39 +958,44 @@ public Builder removeOracleTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTable.Builder getOracleTablesBuilder( - int index) { + public com.google.cloud.datastream.v1.OracleTable.Builder getOracleTablesBuilder(int index) { return getOracleTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( - int index) { + public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index) { if (oracleTablesBuilder_ == null) { - return oracleTables_.get(index); } else { + return oracleTables_.get(index); + } else { return oracleTablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesOrBuilderList() { + public java.util.List + getOracleTablesOrBuilderList() { if (oracleTablesBuilder_ != null) { return oracleTablesBuilder_.getMessageOrBuilderList(); } else { @@ -913,6 +1003,8 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil } } /** + * + * *
      * Tables in the schema.
      * 
@@ -920,49 +1012,55 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder() { - return getOracleTablesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder( - int index) { - return getOracleTablesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); + public com.google.cloud.datastream.v1.OracleTable.Builder addOracleTablesBuilder(int index) { + return getOracleTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesBuilderList() { + public java.util.List + getOracleTablesBuilderList() { return getOracleTablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder> + com.google.cloud.datastream.v1.OracleTable, + com.google.cloud.datastream.v1.OracleTable.Builder, + com.google.cloud.datastream.v1.OracleTableOrBuilder> getOracleTablesFieldBuilder() { if (oracleTablesBuilder_ == null) { - oracleTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleTable, com.google.cloud.datastream.v1.OracleTable.Builder, com.google.cloud.datastream.v1.OracleTableOrBuilder>( - oracleTables_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + oracleTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.OracleTable, + com.google.cloud.datastream.v1.OracleTable.Builder, + com.google.cloud.datastream.v1.OracleTableOrBuilder>( + oracleTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); oracleTables_ = null; } return oracleTablesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1070,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSchema) private static final com.google.cloud.datastream.v1.OracleSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSchema(); } @@ -986,27 +1084,27 @@ public static com.google.cloud.datastream.v1.OracleSchema getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1119,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java index 4518baf5d832..955e55b41db4 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleSchemaOrBuilder extends +public interface OracleSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - java.util.List - getOracleTablesList(); + java.util.List getOracleTablesList(); /** + * + * *
    * Tables in the schema.
    * 
@@ -45,6 +69,8 @@ public interface OracleSchemaOrBuilder extends */ com.google.cloud.datastream.v1.OracleTable getOracleTables(int index); /** + * + * *
    * Tables in the schema.
    * 
@@ -53,21 +79,24 @@ public interface OracleSchemaOrBuilder extends */ int getOracleTablesCount(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - java.util.List + java.util.List getOracleTablesOrBuilderList(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; */ - com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder( - int index); + com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 32c735cd71ef..c754794d7d5d 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -1,101 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} */ -public final class OracleSourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig) OracleSourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleSourceConfig.newBuilder() to construct. private OracleSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleSourceConfig() { - } + + private OracleSourceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.class, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } - public interface DropLargeObjectsOrBuilder extends + public interface DropLargeObjectsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Configuration to drop large object values.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - public static final class DropLargeObjects extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class DropLargeObjects extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) DropLargeObjectsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DropLargeObjects.newBuilder() to construct. private DropLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DropLargeObjects() { - } + + private DropLargeObjects() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DropLargeObjects(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +129,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -126,12 +147,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -150,87 +172,95 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -240,39 +270,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration to drop large object values.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder.class); } - // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -280,14 +313,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } @java.lang.Override @@ -301,7 +336,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects build( @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(this); onBuilt(); return result; } @@ -310,46 +346,53 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects buildP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects)other); + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -376,12 +419,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -391,6 +435,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -403,41 +448,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) - private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects(); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstance() { + public static com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DropLargeObjects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DropLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -449,61 +497,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface StreamLargeObjectsOrBuilder extends + public interface StreamLargeObjectsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Configuration to stream large object values.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class StreamLargeObjects extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class StreamLargeObjects extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) StreamLargeObjectsOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamLargeObjects.newBuilder() to construct. private StreamLargeObjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamLargeObjects() { - } + + private StreamLargeObjects() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamLargeObjects(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -515,8 +567,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -534,12 +585,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -558,87 +610,95 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -648,39 +708,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Configuration to stream large object values.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.class, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder.class); } - // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -688,19 +751,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects build() { - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = buildPartial(); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -709,7 +775,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buil @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects result = + new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(this); onBuilt(); return result; } @@ -718,46 +785,53 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects buil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects)other); + return mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects other) { + if (other + == com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -784,12 +858,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -799,6 +874,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -811,41 +887,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) - private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects(); } - public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstance() { + public static com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamLargeObjects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamLargeObjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,21 +936,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int largeObjectsHandlingCase_ = 0; private java.lang.Object largeObjectsHandling_; + public enum LargeObjectsHandlingCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DROP_LARGE_OBJECTS(100), STREAM_LARGE_OBJECTS(102), LARGEOBJECTSHANDLING_NOT_SET(0); private final int value; + private LargeObjectsHandlingCase(int value) { this.value = value; } @@ -887,31 +969,37 @@ public static LargeObjectsHandlingCase valueOf(int value) { public static LargeObjectsHandlingCase forNumber(int value) { switch (value) { - case 100: return DROP_LARGE_OBJECTS; - case 102: return STREAM_LARGE_OBJECTS; - case 0: return LARGEOBJECTSHANDLING_NOT_SET; - default: return null; + case 100: + return DROP_LARGE_OBJECTS; + case 102: + return STREAM_LARGE_OBJECTS; + case 0: + return LARGEOBJECTSHANDLING_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public LargeObjectsHandlingCase - getLargeObjectsHandlingCase() { - return LargeObjectsHandlingCase.forNumber( - largeObjectsHandlingCase_); + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -919,18 +1007,25 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; } /** + * + * *
    * Oracle objects to include in the stream.
    * 
@@ -939,17 +1034,22 @@ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -957,18 +1057,25 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; } /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
@@ -977,18 +1084,23 @@ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; } public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; private int maxConcurrentCdcTasks_ = 0; /** + * + * *
    * Maximum number of concurrent CDC tasks. The number should be non-negative.
    * If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -999,12 +1111,15 @@ public int getMaxConcurrentCdcTasks() { public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 4; private int maxConcurrentBackfillTasks_ = 0; /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be
    * non-negative. If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -1014,11 +1129,15 @@ public int getMaxConcurrentBackfillTasks() { public static final int DROP_LARGE_OBJECTS_FIELD_NUMBER = 100; /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return Whether the dropLargeObjects field is set. */ @java.lang.Override @@ -1026,42 +1145,57 @@ public boolean hasDropLargeObjects() { return largeObjectsHandlingCase_ == 100; } /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return The dropLargeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; } return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; } return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); } public static final int STREAM_LARGE_OBJECTS_FIELD_NUMBER = 102; /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return Whether the streamLargeObjects field is set. */ @java.lang.Override @@ -1069,36 +1203,52 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return The streamLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1110,8 +1260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -1125,10 +1274,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32(4, maxConcurrentBackfillTasks_); } if (largeObjectsHandlingCase_ == 100) { - output.writeMessage(100, (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_); + output.writeMessage( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); } if (largeObjectsHandlingCase_ == 102) { - output.writeMessage(102, (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); + output.writeMessage( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); } getUnknownFields().writeTo(output); } @@ -1140,28 +1295,31 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } if (maxConcurrentCdcTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxConcurrentCdcTasks_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentCdcTasks_); } if (maxConcurrentBackfillTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxConcurrentBackfillTasks_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxConcurrentBackfillTasks_); } if (largeObjectsHandlingCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); } if (largeObjectsHandlingCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1171,36 +1329,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.OracleSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.OracleSourceConfig other = (com.google.cloud.datastream.v1.OracleSourceConfig) obj; + com.google.cloud.datastream.v1.OracleSourceConfig other = + (com.google.cloud.datastream.v1.OracleSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects() - .equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects() - .equals(other.getExcludeObjects())) return false; + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } - if (getMaxConcurrentCdcTasks() - != other.getMaxConcurrentCdcTasks()) return false; - if (getMaxConcurrentBackfillTasks() - != other.getMaxConcurrentBackfillTasks()) return false; + if (getMaxConcurrentCdcTasks() != other.getMaxConcurrentCdcTasks()) return false; + if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; if (!getLargeObjectsHandlingCase().equals(other.getLargeObjectsHandlingCase())) return false; switch (largeObjectsHandlingCase_) { case 100: - if (!getDropLargeObjects() - .equals(other.getDropLargeObjects())) return false; + if (!getDropLargeObjects().equals(other.getDropLargeObjects())) return false; break; case 102: - if (!getStreamLargeObjects() - .equals(other.getStreamLargeObjects())) return false; + if (!getStreamLargeObjects().equals(other.getStreamLargeObjects())) return false; break; case 0: default: @@ -1246,129 +1399,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.OracleSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleSourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleSourceConfig) com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1.OracleSourceConfig.class, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1397,9 +1556,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; } @java.lang.Override @@ -1418,8 +1577,11 @@ public com.google.cloud.datastream.v1.OracleSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1.OracleSourceConfig result = new com.google.cloud.datastream.v1.OracleSourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.OracleSourceConfig result = + new com.google.cloud.datastream.v1.OracleSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1428,14 +1590,12 @@ public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.OracleSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = includeObjectsBuilder_ == null - ? includeObjects_ - : includeObjectsBuilder_.build(); + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = excludeObjectsBuilder_ == null - ? excludeObjects_ - : excludeObjectsBuilder_.build(); + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.maxConcurrentCdcTasks_ = maxConcurrentCdcTasks_; @@ -1448,12 +1608,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleSourceConfig res private void buildPartialOneofs(com.google.cloud.datastream.v1.OracleSourceConfig result) { result.largeObjectsHandlingCase_ = largeObjectsHandlingCase_; result.largeObjectsHandling_ = this.largeObjectsHandling_; - if (largeObjectsHandlingCase_ == 100 && - dropLargeObjectsBuilder_ != null) { + if (largeObjectsHandlingCase_ == 100 && dropLargeObjectsBuilder_ != null) { result.largeObjectsHandling_ = dropLargeObjectsBuilder_.build(); } - if (largeObjectsHandlingCase_ == 102 && - streamLargeObjectsBuilder_ != null) { + if (largeObjectsHandlingCase_ == 102 && streamLargeObjectsBuilder_ != null) { result.largeObjectsHandling_ = streamLargeObjectsBuilder_.build(); } } @@ -1462,38 +1620,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.OracleSourceConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) other); } else { super.mergeFrom(other); return this; @@ -1501,7 +1660,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) + return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -1515,17 +1675,20 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other setMaxConcurrentBackfillTasks(other.getMaxConcurrentBackfillTasks()); } switch (other.getLargeObjectsHandlingCase()) { - case DROP_LARGE_OBJECTS: { - mergeDropLargeObjects(other.getDropLargeObjects()); - break; - } - case STREAM_LARGE_OBJECTS: { - mergeStreamLargeObjects(other.getStreamLargeObjects()); - break; - } - case LARGEOBJECTSHANDLING_NOT_SET: { - break; - } + case DROP_LARGE_OBJECTS: + { + mergeDropLargeObjects(other.getDropLargeObjects()); + break; + } + case STREAM_LARGE_OBJECTS: + { + mergeStreamLargeObjects(other.getStreamLargeObjects()); + break; + } + case LARGEOBJECTSHANDLING_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1553,50 +1716,51 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIncludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExcludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - maxConcurrentCdcTasks_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - maxConcurrentBackfillTasks_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 802: { - input.readMessage( - getDropLargeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - largeObjectsHandlingCase_ = 100; - break; - } // case 802 - case 818: { - input.readMessage( - getStreamLargeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - largeObjectsHandlingCase_ = 102; - break; - } // case 818 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 802: + { + input.readMessage( + getDropLargeObjectsFieldBuilder().getBuilder(), extensionRegistry); + largeObjectsHandlingCase_ = 100; + break; + } // case 802 + case 818: + { + input.readMessage( + getStreamLargeObjectsFieldBuilder().getBuilder(), extensionRegistry); + largeObjectsHandlingCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1606,12 +1770,12 @@ public Builder mergeFrom( } // finally return this; } + private int largeObjectsHandlingCase_ = 0; private java.lang.Object largeObjectsHandling_; - public LargeObjectsHandlingCase - getLargeObjectsHandlingCase() { - return LargeObjectsHandlingCase.forNumber( - largeObjectsHandlingCase_); + + public LargeObjectsHandlingCase getLargeObjectsHandlingCase() { + return LargeObjectsHandlingCase.forNumber(largeObjectsHandlingCase_); } public Builder clearLargeObjectsHandling() { @@ -1625,34 +1789,47 @@ public Builder clearLargeObjectsHandling() { private com.google.cloud.datastream.v1.OracleRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> includeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + includeObjectsBuilder_; /** + * + * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return The includeObjects. */ public com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1673,6 +1850,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1691,6 +1870,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1699,9 +1880,9 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - includeObjects_ != null && - includeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -1714,6 +1895,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1731,6 +1914,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1743,6 +1928,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuild return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1753,11 +1940,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null ? - com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : includeObjects_; } } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1765,14 +1955,17 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getIncludeObjects(), - getParentForChildren(), - isClean()); + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -1780,34 +1973,47 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu private com.google.cloud.datastream.v1.OracleRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> excludeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + excludeObjectsBuilder_; /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1828,6 +2034,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1846,6 +2054,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1854,9 +2064,9 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - excludeObjects_ != null && - excludeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -1869,6 +2079,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1886,6 +2098,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1898,6 +2112,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuild return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1908,11 +2124,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null ? - com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() + : excludeObjects_; } } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1920,27 +2139,33 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( - getExcludeObjects(), - getParentForChildren(), - isClean()); + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; } - private int maxConcurrentCdcTasks_ ; + private int maxConcurrentCdcTasks_; /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non-negative.
      * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -1948,29 +2173,35 @@ public int getMaxConcurrentCdcTasks() { return maxConcurrentCdcTasks_; } /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non-negative.
      * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @param value The maxConcurrentCdcTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentCdcTasks(int value) { - + maxConcurrentCdcTasks_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Maximum number of concurrent CDC tasks. The number should be non-negative.
      * If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return This builder for chaining. */ public Builder clearMaxConcurrentCdcTasks() { @@ -1980,14 +2211,17 @@ public Builder clearMaxConcurrentCdcTasks() { return this; } - private int maxConcurrentBackfillTasks_ ; + private int maxConcurrentBackfillTasks_; /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be
      * non-negative. If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -1995,29 +2229,35 @@ public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be
      * non-negative. If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @param value The maxConcurrentBackfillTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentBackfillTasks(int value) { - + maxConcurrentBackfillTasks_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be
      * non-negative. If not set (or set to 0), the system's default value is used.
      * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return This builder for chaining. */ public Builder clearMaxConcurrentBackfillTasks() { @@ -2028,13 +2268,21 @@ public Builder clearMaxConcurrentBackfillTasks() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> dropLargeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + dropLargeObjectsBuilder_; /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return Whether the dropLargeObjects field is set. */ @java.lang.Override @@ -2042,35 +2290,49 @@ public boolean hasDropLargeObjects() { return largeObjectsHandlingCase_ == 100; } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return The dropLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + getDropLargeObjects() { if (dropLargeObjectsBuilder_ == null) { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } else { if (largeObjectsHandlingCase_ == 100) { return dropLargeObjectsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder setDropLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + public Builder setDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { if (dropLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2084,14 +2346,19 @@ public Builder setDropLargeObjects(com.google.cloud.datastream.v1.OracleSourceCo return this; } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ public Builder setDropLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder builderForValue) { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + builderForValue) { if (dropLargeObjectsBuilder_ == null) { largeObjectsHandling_ = builderForValue.build(); onChanged(); @@ -2102,18 +2369,29 @@ public Builder setDropLargeObjects( return this; } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public Builder mergeDropLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { + public Builder mergeDropLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects value) { if (dropLargeObjectsBuilder_ == null) { - if (largeObjectsHandlingCase_ == 100 && - largeObjectsHandling_ != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance()) { - largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_) - .mergeFrom(value).buildPartial(); + if (largeObjectsHandlingCase_ == 100 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) + .mergeFrom(value) + .buildPartial(); } else { largeObjectsHandling_ = value; } @@ -2129,11 +2407,15 @@ public Builder mergeDropLargeObjects(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ public Builder clearDropLargeObjects() { if (dropLargeObjectsBuilder_ == null) { @@ -2152,50 +2434,74 @@ public Builder clearDropLargeObjects() { return this; } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder getDropLargeObjectsBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + getDropLargeObjectsBuilder() { return getDropLargeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder() { if ((largeObjectsHandlingCase_ == 100) && (dropLargeObjectsBuilder_ != null)) { return dropLargeObjectsBuilder_.getMessageOrBuilder(); } else { if (largeObjectsHandlingCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } } /** + * + * *
      * Drop large object values.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder> getDropLargeObjectsFieldBuilder() { if (dropLargeObjectsBuilder_ == null) { if (!(largeObjectsHandlingCase_ == 100)) { - largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.getDefaultInstance(); + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects + .getDefaultInstance(); } - dropLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( - (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_, + dropLargeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_, getParentForChildren(), isClean()); largeObjectsHandling_ = null; @@ -2206,13 +2512,21 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> streamLargeObjectsBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + streamLargeObjectsBuilder_; /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return Whether the streamLargeObjects field is set. */ @java.lang.Override @@ -2220,35 +2534,49 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return The streamLargeObjects. */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + getStreamLargeObjects() { if (streamLargeObjectsBuilder_ == null) { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } else { if (largeObjectsHandlingCase_ == 102) { return streamLargeObjectsBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder setStreamLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + public Builder setStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { if (streamLargeObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2262,14 +2590,19 @@ public Builder setStreamLargeObjects(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ public Builder setStreamLargeObjects( - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder builderForValue) { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + builderForValue) { if (streamLargeObjectsBuilder_ == null) { largeObjectsHandling_ = builderForValue.build(); onChanged(); @@ -2280,18 +2613,29 @@ public Builder setStreamLargeObjects( return this; } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public Builder mergeStreamLargeObjects(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { + public Builder mergeStreamLargeObjects( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects value) { if (streamLargeObjectsBuilder_ == null) { - if (largeObjectsHandlingCase_ == 102 && - largeObjectsHandling_ != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance()) { - largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_) - .mergeFrom(value).buildPartial(); + if (largeObjectsHandlingCase_ == 102 + && largeObjectsHandling_ + != com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance()) { + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) + .mergeFrom(value) + .buildPartial(); } else { largeObjectsHandling_ = value; } @@ -2307,11 +2651,15 @@ public Builder mergeStreamLargeObjects(com.google.cloud.datastream.v1.OracleSour return this; } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ public Builder clearStreamLargeObjects() { if (streamLargeObjectsBuilder_ == null) { @@ -2330,50 +2678,74 @@ public Builder clearStreamLargeObjects() { return this; } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder getStreamLargeObjectsBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + getStreamLargeObjectsBuilder() { return getStreamLargeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder() { if ((largeObjectsHandlingCase_ == 102) && (streamLargeObjectsBuilder_ != null)) { return streamLargeObjectsBuilder_.getMessageOrBuilder(); } else { if (largeObjectsHandlingCase_ == 102) { - return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_; + return (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_; } - return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + return com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } } /** + * + * *
      * Stream large object values. NOTE: This feature is currently experimental.
      * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder> getStreamLargeObjectsFieldBuilder() { if (streamLargeObjectsBuilder_ == null) { if (!(largeObjectsHandlingCase_ == 102)) { - largeObjectsHandling_ = com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.getDefaultInstance(); + largeObjectsHandling_ = + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects + .getDefaultInstance(); } - streamLargeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( - (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_, + streamLargeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder, + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder>( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_, getParentForChildren(), isClean()); largeObjectsHandling_ = null; @@ -2382,9 +2754,9 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBui onChanged(); return streamLargeObjectsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2394,12 +2766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleSourceConfig) private static final com.google.cloud.datastream.v1.OracleSourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleSourceConfig(); } @@ -2408,27 +2780,27 @@ public static com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2443,6 +2815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index 6c662cb862ad..d69281c22a50 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface OracleSourceConfigOrBuilder extends +public interface OracleSourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleSourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + * * @return The includeObjects. */ com.google.cloud.datastream.v1.OracleRdbms getIncludeObjects(); /** + * + * *
    * Oracle objects to include in the stream.
    * 
@@ -35,24 +59,32 @@ public interface OracleSourceConfigOrBuilder extends com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + * * @return The excludeObjects. */ com.google.cloud.datastream.v1.OracleRdbms getExcludeObjects(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
@@ -62,80 +94,114 @@ public interface OracleSourceConfigOrBuilder extends com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** + * + * *
    * Maximum number of concurrent CDC tasks. The number should be non-negative.
    * If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ int getMaxConcurrentCdcTasks(); /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be
    * non-negative. If not set (or set to 0), the system's default value is used.
    * 
* * int32 max_concurrent_backfill_tasks = 4; + * * @return The maxConcurrentBackfillTasks. */ int getMaxConcurrentBackfillTasks(); /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return Whether the dropLargeObjects field is set. */ boolean hasDropLargeObjects(); /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * + * * @return The dropLargeObjects. */ com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects getDropLargeObjects(); /** + * + * *
    * Drop large object values.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * .google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects drop_large_objects = 100; + * */ - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder getDropLargeObjectsOrBuilder(); + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjectsOrBuilder + getDropLargeObjectsOrBuilder(); /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return Whether the streamLargeObjects field is set. */ boolean hasStreamLargeObjects(); /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * * @return The streamLargeObjects. */ com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects getStreamLargeObjects(); /** + * + * *
    * Stream large object values. NOTE: This feature is currently experimental.
    * 
* - * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * + * .google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects stream_large_objects = 102; + * */ - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder getStreamLargeObjectsOrBuilder(); + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjectsOrBuilder + getStreamLargeObjectsOrBuilder(); - public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase getLargeObjectsHandlingCase(); + public com.google.cloud.datastream.v1.OracleSourceConfig.LargeObjectsHandlingCase + getLargeObjectsHandlingCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index 73af57175971..875dc041ddc0 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Oracle table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleTable} */ -public final class OracleTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleTable) OracleTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleTable.newBuilder() to construct. private OracleTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleTable() { table_ = ""; oracleColumns_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private OracleTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleTable.class, com.google.cloud.datastream.v1.OracleTable.Builder.class); + com.google.cloud.datastream.v1.OracleTable.class, + com.google.cloud.datastream.v1.OracleTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTable() { } public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List oracleColumns_; /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -113,6 +139,8 @@ public java.util.List getOracleColu
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -122,11 +150,13 @@ public java.util.List getOracleColu
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getOracleColumnsOrBuilderList() {
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -140,6 +170,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -153,6 +185,8 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
     return oracleColumns_.get(index);
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -162,12 +196,12 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
-      int index) {
+  public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index) {
     return oracleColumns_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -179,8 +213,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -200,8 +233,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < oracleColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, oracleColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,17 +243,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.OracleTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.OracleTable other = (com.google.cloud.datastream.v1.OracleTable) obj;
+    com.google.cloud.datastream.v1.OracleTable other =
+        (com.google.cloud.datastream.v1.OracleTable) obj;
 
-    if (!getTable()
-        .equals(other.getTable())) return false;
-    if (!getOracleColumnsList()
-        .equals(other.getOracleColumnsList())) return false;
+    if (!getTable().equals(other.getTable())) return false;
+    if (!getOracleColumnsList().equals(other.getOracleColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -244,130 +275,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.OracleTable parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.OracleTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1.OracleTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Oracle table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.OracleTable} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.OracleTable) com.google.cloud.datastream.v1.OracleTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.OracleTable.class, com.google.cloud.datastream.v1.OracleTable.Builder.class); + com.google.cloud.datastream.v1.OracleTable.class, + com.google.cloud.datastream.v1.OracleTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.OracleTable.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_OracleTable_descriptor; } @java.lang.Override @@ -405,9 +442,12 @@ public com.google.cloud.datastream.v1.OracleTable build() { @java.lang.Override public com.google.cloud.datastream.v1.OracleTable buildPartial() { - com.google.cloud.datastream.v1.OracleTable result = new com.google.cloud.datastream.v1.OracleTable(this); + com.google.cloud.datastream.v1.OracleTable result = + new com.google.cloud.datastream.v1.OracleTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -435,38 +475,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.OracleTable result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.OracleTable) { - return mergeFrom((com.google.cloud.datastream.v1.OracleTable)other); + return mergeFrom((com.google.cloud.datastream.v1.OracleTable) other); } else { super.mergeFrom(other); return this; @@ -498,9 +539,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleTable other) { oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000002); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleColumnsFieldBuilder() : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleColumnsFieldBuilder() + : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -532,30 +574,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.OracleColumn m = - input.readMessage( - com.google.cloud.datastream.v1.OracleColumn.parser(), - extensionRegistry); - if (oracleColumnsBuilder_ == null) { - ensureOracleColumnsIsMutable(); - oracleColumns_.add(m); - } else { - oracleColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.OracleColumn m = + input.readMessage( + com.google.cloud.datastream.v1.OracleColumn.parser(), extensionRegistry); + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(m); + } else { + oracleColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,22 +609,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object table_ = ""; /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -589,20 +636,21 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -610,28 +658,35 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -641,17 +696,21 @@ public Builder clearTable() { return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -660,18 +719,25 @@ public Builder setTableBytes( } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleColumns_ = new java.util.ArrayList(oracleColumns_); + oracleColumns_ = + new java.util.ArrayList(oracleColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder> oracleColumnsBuilder_; + com.google.cloud.datastream.v1.OracleColumn, + com.google.cloud.datastream.v1.OracleColumn.Builder, + com.google.cloud.datastream.v1.OracleColumnOrBuilder> + oracleColumnsBuilder_; /** + * + * *
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -688,6 +754,8 @@ public java.util.List getOracleColu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -704,6 +772,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -720,6 +790,8 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -728,8 +800,7 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public Builder setOracleColumns(
-        int index, com.google.cloud.datastream.v1.OracleColumn value) {
+    public Builder setOracleColumns(int index, com.google.cloud.datastream.v1.OracleColumn value) {
       if (oracleColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -743,6 +814,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -763,6 +836,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -785,6 +860,8 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -793,8 +870,7 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public Builder addOracleColumns(
-        int index, com.google.cloud.datastream.v1.OracleColumn value) {
+    public Builder addOracleColumns(int index, com.google.cloud.datastream.v1.OracleColumn value) {
       if (oracleColumnsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -808,6 +884,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -828,6 +906,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -848,6 +928,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -860,8 +942,7 @@ public Builder addAllOracleColumns(
         java.lang.Iterable values) {
       if (oracleColumnsBuilder_ == null) {
         ensureOracleColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, oracleColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleColumns_);
         onChanged();
       } else {
         oracleColumnsBuilder_.addAllMessages(values);
@@ -869,6 +950,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -888,6 +971,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -907,6 +992,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -915,11 +1002,12 @@ public Builder removeOracleColumns(int index) {
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuilder(
-        int index) {
+    public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuilder(int index) {
       return getOracleColumnsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -931,11 +1019,14 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder getOracleColumnsBuild
     public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
         int index) {
       if (oracleColumnsBuilder_ == null) {
-        return oracleColumns_.get(index);  } else {
+        return oracleColumns_.get(index);
+      } else {
         return oracleColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -944,8 +1035,8 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List 
-         getOracleColumnsOrBuilderList() {
+    public java.util.List
+        getOracleColumnsOrBuilderList() {
       if (oracleColumnsBuilder_ != null) {
         return oracleColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -953,6 +1044,8 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -962,10 +1055,12 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
     public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder() {
-      return getOracleColumnsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -974,12 +1069,13 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder(
-        int index) {
-      return getOracleColumnsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
+    public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuilder(int index) {
+      return getOracleColumnsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -988,16 +1084,22 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
      *
      * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List 
-         getOracleColumnsBuilderList() {
+    public java.util.List
+        getOracleColumnsBuilderList() {
       return getOracleColumnsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder> 
+            com.google.cloud.datastream.v1.OracleColumn,
+            com.google.cloud.datastream.v1.OracleColumn.Builder,
+            com.google.cloud.datastream.v1.OracleColumnOrBuilder>
         getOracleColumnsFieldBuilder() {
       if (oracleColumnsBuilder_ == null) {
-        oracleColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.OracleColumn, com.google.cloud.datastream.v1.OracleColumn.Builder, com.google.cloud.datastream.v1.OracleColumnOrBuilder>(
+        oracleColumnsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1.OracleColumn,
+                com.google.cloud.datastream.v1.OracleColumn.Builder,
+                com.google.cloud.datastream.v1.OracleColumnOrBuilder>(
                 oracleColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1006,9 +1108,9 @@ public com.google.cloud.datastream.v1.OracleColumn.Builder addOracleColumnsBuild
       }
       return oracleColumnsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1018,12 +1120,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.OracleTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.OracleTable)
   private static final com.google.cloud.datastream.v1.OracleTable DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.OracleTable();
   }
@@ -1032,27 +1134,27 @@ public static com.google.cloud.datastream.v1.OracleTable getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OracleTable parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OracleTable parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1067,6 +1169,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
similarity index 70%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
index 902a499e4588..5f9bce0849e5 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface OracleTableOrBuilder extends
+public interface OracleTableOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.OracleTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -36,9 +59,10 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  java.util.List 
-      getOracleColumnsList();
+  java.util.List getOracleColumnsList();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -49,6 +73,8 @@ public interface OracleTableOrBuilder extends
    */
   com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index);
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -59,6 +85,8 @@ public interface OracleTableOrBuilder extends
    */
   int getOracleColumnsCount();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -67,9 +95,11 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  java.util.List 
+  java.util.List
       getOracleColumnsOrBuilderList();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -78,6 +108,5 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2;
    */
-  com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
similarity index 71%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
index e780fef6be1c..4d489b84b071 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * PostgreSQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} */ -public final class PostgresqlColumn extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlColumn extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlColumn) PostgresqlColumnOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlColumn.newBuilder() to construct. private PostgresqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlColumn() { column_ = ""; dataType_ = ""; @@ -26,38 +44,43 @@ private PostgresqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlColumn.class, com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); } public static final int COLUMN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object column_ = ""; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getColumn() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; } } /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -97,14 +120,18 @@ public java.lang.String getColumn() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** + * + * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -113,29 +140,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** + * + * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -146,11 +173,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -161,11 +191,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -176,11 +209,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -191,11 +227,14 @@ public int getScale() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -206,11 +245,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -221,11 +263,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -234,6 +279,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +291,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -287,28 +332,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -318,29 +357,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlColumn other = (com.google.cloud.datastream.v1.PostgresqlColumn) obj; - - if (!getColumn() - .equals(other.getColumn())) return false; - if (!getDataType() - .equals(other.getDataType())) return false; - if (getLength() - != other.getLength()) return false; - if (getPrecision() - != other.getPrecision()) return false; - if (getScale() - != other.getScale()) return false; - if (getPrimaryKey() - != other.getPrimaryKey()) return false; - if (getNullable() - != other.getNullable()) return false; - if (getOrdinalPosition() - != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1.PostgresqlColumn other = + (com.google.cloud.datastream.v1.PostgresqlColumn) obj; + + if (!getColumn().equals(other.getColumn())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -363,11 +395,9 @@ public int hashCode() { hash = (37 * hash) + SCALE_FIELD_NUMBER; hash = (53 * hash) + getScale(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -375,130 +405,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * PostgreSQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlColumn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlColumn) com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlColumn.class, com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); + com.google.cloud.datastream.v1.PostgresqlColumn.class, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlColumn.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +551,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; } @java.lang.Override @@ -536,8 +572,11 @@ public com.google.cloud.datastream.v1.PostgresqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlColumn buildPartial() { - com.google.cloud.datastream.v1.PostgresqlColumn result = new com.google.cloud.datastream.v1.PostgresqlColumn(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.PostgresqlColumn result = + new com.google.cloud.datastream.v1.PostgresqlColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -574,38 +613,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlColumn resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlColumn) other); } else { super.mergeFrom(other); return this; @@ -613,7 +653,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlColumn other) { - if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance()) + return this; if (!other.getColumn().isEmpty()) { column_ = other.column_; bitField0_ |= 0x00000001; @@ -668,52 +709,61 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 56: { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 56 - case 64: { - nullable_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 64 - case 72: { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + column_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 56: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 64: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 + case 72: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -723,22 +773,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object column_ = ""; /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The column. */ public java.lang.String getColumn() { java.lang.Object ref = column_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); column_ = s; return s; @@ -747,20 +800,21 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The bytes for column. */ - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -768,28 +822,35 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The column to set. * @return This builder for chaining. */ - public Builder setColumn( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumn(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } column_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { @@ -799,17 +860,21 @@ public Builder clearColumn() { return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @param value The bytes for column to set. * @return This builder for chaining. */ - public Builder setColumnBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); column_ = value; bitField0_ |= 0x00000001; @@ -819,18 +884,20 @@ public Builder setColumnBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -839,20 +906,21 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -860,28 +928,35 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { @@ -891,17 +966,21 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -909,13 +988,16 @@ public Builder setDataTypeBytes( return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -923,27 +1005,33 @@ public int getLength() { return length_; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -953,13 +1041,16 @@ public Builder clearLength() { return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -967,27 +1058,33 @@ public int getPrecision() { return precision_; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -997,13 +1094,16 @@ public Builder clearPrecision() { return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1011,27 +1111,33 @@ public int getScale() { return scale_; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { @@ -1041,13 +1147,16 @@ public Builder clearScale() { return this; } - private boolean primaryKey_ ; + private boolean primaryKey_; /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -1055,27 +1164,33 @@ public boolean getPrimaryKey() { return primaryKey_; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1085,13 +1200,16 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -1099,27 +1217,33 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1129,13 +1253,16 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_ ; + private int ordinalPosition_; /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -1143,27 +1270,33 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1172,9 +1305,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1184,12 +1317,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlColumn) private static final com.google.cloud.datastream.v1.PostgresqlColumn DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlColumn(); } @@ -1198,27 +1331,27 @@ public static com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1233,6 +1366,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java index d5efd0d77112..2bceb7244613 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java @@ -1,108 +1,152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlColumnOrBuilder extends +public interface PostgresqlColumnOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlColumn) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ java.lang.String getColumn(); /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The bytes for column. */ - com.google.protobuf.ByteString - getColumnBytes(); + com.google.protobuf.ByteString getColumnBytes(); /** + * + * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ java.lang.String getDataType(); /** + * + * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - com.google.protobuf.ByteString - getDataTypeBytes(); + com.google.protobuf.ByteString getDataTypeBytes(); /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ int getLength(); /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ int getPrecision(); /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ int getScale(); /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ boolean getPrimaryKey(); /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ boolean getNullable(); /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index bd0841fbaddd..f7b6d178c019 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * PostgreSQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} */ -public final class PostgresqlProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlProfile) PostgresqlProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlProfile.newBuilder() to construct. private PostgresqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlProfile() { hostname_ = ""; username_ = ""; @@ -28,38 +46,43 @@ private PostgresqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlProfile.class, com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -68,29 +91,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -101,11 +124,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
    * Port for the PostgreSQL connection, default value is 5432.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -114,14 +140,18 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -130,29 +160,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -161,14 +191,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ @java.lang.Override @@ -177,29 +211,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -208,14 +242,18 @@ public java.lang.String getPassword() { } public static final int DATABASE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ @java.lang.Override @@ -224,29 +262,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -255,6 +293,7 @@ public java.lang.String getDatabase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,8 +305,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -296,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -316,23 +353,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlProfile other = (com.google.cloud.datastream.v1.PostgresqlProfile) obj; - - if (!getHostname() - .equals(other.getHostname())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getDatabase() - .equals(other.getDatabase())) return false; + com.google.cloud.datastream.v1.PostgresqlProfile other = + (com.google.cloud.datastream.v1.PostgresqlProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -359,130 +392,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * PostgreSQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlProfile) com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlProfile.class, com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); + com.google.cloud.datastream.v1.PostgresqlProfile.class, + com.google.cloud.datastream.v1.PostgresqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlProfile.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +535,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; } @java.lang.Override @@ -517,8 +556,11 @@ public com.google.cloud.datastream.v1.PostgresqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlProfile buildPartial() { - com.google.cloud.datastream.v1.PostgresqlProfile result = new com.google.cloud.datastream.v1.PostgresqlProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.PostgresqlProfile result = + new com.google.cloud.datastream.v1.PostgresqlProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -546,38 +588,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlProfile resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) other); } else { super.mergeFrom(other); return this; @@ -585,7 +628,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlProfile other) { - if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.PostgresqlProfile.getDefaultInstance()) + return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -635,37 +679,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +725,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -699,20 +752,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -720,28 +774,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -751,17 +812,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the PostgreSQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -769,13 +834,16 @@ public Builder setHostnameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -783,27 +851,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -815,18 +889,20 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -835,20 +911,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -856,28 +933,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -887,17 +971,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the PostgreSQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -907,18 +995,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -927,20 +1017,21 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -948,28 +1039,35 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -979,17 +1077,21 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Required. Password for the PostgreSQL connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -999,18 +1101,20 @@ public Builder setPasswordBytes( private java.lang.Object database_ = ""; /** + * + * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -1019,20 +1123,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -1040,28 +1145,35 @@ public java.lang.String getDatabase() { } } /** + * + * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -1071,26 +1183,30 @@ public Builder clearDatabase() { return this; } /** + * + * *
      * Required. Database for the PostgreSQL connection.
      * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1216,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlProfile) private static final com.google.cloud.datastream.v1.PostgresqlProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlProfile(); } @@ -1114,27 +1230,27 @@ public static com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1149,6 +1265,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java index 523c79a80172..0c8dbafdaf71 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java @@ -1,99 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlProfileOrBuilder extends +public interface PostgresqlProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the PostgreSQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Port for the PostgreSQL connection, default value is 5432.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the PostgreSQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Password for the PostgreSQL connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
    * Required. Database for the PostgreSQL connection.
    * 
* * string database = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java index 8d3f7fafffae..8d9a001e7e5e 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * PostgreSQL database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} */ -public final class PostgresqlRdbms extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlRdbms extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlRdbms) PostgresqlRdbmsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlRdbms.newBuilder() to construct. private PostgresqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlRdbms() { postgresqlSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlRdbms.class, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); } public static final int POSTGRESQL_SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List postgresqlSchemas_; /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -59,10 +81,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ @java.lang.Override - public java.util.List getPostgresqlSchemasList() { + public java.util.List + getPostgresqlSchemasList() { return postgresqlSchemas_; } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -70,11 +95,13 @@ public java.util.List getPostgr * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPostgresqlSchemasOrBuilderList() { return postgresqlSchemas_; } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -86,6 +113,8 @@ public int getPostgresqlSchemasCount() { return postgresqlSchemas_.size(); } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -97,6 +126,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int return postgresqlSchemas_.get(index); } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -110,6 +141,7 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +153,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < postgresqlSchemas_.size(); i++) { output.writeMessage(1, postgresqlSchemas_.get(i)); } @@ -136,8 +167,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < postgresqlSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, postgresqlSchemas_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, postgresqlSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlRdbms other = (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; + com.google.cloud.datastream.v1.PostgresqlRdbms other = + (com.google.cloud.datastream.v1.PostgresqlRdbms) obj; - if (!getPostgresqlSchemasList() - .equals(other.getPostgresqlSchemasList())) return false; + if (!getPostgresqlSchemasList().equals(other.getPostgresqlSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,130 +207,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * PostgreSQL database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlRdbms} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlRdbms) com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlRdbms.class, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); + com.google.cloud.datastream.v1.PostgresqlRdbms.class, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +352,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; } @java.lang.Override @@ -336,9 +373,12 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms buildPartial() { - com.google.cloud.datastream.v1.PostgresqlRdbms result = new com.google.cloud.datastream.v1.PostgresqlRdbms(this); + com.google.cloud.datastream.v1.PostgresqlRdbms result = + new com.google.cloud.datastream.v1.PostgresqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -363,38 +403,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlRdbms result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) other); } else { super.mergeFrom(other); return this; @@ -421,9 +462,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlRdbms other) { postgresqlSchemasBuilder_ = null; postgresqlSchemas_ = other.postgresqlSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - postgresqlSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPostgresqlSchemasFieldBuilder() : null; + postgresqlSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlSchemasFieldBuilder() + : null; } else { postgresqlSchemasBuilder_.addAllMessages(other.postgresqlSchemas_); } @@ -455,25 +497,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.PostgresqlSchema m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlSchema.parser(), - extensionRegistry); - if (postgresqlSchemasBuilder_ == null) { - ensurePostgresqlSchemasIsMutable(); - postgresqlSchemas_.add(m); - } else { - postgresqlSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.PostgresqlSchema m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSchema.parser(), + extensionRegistry); + if (postgresqlSchemasBuilder_ == null) { + ensurePostgresqlSchemasIsMutable(); + postgresqlSchemas_.add(m); + } else { + postgresqlSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,28 +527,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List postgresqlSchemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePostgresqlSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - postgresqlSchemas_ = new java.util.ArrayList(postgresqlSchemas_); + postgresqlSchemas_ = + new java.util.ArrayList( + postgresqlSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> postgresqlSchemasBuilder_; + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + postgresqlSchemasBuilder_; /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List getPostgresqlSchemasList() { + public java.util.List + getPostgresqlSchemasList() { if (postgresqlSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(postgresqlSchemas_); } else { @@ -512,6 +566,8 @@ public java.util.List getPostgr } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -526,6 +582,8 @@ public int getPostgresqlSchemasCount() { } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -540,6 +598,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -561,6 +621,8 @@ public Builder setPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -579,6 +641,8 @@ public Builder setPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -599,6 +663,8 @@ public Builder addPostgresqlSchemas(com.google.cloud.datastream.v1.PostgresqlSch return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -620,6 +686,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -638,6 +706,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -656,6 +726,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -666,8 +738,7 @@ public Builder addAllPostgresqlSchemas( java.lang.Iterable values) { if (postgresqlSchemasBuilder_ == null) { ensurePostgresqlSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, postgresqlSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlSchemas_); onChanged(); } else { postgresqlSchemasBuilder_.addAllMessages(values); @@ -675,6 +746,8 @@ public Builder addAllPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -692,6 +765,8 @@ public Builder clearPostgresqlSchemas() { return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -709,6 +784,8 @@ public Builder removePostgresqlSchemas(int index) { return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -720,6 +797,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSche return getPostgresqlSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -729,19 +808,22 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSche public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( int index) { if (postgresqlSchemasBuilder_ == null) { - return postgresqlSchemas_.get(index); } else { + return postgresqlSchemas_.get(index); + } else { return postgresqlSchemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List - getPostgresqlSchemasOrBuilderList() { + public java.util.List + getPostgresqlSchemasOrBuilderList() { if (postgresqlSchemasBuilder_ != null) { return postgresqlSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +831,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -756,10 +840,12 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder() { - return getPostgresqlSchemasFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + return getPostgresqlSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -768,26 +854,34 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSche */ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSchemasBuilder( int index) { - return getPostgresqlSchemasFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); + return getPostgresqlSchemasFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()); } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - public java.util.List - getPostgresqlSchemasBuilderList() { + public java.util.List + getPostgresqlSchemasBuilderList() { return getPostgresqlSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder> getPostgresqlSchemasFieldBuilder() { if (postgresqlSchemasBuilder_ == null) { - postgresqlSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSchema, com.google.cloud.datastream.v1.PostgresqlSchema.Builder, com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( + postgresqlSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSchema, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder, + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder>( postgresqlSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -796,9 +890,9 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder addPostgresqlSche } return postgresqlSchemasBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +902,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlRdbms) private static final com.google.cloud.datastream.v1.PostgresqlRdbms DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlRdbms(); } @@ -822,27 +916,27 @@ public static com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java index 96f0141c4279..2f2a3d1c3290 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlRdbmsOrBuilder extends +public interface PostgresqlRdbmsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlRdbms) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - java.util.List - getPostgresqlSchemasList(); + java.util.List getPostgresqlSchemasList(); /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -25,6 +44,8 @@ public interface PostgresqlRdbmsOrBuilder extends */ com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int index); /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -33,21 +54,24 @@ public interface PostgresqlRdbmsOrBuilder extends */ int getPostgresqlSchemasCount(); /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - java.util.List + java.util.List getPostgresqlSchemasOrBuilderList(); /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlSchema postgresql_schemas = 1; */ - com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder( - int index); + com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSchemasOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java index 30c79b2014a2..33e2fed62c63 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * PostgreSQL schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} */ -public final class PostgresqlSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSchema) PostgresqlSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlSchema.newBuilder() to construct. private PostgresqlSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlSchema() { schema_ = ""; postgresqlTables_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private PostgresqlSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSchema.class, com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getSchema() { } public static final int POSTGRESQL_TABLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List postgresqlTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -111,6 +137,8 @@ public java.util.List getPostgre return postgresqlTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -118,11 +146,13 @@ public java.util.List getPostgre * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPostgresqlTablesOrBuilderList() { return postgresqlTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -134,6 +164,8 @@ public int getPostgresqlTablesCount() { return postgresqlTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -145,6 +177,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in return postgresqlTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -158,6 +192,7 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -190,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); } for (int i = 0; i < postgresqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, postgresqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlSchema other = (com.google.cloud.datastream.v1.PostgresqlSchema) obj; + com.google.cloud.datastream.v1.PostgresqlSchema other = + (com.google.cloud.datastream.v1.PostgresqlSchema) obj; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getPostgresqlTablesList() - .equals(other.getPostgresqlTablesList())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getPostgresqlTablesList().equals(other.getPostgresqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,130 +266,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * PostgreSQL schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSchema) com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSchema.class, com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSchema.class, + com.google.cloud.datastream.v1.PostgresqlSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlSchema.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; } @java.lang.Override @@ -395,14 +433,18 @@ public com.google.cloud.datastream.v1.PostgresqlSchema build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSchema buildPartial() { - com.google.cloud.datastream.v1.PostgresqlSchema result = new com.google.cloud.datastream.v1.PostgresqlSchema(this); + com.google.cloud.datastream.v1.PostgresqlSchema result = + new com.google.cloud.datastream.v1.PostgresqlSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.PostgresqlSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.PostgresqlSchema result) { if (postgresqlTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); @@ -425,38 +467,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSchema resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlSchema) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSchema) other); } else { super.mergeFrom(other); return this; @@ -464,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) { - if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.PostgresqlSchema.getDefaultInstance()) + return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -488,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) postgresqlTablesBuilder_ = null; postgresqlTables_ = other.postgresqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - postgresqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPostgresqlTablesFieldBuilder() : null; + postgresqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlTablesFieldBuilder() + : null; } else { postgresqlTablesBuilder_.addAllMessages(other.postgresqlTables_); } @@ -522,30 +567,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.PostgresqlTable m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlTable.parser(), - extensionRegistry); - if (postgresqlTablesBuilder_ == null) { - ensurePostgresqlTablesIsMutable(); - postgresqlTables_.add(m); - } else { - postgresqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.PostgresqlTable m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry); + if (postgresqlTablesBuilder_ == null) { + ensurePostgresqlTablesIsMutable(); + postgresqlTables_.add(m); + } else { + postgresqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,22 +602,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -579,20 +629,21 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -600,28 +651,35 @@ public java.lang.String getSchema() { } } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -631,17 +689,21 @@ public Builder clearSchema() { return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -650,25 +712,34 @@ public Builder setSchemaBytes( } private java.util.List postgresqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePostgresqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - postgresqlTables_ = new java.util.ArrayList(postgresqlTables_); + postgresqlTables_ = + new java.util.ArrayList( + postgresqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> postgresqlTablesBuilder_; + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + postgresqlTablesBuilder_; /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List getPostgresqlTablesList() { + public java.util.List + getPostgresqlTablesList() { if (postgresqlTablesBuilder_ == null) { return java.util.Collections.unmodifiableList(postgresqlTables_); } else { @@ -676,6 +747,8 @@ public java.util.List getPostgre } } /** + * + * *
      * Tables in the schema.
      * 
@@ -690,6 +763,8 @@ public int getPostgresqlTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -704,6 +779,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in } } /** + * + * *
      * Tables in the schema.
      * 
@@ -725,6 +802,8 @@ public Builder setPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -743,6 +822,8 @@ public Builder setPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -763,6 +844,8 @@ public Builder addPostgresqlTables(com.google.cloud.datastream.v1.PostgresqlTabl return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -784,6 +867,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -802,6 +887,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -820,6 +907,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -830,8 +919,7 @@ public Builder addAllPostgresqlTables( java.lang.Iterable values) { if (postgresqlTablesBuilder_ == null) { ensurePostgresqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, postgresqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlTables_); onChanged(); } else { postgresqlTablesBuilder_.addAllMessages(values); @@ -839,6 +927,8 @@ public Builder addAllPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -856,6 +946,8 @@ public Builder clearPostgresqlTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -873,6 +965,8 @@ public Builder removePostgresqlTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -884,6 +978,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTable return getPostgresqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
@@ -893,19 +989,22 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTable public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( int index) { if (postgresqlTablesBuilder_ == null) { - return postgresqlTables_.get(index); } else { + return postgresqlTables_.get(index); + } else { return postgresqlTablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List - getPostgresqlTablesOrBuilderList() { + public java.util.List + getPostgresqlTablesOrBuilderList() { if (postgresqlTablesBuilder_ != null) { return postgresqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -913,6 +1012,8 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } } /** + * + * *
      * Tables in the schema.
      * 
@@ -920,10 +1021,12 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder() { - return getPostgresqlTablesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + return getPostgresqlTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
@@ -932,26 +1035,34 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTable */ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTablesBuilder( int index) { - return getPostgresqlTablesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); + return getPostgresqlTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - public java.util.List - getPostgresqlTablesBuilderList() { + public java.util.List + getPostgresqlTablesBuilderList() { return getPostgresqlTablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder> getPostgresqlTablesFieldBuilder() { if (postgresqlTablesBuilder_ == null) { - postgresqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlTable, com.google.cloud.datastream.v1.PostgresqlTable.Builder, com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( + postgresqlTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlTable, + com.google.cloud.datastream.v1.PostgresqlTable.Builder, + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder>( postgresqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), @@ -960,9 +1071,9 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder addPostgresqlTable } return postgresqlTablesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1083,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSchema) private static final com.google.cloud.datastream.v1.PostgresqlSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSchema(); } @@ -986,27 +1097,27 @@ public static com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java index 379d1256487e..3730f8a07e69 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlSchemaOrBuilder extends +public interface PostgresqlSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - java.util.List - getPostgresqlTablesList(); + java.util.List getPostgresqlTablesList(); /** + * + * *
    * Tables in the schema.
    * 
@@ -45,6 +69,8 @@ public interface PostgresqlSchemaOrBuilder extends */ com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int index); /** + * + * *
    * Tables in the schema.
    * 
@@ -53,21 +79,24 @@ public interface PostgresqlSchemaOrBuilder extends */ int getPostgresqlTablesCount(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - java.util.List + java.util.List getPostgresqlTablesOrBuilderList(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1.PostgresqlTable postgresql_tables = 2; */ - com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder( - int index); + com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTablesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java index 72a0cedb9947..bbf4f5218472 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * PostgreSQL data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ -public final class PostgresqlSourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) PostgresqlSourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlSourceConfig.newBuilder() to construct. private PostgresqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlSourceConfig() { replicationSlot_ = ""; publication_ = ""; @@ -26,37 +44,41 @@ private PostgresqlSourceConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } public static final int INCLUDE_OBJECTS_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ @java.lang.Override @@ -64,18 +86,25 @@ public boolean hasIncludeObjects() { return includeObjects_ != null; } /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return The includeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; } /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
@@ -84,17 +113,22 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { - return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; } public static final int EXCLUDE_OBJECTS_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ @java.lang.Override @@ -102,18 +136,25 @@ public boolean hasExcludeObjects() { return excludeObjects_ != null; } /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; } /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
@@ -122,19 +163,27 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; } public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object replicationSlot_ = ""; /** + * + * *
    * Required. Immutable. The name of the logical replication slot that's
    * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The replicationSlot. */ @java.lang.Override @@ -143,30 +192,32 @@ public java.lang.String getReplicationSlot() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSlot_ = s; return s; } } /** + * + * *
    * Required. Immutable. The name of the logical replication slot that's
    * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for replicationSlot. */ @java.lang.Override - public com.google.protobuf.ByteString - getReplicationSlotBytes() { + public com.google.protobuf.ByteString getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicationSlot_ = b; return b; } else { @@ -175,15 +226,19 @@ public java.lang.String getReplicationSlot() { } public static final int PUBLICATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object publication_ = ""; /** + * + * *
    * Required. The name of the publication that includes the set of all tables
    * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publication. */ @java.lang.Override @@ -192,30 +247,30 @@ public java.lang.String getPublication() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publication_ = s; return s; } } /** + * + * *
    * Required. The name of the publication that includes the set of all tables
    * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for publication. */ @java.lang.Override - public com.google.protobuf.ByteString - getPublicationBytes() { + public com.google.protobuf.ByteString getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publication_ = b; return b; } else { @@ -226,6 +281,8 @@ public java.lang.String getPublication() { public static final int MAX_CONCURRENT_BACKFILL_TASKS_FIELD_NUMBER = 5; private int maxConcurrentBackfillTasks_ = 0; /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be non
    * negative. If not set (or set to 0), the system's default value will be
@@ -233,6 +290,7 @@ public java.lang.String getPublication() {
    * 
* * int32 max_concurrent_backfill_tasks = 5; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -241,6 +299,7 @@ public int getMaxConcurrentBackfillTasks() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +311,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -279,12 +337,10 @@ public int getSerializedSize() { size = 0; if (includeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIncludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIncludeObjects()); } if (excludeObjects_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExcludeObjects()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExcludeObjects()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(replicationSlot_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, replicationSlot_); @@ -293,8 +349,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, publication_); } if (maxConcurrentBackfillTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxConcurrentBackfillTasks_); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxConcurrentBackfillTasks_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -304,29 +360,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PostgresqlSourceConfig other = (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; + com.google.cloud.datastream.v1.PostgresqlSourceConfig other = + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) obj; if (hasIncludeObjects() != other.hasIncludeObjects()) return false; if (hasIncludeObjects()) { - if (!getIncludeObjects() - .equals(other.getIncludeObjects())) return false; + if (!getIncludeObjects().equals(other.getIncludeObjects())) return false; } if (hasExcludeObjects() != other.hasExcludeObjects()) return false; if (hasExcludeObjects()) { - if (!getExcludeObjects() - .equals(other.getExcludeObjects())) return false; - } - if (!getReplicationSlot() - .equals(other.getReplicationSlot())) return false; - if (!getPublication() - .equals(other.getPublication())) return false; - if (getMaxConcurrentBackfillTasks() - != other.getMaxConcurrentBackfillTasks()) return false; + if (!getExcludeObjects().equals(other.getExcludeObjects())) return false; + } + if (!getReplicationSlot().equals(other.getReplicationSlot())) return false; + if (!getPublication().equals(other.getPublication())) return false; + if (getMaxConcurrentBackfillTasks() != other.getMaxConcurrentBackfillTasks()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,129 +410,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PostgresqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlSourceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.PostgresqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * PostgreSQL data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlSourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlSourceConfig) com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1.PostgresqlSourceConfig.class, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -502,9 +561,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; } @java.lang.Override @@ -523,8 +582,11 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1.PostgresqlSourceConfig result = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.PostgresqlSourceConfig result = + new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -532,14 +594,12 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeObjects_ = includeObjectsBuilder_ == null - ? includeObjects_ - : includeObjectsBuilder_.build(); + result.includeObjects_ = + includeObjectsBuilder_ == null ? includeObjects_ : includeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.excludeObjects_ = excludeObjectsBuilder_ == null - ? excludeObjects_ - : excludeObjectsBuilder_.build(); + result.excludeObjects_ = + excludeObjectsBuilder_ == null ? excludeObjects_ : excludeObjectsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.replicationSlot_ = replicationSlot_; @@ -556,38 +616,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlSourceConfig public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig) other); } else { super.mergeFrom(other); return this; @@ -595,7 +656,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) + return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -641,41 +703,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getIncludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExcludeObjectsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - replicationSlot_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - publication_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - maxConcurrentBackfillTasks_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getIncludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExcludeObjectsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + replicationSlot_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + publication_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + maxConcurrentBackfillTasks_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -685,38 +749,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1.PostgresqlRdbms includeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> includeObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + includeObjectsBuilder_; /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ public boolean hasIncludeObjects() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return The includeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects() { if (includeObjectsBuilder_ == null) { - return includeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; } else { return includeObjectsBuilder_.getMessage(); } } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -737,6 +815,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -755,6 +835,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -763,9 +845,10 @@ public Builder setIncludeObjects( */ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (includeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - includeObjects_ != null && - includeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && includeObjects_ != null + && includeObjects_ + != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getIncludeObjectsBuilder().mergeFrom(value); } else { includeObjects_ = value; @@ -778,6 +861,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -795,6 +880,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -807,6 +894,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsB return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -817,11 +906,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects if (includeObjectsBuilder_ != null) { return includeObjectsBuilder_.getMessageOrBuilder(); } else { - return includeObjects_ == null ? - com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : includeObjects_; + return includeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : includeObjects_; } } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -829,14 +921,17 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getIncludeObjectsFieldBuilder() { if (includeObjectsBuilder_ == null) { - includeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( - getIncludeObjects(), - getParentForChildren(), - isClean()); + includeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getIncludeObjects(), getParentForChildren(), isClean()); includeObjects_ = null; } return includeObjectsBuilder_; @@ -844,34 +939,47 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects private com.google.cloud.datastream.v1.PostgresqlRdbms excludeObjects_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> excludeObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + excludeObjectsBuilder_; /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ public boolean hasExcludeObjects() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ public com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects() { if (excludeObjectsBuilder_ == null) { - return excludeObjects_ == null ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; } else { return excludeObjectsBuilder_.getMessage(); } } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -892,6 +1000,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -910,6 +1020,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -918,9 +1030,10 @@ public Builder setExcludeObjects( */ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (excludeObjectsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - excludeObjects_ != null && - excludeObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && excludeObjects_ != null + && excludeObjects_ + != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { getExcludeObjectsBuilder().mergeFrom(value); } else { excludeObjects_ = value; @@ -933,6 +1046,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -950,6 +1065,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -962,6 +1079,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsB return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -972,11 +1091,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects if (excludeObjectsBuilder_ != null) { return excludeObjectsBuilder_.getMessageOrBuilder(); } else { - return excludeObjects_ == null ? - com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() : excludeObjects_; + return excludeObjects_ == null + ? com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance() + : excludeObjects_; } } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -984,14 +1106,17 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getExcludeObjectsFieldBuilder() { if (excludeObjectsBuilder_ == null) { - excludeObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( - getExcludeObjects(), - getParentForChildren(), - isClean()); + excludeObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + getExcludeObjects(), getParentForChildren(), isClean()); excludeObjects_ = null; } return excludeObjectsBuilder_; @@ -999,19 +1124,23 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects private java.lang.Object replicationSlot_ = ""; /** + * + * *
      * Required. Immutable. The name of the logical replication slot that's
      * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The replicationSlot. */ public java.lang.String getReplicationSlot() { java.lang.Object ref = replicationSlot_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replicationSlot_ = s; return s; @@ -1020,21 +1149,24 @@ public java.lang.String getReplicationSlot() { } } /** + * + * *
      * Required. Immutable. The name of the logical replication slot that's
      * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for replicationSlot. */ - public com.google.protobuf.ByteString - getReplicationSlotBytes() { + public com.google.protobuf.ByteString getReplicationSlotBytes() { java.lang.Object ref = replicationSlot_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replicationSlot_ = b; return b; } else { @@ -1042,30 +1174,41 @@ public java.lang.String getReplicationSlot() { } } /** + * + * *
      * Required. Immutable. The name of the logical replication slot that's
      * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlot( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplicationSlot(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } replicationSlot_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Immutable. The name of the logical replication slot that's
      * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearReplicationSlot() { @@ -1075,18 +1218,24 @@ public Builder clearReplicationSlot() { return this; } /** + * + * *
      * Required. Immutable. The name of the logical replication slot that's
      * configured with the pgoutput plugin.
      * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlotBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); replicationSlot_ = value; bitField0_ |= 0x00000004; @@ -1096,19 +1245,21 @@ public Builder setReplicationSlotBytes( private java.lang.Object publication_ = ""; /** + * + * *
      * Required. The name of the publication that includes the set of all tables
      * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publication. */ public java.lang.String getPublication() { java.lang.Object ref = publication_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); publication_ = s; return s; @@ -1117,21 +1268,22 @@ public java.lang.String getPublication() { } } /** + * + * *
      * Required. The name of the publication that includes the set of all tables
      * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for publication. */ - public com.google.protobuf.ByteString - getPublicationBytes() { + public com.google.protobuf.ByteString getPublicationBytes() { java.lang.Object ref = publication_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); publication_ = b; return b; } else { @@ -1139,30 +1291,37 @@ public java.lang.String getPublication() { } } /** + * + * *
      * Required. The name of the publication that includes the set of all tables
      * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The publication to set. * @return This builder for chaining. */ - public Builder setPublication( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPublication(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } publication_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. The name of the publication that includes the set of all tables
      * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPublication() { @@ -1172,18 +1331,22 @@ public Builder clearPublication() { return this; } /** + * + * *
      * Required. The name of the publication that includes the set of all tables
      * that are defined in the stream's include_objects.
      * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for publication to set. * @return This builder for chaining. */ - public Builder setPublicationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPublicationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); publication_ = value; bitField0_ |= 0x00000008; @@ -1191,8 +1354,10 @@ public Builder setPublicationBytes( return this; } - private int maxConcurrentBackfillTasks_ ; + private int maxConcurrentBackfillTasks_; /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -1200,6 +1365,7 @@ public Builder setPublicationBytes(
      * 
* * int32 max_concurrent_backfill_tasks = 5; + * * @return The maxConcurrentBackfillTasks. */ @java.lang.Override @@ -1207,6 +1373,8 @@ public int getMaxConcurrentBackfillTasks() { return maxConcurrentBackfillTasks_; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -1214,17 +1382,20 @@ public int getMaxConcurrentBackfillTasks() {
      * 
* * int32 max_concurrent_backfill_tasks = 5; + * * @param value The maxConcurrentBackfillTasks to set. * @return This builder for chaining. */ public Builder setMaxConcurrentBackfillTasks(int value) { - + maxConcurrentBackfillTasks_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Maximum number of concurrent backfill tasks. The number should be non
      * negative. If not set (or set to 0), the system's default value will be
@@ -1232,6 +1403,7 @@ public Builder setMaxConcurrentBackfillTasks(int value) {
      * 
* * int32 max_concurrent_backfill_tasks = 5; + * * @return This builder for chaining. */ public Builder clearMaxConcurrentBackfillTasks() { @@ -1240,9 +1412,9 @@ public Builder clearMaxConcurrentBackfillTasks() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1252,12 +1424,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlSourceConfig) private static final com.google.cloud.datastream.v1.PostgresqlSourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlSourceConfig(); } @@ -1266,27 +1438,27 @@ public static com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1301,6 +1473,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java index 2b7a768b6c8a..ccbfe53d519a 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PostgresqlSourceConfigOrBuilder extends +public interface PostgresqlSourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return Whether the includeObjects field is set. */ boolean hasIncludeObjects(); /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; + * * @return The includeObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getIncludeObjects(); /** + * + * *
    * PostgreSQL objects to include in the stream.
    * 
@@ -35,24 +59,32 @@ public interface PostgresqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjectsOrBuilder(); /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return Whether the excludeObjects field is set. */ boolean hasExcludeObjects(); /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; + * * @return The excludeObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getExcludeObjects(); /** + * + * *
    * PostgreSQL objects to exclude from the stream.
    * 
@@ -62,50 +94,66 @@ public interface PostgresqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** + * + * *
    * Required. Immutable. The name of the logical replication slot that's
    * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The replicationSlot. */ java.lang.String getReplicationSlot(); /** + * + * *
    * Required. Immutable. The name of the logical replication slot that's
    * configured with the pgoutput plugin.
    * 
* - * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for replicationSlot. */ - com.google.protobuf.ByteString - getReplicationSlotBytes(); + com.google.protobuf.ByteString getReplicationSlotBytes(); /** + * + * *
    * Required. The name of the publication that includes the set of all tables
    * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The publication. */ java.lang.String getPublication(); /** + * + * *
    * Required. The name of the publication that includes the set of all tables
    * that are defined in the stream's include_objects.
    * 
* * string publication = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for publication. */ - com.google.protobuf.ByteString - getPublicationBytes(); + com.google.protobuf.ByteString getPublicationBytes(); /** + * + * *
    * Maximum number of concurrent backfill tasks. The number should be non
    * negative. If not set (or set to 0), the system's default value will be
@@ -113,6 +161,7 @@ public interface PostgresqlSourceConfigOrBuilder extends
    * 
* * int32 max_concurrent_backfill_tasks = 5; + * * @return The maxConcurrentBackfillTasks. */ int getMaxConcurrentBackfillTasks(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java similarity index 75% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java index 4e17f11b5f8c..f01d5fb4fa8b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * PostgreSQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} */ -public final class PostgresqlTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostgresqlTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PostgresqlTable) PostgresqlTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlTable.newBuilder() to construct. private PostgresqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlTable() { table_ = ""; postgresqlColumns_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private PostgresqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlTable.class, com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); } public static final int TABLE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTable() { } public static final int POSTGRESQL_COLUMNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List postgresqlColumns_; /** + * + * *
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -109,10 +135,13 @@ public java.lang.String getTable() {
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List getPostgresqlColumnsList() {
+  public java.util.List
+      getPostgresqlColumnsList() {
     return postgresqlColumns_;
   }
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -122,11 +151,13 @@ public java.util.List getPostgr
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPostgresqlColumnsOrBuilderList() {
     return postgresqlColumns_;
   }
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -140,6 +171,8 @@ public int getPostgresqlColumnsCount() {
     return postgresqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -153,6 +186,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int
     return postgresqlColumns_.get(index);
   }
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -168,6 +203,7 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -179,8 +215,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -200,8 +235,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, table_);
     }
     for (int i = 0; i < postgresqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, postgresqlColumns_.get(i));
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(2, postgresqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,17 +246,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.PostgresqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.PostgresqlTable other = (com.google.cloud.datastream.v1.PostgresqlTable) obj;
+    com.google.cloud.datastream.v1.PostgresqlTable other =
+        (com.google.cloud.datastream.v1.PostgresqlTable) obj;
 
-    if (!getTable()
-        .equals(other.getTable())) return false;
-    if (!getPostgresqlColumnsList()
-        .equals(other.getPostgresqlColumnsList())) return false;
+    if (!getTable().equals(other.getTable())) return false;
+    if (!getPostgresqlColumnsList().equals(other.getPostgresqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -244,130 +278,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.PostgresqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1.PostgresqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * PostgreSQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PostgresqlTable} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PostgresqlTable) com.google.cloud.datastream.v1.PostgresqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PostgresqlTable.class, com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); + com.google.cloud.datastream.v1.PostgresqlTable.class, + com.google.cloud.datastream.v1.PostgresqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1.PostgresqlTable.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; } @java.lang.Override @@ -405,9 +445,12 @@ public com.google.cloud.datastream.v1.PostgresqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlTable buildPartial() { - com.google.cloud.datastream.v1.PostgresqlTable result = new com.google.cloud.datastream.v1.PostgresqlTable(this); + com.google.cloud.datastream.v1.PostgresqlTable result = + new com.google.cloud.datastream.v1.PostgresqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -435,38 +478,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PostgresqlTable result public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PostgresqlTable) { - return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable)other); + return mergeFrom((com.google.cloud.datastream.v1.PostgresqlTable) other); } else { super.mergeFrom(other); return this; @@ -498,9 +542,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlTable other) { postgresqlColumnsBuilder_ = null; postgresqlColumns_ = other.postgresqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - postgresqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPostgresqlColumnsFieldBuilder() : null; + postgresqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlColumnsFieldBuilder() + : null; } else { postgresqlColumnsBuilder_.addAllMessages(other.postgresqlColumns_); } @@ -532,30 +577,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1.PostgresqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1.PostgresqlColumn.parser(), - extensionRegistry); - if (postgresqlColumnsBuilder_ == null) { - ensurePostgresqlColumnsIsMutable(); - postgresqlColumns_.add(m); - } else { - postgresqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1.PostgresqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlColumn.parser(), + extensionRegistry); + if (postgresqlColumnsBuilder_ == null) { + ensurePostgresqlColumnsIsMutable(); + postgresqlColumns_.add(m); + } else { + postgresqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,22 +613,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object table_ = ""; /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -589,20 +640,21 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -610,28 +662,35 @@ public java.lang.String getTable() { } } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -641,17 +700,21 @@ public Builder clearTable() { return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000001; @@ -660,18 +723,26 @@ public Builder setTableBytes( } private java.util.List postgresqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePostgresqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - postgresqlColumns_ = new java.util.ArrayList(postgresqlColumns_); + postgresqlColumns_ = + new java.util.ArrayList( + postgresqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> postgresqlColumnsBuilder_; + com.google.cloud.datastream.v1.PostgresqlColumn, + com.google.cloud.datastream.v1.PostgresqlColumn.Builder, + com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> + postgresqlColumnsBuilder_; /** + * + * *
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -680,7 +751,8 @@ private void ensurePostgresqlColumnsIsMutable() {
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List getPostgresqlColumnsList() {
+    public java.util.List
+        getPostgresqlColumnsList() {
       if (postgresqlColumnsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(postgresqlColumns_);
       } else {
@@ -688,6 +760,8 @@ public java.util.List getPostgr
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -704,6 +778,8 @@ public int getPostgresqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -720,6 +796,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -743,6 +821,8 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -763,6 +843,8 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -785,6 +867,8 @@ public Builder addPostgresqlColumns(com.google.cloud.datastream.v1.PostgresqlCol
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -808,6 +892,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -828,6 +914,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -848,6 +936,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -860,8 +950,7 @@ public Builder addAllPostgresqlColumns(
         java.lang.Iterable values) {
       if (postgresqlColumnsBuilder_ == null) {
         ensurePostgresqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, postgresqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postgresqlColumns_);
         onChanged();
       } else {
         postgresqlColumnsBuilder_.addAllMessages(values);
@@ -869,6 +958,8 @@ public Builder addAllPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -888,6 +979,8 @@ public Builder clearPostgresqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -907,6 +1000,8 @@ public Builder removePostgresqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -920,6 +1015,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColu
       return getPostgresqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -931,11 +1028,14 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder getPostgresqlColu
     public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(
         int index) {
       if (postgresqlColumnsBuilder_ == null) {
-        return postgresqlColumns_.get(index);  } else {
+        return postgresqlColumns_.get(index);
+      } else {
         return postgresqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -944,8 +1044,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List 
-         getPostgresqlColumnsOrBuilderList() {
+    public java.util.List
+        getPostgresqlColumnsOrBuilderList() {
       if (postgresqlColumnsBuilder_ != null) {
         return postgresqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -953,6 +1053,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -962,10 +1064,12 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
     public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder() {
-      return getPostgresqlColumnsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
+      return getPostgresqlColumnsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -976,10 +1080,12 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
      */
     public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColumnsBuilder(
         int index) {
-      return getPostgresqlColumnsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
+      return getPostgresqlColumnsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1.PostgresqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -988,16 +1094,22 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
      *
      * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
      */
-    public java.util.List 
-         getPostgresqlColumnsBuilderList() {
+    public java.util.List
+        getPostgresqlColumnsBuilderList() {
       return getPostgresqlColumnsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder> 
+            com.google.cloud.datastream.v1.PostgresqlColumn,
+            com.google.cloud.datastream.v1.PostgresqlColumn.Builder,
+            com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>
         getPostgresqlColumnsFieldBuilder() {
       if (postgresqlColumnsBuilder_ == null) {
-        postgresqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.PostgresqlColumn, com.google.cloud.datastream.v1.PostgresqlColumn.Builder, com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>(
+        postgresqlColumnsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1.PostgresqlColumn,
+                com.google.cloud.datastream.v1.PostgresqlColumn.Builder,
+                com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder>(
                 postgresqlColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1006,9 +1118,9 @@ public com.google.cloud.datastream.v1.PostgresqlColumn.Builder addPostgresqlColu
       }
       return postgresqlColumnsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1018,12 +1130,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PostgresqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PostgresqlTable)
   private static final com.google.cloud.datastream.v1.PostgresqlTable DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PostgresqlTable();
   }
@@ -1032,27 +1144,27 @@ public static com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstance(
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public PostgresqlTable parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public PostgresqlTable parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1067,6 +1179,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
index 6511bf82a274..fb3ec0685526 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface PostgresqlTableOrBuilder extends
+public interface PostgresqlTableOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PostgresqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); /** + * + * *
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -36,9 +59,10 @@ public interface PostgresqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  java.util.List 
-      getPostgresqlColumnsList();
+  java.util.List getPostgresqlColumnsList();
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -49,6 +73,8 @@ public interface PostgresqlTableOrBuilder extends
    */
   com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int index);
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -59,6 +85,8 @@ public interface PostgresqlTableOrBuilder extends
    */
   int getPostgresqlColumnsCount();
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -67,9 +95,11 @@ public interface PostgresqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  java.util.List 
+  java.util.List
       getPostgresqlColumnsOrBuilderList();
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -78,6 +108,5 @@ public interface PostgresqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.PostgresqlColumn postgresql_columns = 2;
    */
-  com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlColumnsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
similarity index 64%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
index cd9b9f1681b7..48e68c9bf256 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * The PrivateConnection resource is used to establish private connectivity
  * between Datastream and a customer's network.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection}
  */
-public final class PrivateConnection extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PrivateConnection)
     PrivateConnectionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PrivateConnection.newBuilder() to construct.
   private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PrivateConnection() {
     name_ = "";
     displayName_ = "";
@@ -28,51 +46,54 @@ private PrivateConnection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PrivateConnection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.PrivateConnection.class, com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
+            com.google.cloud.datastream.v1.PrivateConnection.class,
+            com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Private Connection state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.PrivateConnection.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -81,6 +102,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -89,6 +112,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -97,6 +122,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -105,6 +132,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The private connection is being deleted.
      * 
@@ -113,6 +142,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -124,6 +155,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -132,6 +165,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -140,6 +175,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -148,6 +185,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -156,6 +195,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The private connection is being deleted.
      * 
@@ -164,6 +205,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -172,7 +215,6 @@ public enum State */ public static final int FAILED_TO_DELETE_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -197,52 +239,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return CREATED; - case 3: return FAILED; - case 4: return DELETING; - case 5: return FAILED_TO_DELETE; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return CREATED; + case 3: + return FAILED; + case 4: + return DELETING; + case 5: + return FAILED_TO_DELETE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.PrivateConnection.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -260,14 +305,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -276,29 +325,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -309,11 +358,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -321,11 +374,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -333,11 +390,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -347,11 +407,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -359,11 +423,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -371,11 +439,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -383,32 +454,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -416,20 +489,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -441,6 +515,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -448,17 +524,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -466,11 +544,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -478,14 +556,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -494,29 +576,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -527,38 +609,57 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnection.State getState() { + com.google.cloud.datastream.v1.PrivateConnection.State result = + com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.Error error_; /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ @java.lang.Override @@ -566,12 +667,16 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ @java.lang.Override @@ -579,12 +684,15 @@ public com.google.cloud.datastream.v1.Error getError() { return error_ == null ? com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { @@ -594,11 +702,14 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { public static final int VPC_PEERING_CONFIG_FIELD_NUMBER = 100; private com.google.cloud.datastream.v1.VpcPeeringConfig vpcPeeringConfig_; /** + * + * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ @java.lang.Override @@ -606,18 +717,25 @@ public boolean hasVpcPeeringConfig() { return vpcPeeringConfig_ != null; } /** + * + * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } /** + * + * *
    * VPC Peering Config.
    * 
@@ -626,10 +744,13 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -641,8 +762,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -652,16 +772,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (state_ != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (error_ != null) { @@ -683,37 +800,33 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (state_ != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.datastream.v1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); } if (vpcPeeringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getVpcPeeringConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getVpcPeeringConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -723,39 +836,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PrivateConnection)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PrivateConnection other = (com.google.cloud.datastream.v1.PrivateConnection) obj; + com.google.cloud.datastream.v1.PrivateConnection other = + (com.google.cloud.datastream.v1.PrivateConnection) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; if (hasVpcPeeringConfig()) { - if (!getVpcPeeringConfig() - .equals(other.getVpcPeeringConfig())) return false; + if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -799,97 +906,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PrivateConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The PrivateConnection resource is used to establish private connectivity
    * between Datastream and a customer's network.
@@ -897,55 +1011,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PrivateConnection)
       com.google.cloud.datastream.v1.PrivateConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.PrivateConnection.class, com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
+              com.google.cloud.datastream.v1.PrivateConnection.class,
+              com.google.cloud.datastream.v1.PrivateConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.PrivateConnection.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -978,9 +1089,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor;
     }
 
     @java.lang.Override
@@ -999,8 +1110,11 @@ public com.google.cloud.datastream.v1.PrivateConnection build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.PrivateConnection buildPartial() {
-      com.google.cloud.datastream.v1.PrivateConnection result = new com.google.cloud.datastream.v1.PrivateConnection(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1.PrivateConnection result =
+          new com.google.cloud.datastream.v1.PrivateConnection(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1011,14 +1125,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -1031,14 +1141,11 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.vpcPeeringConfig_ = vpcPeeringConfigBuilder_ == null
-            ? vpcPeeringConfig_
-            : vpcPeeringConfigBuilder_.build();
+        result.vpcPeeringConfig_ =
+            vpcPeeringConfigBuilder_ == null ? vpcPeeringConfig_ : vpcPeeringConfigBuilder_.build();
       }
     }
 
@@ -1046,38 +1153,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnection resu
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.PrivateConnection) {
-        return mergeFrom((com.google.cloud.datastream.v1.PrivateConnection)other);
+        return mergeFrom((com.google.cloud.datastream.v1.PrivateConnection) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1085,7 +1193,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnection other) {
-      if (other == com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1097,8 +1206,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnection other)
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1140,64 +1248,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 802: {
-              input.readMessage(
-                  getVpcPeeringConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 802
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 802:
+              {
+                input.readMessage(
+                    getVpcPeeringConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 802
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1207,22 +1319,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1231,20 +1346,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1252,28 +1368,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1283,17 +1406,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1303,39 +1430,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1351,14 +1497,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1369,17 +1518,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1392,11 +1545,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1409,11 +1566,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1421,36 +1582,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1458,39 +1631,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1506,14 +1698,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1524,17 +1719,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1547,11 +1746,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1564,11 +1767,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1576,56 +1783,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1634,10 +1851,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -1645,20 +1865,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -1670,6 +1891,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1677,17 +1900,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1695,91 +1920,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1788,20 +2017,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1809,28 +2039,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1840,17 +2077,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1860,22 +2101,33 @@ public Builder setDisplayNameBytes( private int state_ = 0; /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1886,24 +2138,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.PrivateConnection.State result = + com.google.cloud.datastream.v1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1.PrivateConnection.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1917,11 +2182,16 @@ public Builder setState(com.google.cloud.datastream.v1.PrivateConnection.State v return this; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1933,26 +2203,39 @@ public Builder clearState() { private com.google.cloud.datastream.v1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorBuilder_; + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ public com.google.cloud.datastream.v1.Error getError() { @@ -1963,12 +2246,16 @@ public com.google.cloud.datastream.v1.Error getError() { } } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError(com.google.cloud.datastream.v1.Error value) { if (errorBuilder_ == null) { @@ -1984,15 +2271,18 @@ public Builder setError(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError( - com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -2003,18 +2293,22 @@ public Builder setError( return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - error_ != null && - error_ != com.google.cloud.datastream.v1.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && error_ != null + && error_ != com.google.cloud.datastream.v1.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -2027,12 +2321,16 @@ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2045,12 +2343,16 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -2058,38 +2360,48 @@ public com.google.cloud.datastream.v1.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; + return error_ == null ? com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; } } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -2097,34 +2409,47 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { private com.google.cloud.datastream.v1.VpcPeeringConfig vpcPeeringConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> vpcPeeringConfigBuilder_; + com.google.cloud.datastream.v1.VpcPeeringConfig, + com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> + vpcPeeringConfigBuilder_; /** + * + * *
      * VPC Peering Config.
      * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ public boolean hasVpcPeeringConfig() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * VPC Peering Config.
      * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ public com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig() { if (vpcPeeringConfigBuilder_ == null) { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } else { return vpcPeeringConfigBuilder_.getMessage(); } } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2145,6 +2470,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConf return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2163,6 +2490,8 @@ public Builder setVpcPeeringConfig( return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2171,9 +2500,10 @@ public Builder setVpcPeeringConfig( */ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - vpcPeeringConfig_ != null && - vpcPeeringConfig_ != com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && vpcPeeringConfig_ != null + && vpcPeeringConfig_ + != com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) { getVpcPeeringConfigBuilder().mergeFrom(value); } else { vpcPeeringConfig_ = value; @@ -2186,6 +2516,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringCo return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2203,6 +2535,8 @@ public Builder clearVpcPeeringConfig() { return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2215,6 +2549,8 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig.Builder getVpcPeeringConf return getVpcPeeringConfigFieldBuilder().getBuilder(); } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2225,11 +2561,14 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon if (vpcPeeringConfigBuilder_ != null) { return vpcPeeringConfigBuilder_.getMessageOrBuilder(); } else { - return vpcPeeringConfig_ == null ? - com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2237,21 +2576,24 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> + com.google.cloud.datastream.v1.VpcPeeringConfig, + com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder> getVpcPeeringConfigFieldBuilder() { if (vpcPeeringConfigBuilder_ == null) { - vpcPeeringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.VpcPeeringConfig, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder>( - getVpcPeeringConfig(), - getParentForChildren(), - isClean()); + vpcPeeringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.VpcPeeringConfig, + com.google.cloud.datastream.v1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder>( + getVpcPeeringConfig(), getParentForChildren(), isClean()); vpcPeeringConfig_ = null; } return vpcPeeringConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2261,12 +2603,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PrivateConnection) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PrivateConnection) private static final com.google.cloud.datastream.v1.PrivateConnection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PrivateConnection(); } @@ -2275,27 +2617,27 @@ public static com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2310,6 +2652,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index 722a471dbf2d..fcb83752892b 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface PrivateConnectionOrBuilder extends +public interface PrivateConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface PrivateConnectionOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,108 +167,143 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.datastream.v1.PrivateConnection.State getState(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ com.google.cloud.datastream.v1.Error getError(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder(); /** + * + * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ boolean hasVpcPeeringConfig(); /** + * + * *
    * VPC Peering Config.
    * 
* * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ com.google.cloud.datastream.v1.VpcPeeringConfig getVpcPeeringConfig(); /** + * + * *
    * VPC Peering Config.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java index e4339c098c29..a3a252d4e6fb 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Private Connectivity
  * 
* * Protobuf type {@code google.cloud.datastream.v1.PrivateConnectivity} */ -public final class PrivateConnectivity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PrivateConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PrivateConnectivity) PrivateConnectivityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateConnectivity.newBuilder() to construct. private PrivateConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateConnectivity() { privateConnection_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PrivateConnectivity.class, com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1.PrivateConnectivity.class, + com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); } public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object privateConnection_ = ""; /** + * + * *
    * Required. A reference to a private connection resource.
    * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
    * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The privateConnection. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getPrivateConnection() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnection_ = s; return s; } } /** + * + * *
    * Required. A reference to a private connection resource.
    * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
    * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for privateConnection. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateConnectionBytes() { + public com.google.protobuf.ByteString getPrivateConnectionBytes() { java.lang.Object ref = privateConnection_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnection_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getPrivateConnection() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnection_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.PrivateConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1.PrivateConnectivity other = (com.google.cloud.datastream.v1.PrivateConnectivity) obj; + com.google.cloud.datastream.v1.PrivateConnectivity other = + (com.google.cloud.datastream.v1.PrivateConnectivity) obj; - if (!getPrivateConnection() - .equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.PrivateConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Private Connectivity
    * 
* * Protobuf type {@code google.cloud.datastream.v1.PrivateConnectivity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.PrivateConnectivity) com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.PrivateConnectivity.class, com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1.PrivateConnectivity.class, + com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; } @java.lang.Override @@ -315,8 +348,11 @@ public com.google.cloud.datastream.v1.PrivateConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1.PrivateConnectivity buildPartial() { - com.google.cloud.datastream.v1.PrivateConnectivity result = new com.google.cloud.datastream.v1.PrivateConnectivity(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.PrivateConnectivity result = + new com.google.cloud.datastream.v1.PrivateConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.PrivateConnectivity re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.PrivateConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1.PrivateConnectivity)other); + return mergeFrom((com.google.cloud.datastream.v1.PrivateConnectivity) other); } else { super.mergeFrom(other); return this; @@ -371,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnectivity other) { - if (other == com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) + return this; if (!other.getPrivateConnection().isEmpty()) { privateConnection_ = other.privateConnection_; bitField0_ |= 0x00000001; @@ -403,17 +441,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - privateConnection_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + privateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +463,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object privateConnection_ = ""; /** + * + * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The privateConnection. */ public java.lang.String getPrivateConnection() { java.lang.Object ref = privateConnection_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnection_ = s; return s; @@ -448,21 +493,24 @@ public java.lang.String getPrivateConnection() { } } /** + * + * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for privateConnection. */ - public com.google.protobuf.ByteString - getPrivateConnectionBytes() { + public com.google.protobuf.ByteString getPrivateConnectionBytes() { java.lang.Object ref = privateConnection_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnection_ = b; return b; } else { @@ -470,30 +518,41 @@ public java.lang.String getPrivateConnection() { } } /** + * + * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The privateConnection to set. * @return This builder for chaining. */ - public Builder setPrivateConnection( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } privateConnection_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPrivateConnection() { @@ -503,27 +562,33 @@ public Builder clearPrivateConnection() { return this; } /** + * + * *
      * Required. A reference to a private connection resource.
      * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
      * 
* - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for privateConnection to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); privateConnection_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.PrivateConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.PrivateConnectivity) private static final com.google.cloud.datastream.v1.PrivateConnectivity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.PrivateConnectivity(); } @@ -547,27 +612,27 @@ public static com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java new file mode 100644 index 000000000000..b94918ad065c --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PrivateConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The privateConnection. + */ + java.lang.String getPrivateConnection(); + /** + * + * + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for privateConnection. + */ + com.google.protobuf.ByteString getPrivateConnectionBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java index 37e52effdb87..b68ebdaad30a 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * The route resource is the child of the private connection resource,
  * used for defining a route for a private connection.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.Route}
  */
-public final class Route extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Route extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Route)
     RouteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Route() {
     name_ = "";
     displayName_ = "";
@@ -28,50 +46,54 @@ private Route() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Route();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_Route_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.Route.class, com.google.cloud.datastream.v1.Route.Builder.class);
+            com.google.cloud.datastream.v1.Route.class,
+            com.google.cloud.datastream.v1.Route.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -80,29 +102,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -113,11 +135,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -125,11 +151,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -137,11 +167,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -151,11 +184,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -163,11 +200,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -175,11 +216,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -187,32 +231,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -220,20 +266,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -245,6 +292,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -252,17 +301,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -270,11 +321,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -282,14 +333,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -298,29 +353,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -329,14 +384,18 @@ public java.lang.String getDisplayName() { } public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object destinationAddress_ = ""; /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ @java.lang.Override @@ -345,29 +404,29 @@ public java.lang.String getDestinationAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; } } /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationAddressBytes() { + public com.google.protobuf.ByteString getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -378,11 +437,14 @@ public java.lang.String getDestinationAddress() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_ = 0; /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -391,6 +453,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -402,8 +465,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -413,12 +475,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -441,22 +499,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -465,8 +521,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, destinationPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationPort_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -476,33 +531,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Route)) { return super.equals(obj); } com.google.cloud.datastream.v1.Route other = (com.google.cloud.datastream.v1.Route) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDestinationAddress() - .equals(other.getDestinationAddress())) return false; - if (getDestinationPort() - != other.getDestinationPort()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDestinationAddress().equals(other.getDestinationAddress())) return false; + if (getDestinationPort() != other.getDestinationPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,97 +587,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Route parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Route parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Route parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Route parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.datastream.v1.Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Route parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Route parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Route parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Route parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Route parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Route parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The route resource is the child of the private connection resource,
    * used for defining a route for a private connection.
@@ -637,55 +691,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.Route}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Route)
       com.google.cloud.datastream.v1.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_Route_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.Route.class, com.google.cloud.datastream.v1.Route.Builder.class);
+              com.google.cloud.datastream.v1.Route.class,
+              com.google.cloud.datastream.v1.Route.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.Route.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -709,9 +760,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_Route_descriptor;
     }
 
     @java.lang.Override
@@ -731,7 +782,9 @@ public com.google.cloud.datastream.v1.Route build() {
     @java.lang.Override
     public com.google.cloud.datastream.v1.Route buildPartial() {
       com.google.cloud.datastream.v1.Route result = new com.google.cloud.datastream.v1.Route(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -742,14 +795,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.Route result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -770,38 +819,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.Route result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.Route) {
-        return mergeFrom((com.google.cloud.datastream.v1.Route)other);
+        return mergeFrom((com.google.cloud.datastream.v1.Route) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,8 +871,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Route other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -863,55 +912,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              destinationAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 56: {
-              destinationPort_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                destinationAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 56:
+              {
+                destinationPort_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -921,22 +976,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -945,20 +1003,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -966,28 +1025,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -997,17 +1063,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1017,39 +1087,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1065,14 +1154,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1083,17 +1175,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1106,11 +1202,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1123,11 +1223,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1135,36 +1239,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1172,39 +1288,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1220,14 +1355,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1238,17 +1376,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1261,11 +1403,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1278,11 +1424,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1290,56 +1440,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1348,10 +1508,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -1359,20 +1522,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -1384,6 +1548,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1391,17 +1557,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1409,91 +1577,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1502,20 +1674,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1523,28 +1696,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1554,17 +1734,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1574,18 +1758,20 @@ public Builder setDisplayNameBytes( private java.lang.Object destinationAddress_ = ""; /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ public java.lang.String getDestinationAddress() { java.lang.Object ref = destinationAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; @@ -1594,20 +1780,21 @@ public java.lang.String getDestinationAddress() { } } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ - public com.google.protobuf.ByteString - getDestinationAddressBytes() { + public com.google.protobuf.ByteString getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -1615,28 +1802,35 @@ public java.lang.String getDestinationAddress() { } } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationAddress_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestinationAddress() { @@ -1646,17 +1840,21 @@ public Builder clearDestinationAddress() { return this; } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationAddress_ = value; bitField0_ |= 0x00000020; @@ -1664,13 +1862,16 @@ public Builder setDestinationAddressBytes( return this; } - private int destinationPort_ ; + private int destinationPort_; /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -1678,27 +1879,33 @@ public int getDestinationPort() { return destinationPort_; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return This builder for chaining. */ public Builder clearDestinationPort() { @@ -1707,9 +1914,9 @@ public Builder clearDestinationPort() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1719,12 +1926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Route) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Route) private static final com.google.cloud.datastream.v1.Route DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Route(); } @@ -1733,27 +1940,27 @@ public static com.google.cloud.datastream.v1.Route getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1768,6 +1975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java index 27ffcfce6c3e..4fa669870cd2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface RouteOrBuilder extends +public interface RouteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Route) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface RouteOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,66 +167,80 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ java.lang.String getDestinationAddress(); /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ - com.google.protobuf.ByteString - getDestinationAddressBytes(); + com.google.protobuf.ByteString getDestinationAddressBytes(); /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ int getDestinationPort(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index 7c6adccc4fcc..72bf77beadb7 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -1,63 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * The configuration of the stream source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceConfig} */ -public final class SourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceConfig) SourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceConfig.newBuilder() to construct. private SourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SourceConfig() { sourceConnectionProfile_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceConfig.class, com.google.cloud.datastream.v1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1.SourceConfig.class, + com.google.cloud.datastream.v1.SourceConfig.Builder.class); } private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; + public enum SourceStreamConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), POSTGRESQL_SOURCE_CONFIG(102), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; + private SourceStreamConfigCase(int value) { this.value = value; } @@ -73,34 +95,44 @@ public static SourceStreamConfigCase valueOf(int value) { public static SourceStreamConfigCase forNumber(int value) { switch (value) { - case 100: return ORACLE_SOURCE_CONFIG; - case 101: return MYSQL_SOURCE_CONFIG; - case 102: return POSTGRESQL_SOURCE_CONFIG; - case 0: return SOURCESTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return ORACLE_SOURCE_CONFIG; + case 101: + return MYSQL_SOURCE_CONFIG; + case 102: + return POSTGRESQL_SOURCE_CONFIG; + case 0: + return SOURCESTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceStreamConfigCase - getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber( - sourceStreamConfigCase_); + public SourceStreamConfigCase getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); } public static final int SOURCE_CONNECTION_PROFILE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceConnectionProfile_ = ""; /** + * + * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sourceConnectionProfile. */ @java.lang.Override @@ -109,30 +141,32 @@ public java.lang.String getSourceConnectionProfile() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfile_ = s; return s; } } /** + * + * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sourceConnectionProfile. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceConnectionProfileBytes() { + public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { java.lang.Object ref = sourceConnectionProfile_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceConnectionProfile_ = b; return b; } else { @@ -142,11 +176,14 @@ public java.lang.String getSourceConnectionProfile() { public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER = 100; /** + * + * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -154,21 +191,26 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** + * + * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } /** + * + * *
    * Oracle data source configuration.
    * 
@@ -176,20 +218,24 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder + getOracleSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER = 101; /** + * + * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -197,21 +243,26 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** + * + * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } /** + * + * *
    * MySQL data source configuration.
    * 
@@ -221,18 +272,21 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } public static final int POSTGRESQL_SOURCE_CONFIG_FIELD_NUMBER = 102; /** + * + * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * * @return Whether the postgresqlSourceConfig field is set. */ @java.lang.Override @@ -240,21 +294,26 @@ public boolean hasPostgresqlSourceConfig() { return sourceStreamConfigCase_ == 102; } /** + * + * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * * @return The postgresqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig() { if (sourceStreamConfigCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } /** + * + * *
    * PostgreSQL data source configuration.
    * 
@@ -262,14 +321,16 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSource * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 102) { - return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,19 +342,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceConnectionProfile_); } if (sourceStreamConfigCase_ == 100) { - output.writeMessage(100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); + output.writeMessage( + 100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + output.writeMessage( + 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 102) { - output.writeMessage(102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + output.writeMessage( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } getUnknownFields().writeTo(output); } @@ -308,16 +371,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfile_); } if (sourceStreamConfigCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -327,28 +393,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.SourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceConfig other = (com.google.cloud.datastream.v1.SourceConfig) obj; + com.google.cloud.datastream.v1.SourceConfig other = + (com.google.cloud.datastream.v1.SourceConfig) obj; - if (!getSourceConnectionProfile() - .equals(other.getSourceConnectionProfile())) return false; + if (!getSourceConnectionProfile().equals(other.getSourceConnectionProfile())) return false; if (!getSourceStreamConfigCase().equals(other.getSourceStreamConfigCase())) return false; switch (sourceStreamConfigCase_) { case 100: - if (!getOracleSourceConfig() - .equals(other.getOracleSourceConfig())) return false; + if (!getOracleSourceConfig().equals(other.getOracleSourceConfig())) return false; break; case 101: - if (!getMysqlSourceConfig() - .equals(other.getMysqlSourceConfig())) return false; + if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; break; case 102: - if (!getPostgresqlSourceConfig() - .equals(other.getPostgresqlSourceConfig())) return false; + if (!getPostgresqlSourceConfig().equals(other.getPostgresqlSourceConfig())) return false; break; case 0: default: @@ -387,130 +450,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.SourceConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.SourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the stream source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceConfig) com.google.cloud.datastream.v1.SourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceConfig.class, com.google.cloud.datastream.v1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1.SourceConfig.class, + com.google.cloud.datastream.v1.SourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1.SourceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -531,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; } @java.lang.Override @@ -552,8 +621,11 @@ public com.google.cloud.datastream.v1.SourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1.SourceConfig buildPartial() { - com.google.cloud.datastream.v1.SourceConfig result = new com.google.cloud.datastream.v1.SourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.SourceConfig result = + new com.google.cloud.datastream.v1.SourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -569,16 +641,13 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceConfig result) { private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig result) { result.sourceStreamConfigCase_ = sourceStreamConfigCase_; result.sourceStreamConfig_ = this.sourceStreamConfig_; - if (sourceStreamConfigCase_ == 100 && - oracleSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 100 && oracleSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = oracleSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 101 && - mysqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 101 && mysqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 102 && - postgresqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 102 && postgresqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = postgresqlSourceConfigBuilder_.build(); } } @@ -587,38 +656,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceConfig resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.SourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1.SourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1.SourceConfig) other); } else { super.mergeFrom(other); return this; @@ -633,21 +703,25 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { onChanged(); } switch (other.getSourceStreamConfigCase()) { - case ORACLE_SOURCE_CONFIG: { - mergeOracleSourceConfig(other.getOracleSourceConfig()); - break; - } - case MYSQL_SOURCE_CONFIG: { - mergeMysqlSourceConfig(other.getMysqlSourceConfig()); - break; - } - case POSTGRESQL_SOURCE_CONFIG: { - mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); - break; - } - case SOURCESTREAMCONFIG_NOT_SET: { - break; - } + case ORACLE_SOURCE_CONFIG: + { + mergeOracleSourceConfig(other.getOracleSourceConfig()); + break; + } + case MYSQL_SOURCE_CONFIG: + { + mergeMysqlSourceConfig(other.getMysqlSourceConfig()); + break; + } + case POSTGRESQL_SOURCE_CONFIG: + { + mergePostgresqlSourceConfig(other.getPostgresqlSourceConfig()); + break; + } + case SOURCESTREAMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -675,38 +749,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceConnectionProfile_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: { - input.readMessage( - getOracleSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - sourceStreamConfigCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - sourceStreamConfigCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getPostgresqlSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - sourceStreamConfigCase_ = 102; - break; - } // case 818 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceConnectionProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: + { + input.readMessage( + getOracleSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getMysqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage( + getPostgresqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -716,12 +792,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - public SourceStreamConfigCase - getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber( - sourceStreamConfigCase_); + + public SourceStreamConfigCase getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); } public Builder clearSourceStreamConfig() { @@ -735,19 +811,23 @@ public Builder clearSourceStreamConfig() { private java.lang.Object sourceConnectionProfile_ = ""; /** + * + * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sourceConnectionProfile. */ public java.lang.String getSourceConnectionProfile() { java.lang.Object ref = sourceConnectionProfile_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfile_ = s; return s; @@ -756,21 +836,24 @@ public java.lang.String getSourceConnectionProfile() { } } /** + * + * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sourceConnectionProfile. */ - public com.google.protobuf.ByteString - getSourceConnectionProfileBytes() { + public com.google.protobuf.ByteString getSourceConnectionProfileBytes() { java.lang.Object ref = sourceConnectionProfile_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceConnectionProfile_ = b; return b; } else { @@ -778,30 +861,41 @@ public java.lang.String getSourceConnectionProfile() { } } /** + * + * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The sourceConnectionProfile to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfile( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceConnectionProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceConnectionProfile_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearSourceConnectionProfile() { @@ -811,18 +905,24 @@ public Builder clearSourceConnectionProfile() { return this; } /** + * + * *
      * Required. Source connection profile resoource.
      * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
      * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sourceConnectionProfile to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceConnectionProfile_ = value; bitField0_ |= 0x00000001; @@ -831,13 +931,19 @@ public Builder setSourceConnectionProfileBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> oracleSourceConfigBuilder_; + com.google.cloud.datastream.v1.OracleSourceConfig, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> + oracleSourceConfigBuilder_; /** + * + * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -845,11 +951,14 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** + * + * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ @java.lang.Override @@ -867,6 +976,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() } } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -887,6 +998,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -905,18 +1018,25 @@ public Builder setOracleSourceConfig( return this; } /** + * + * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ - public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1.OracleSourceConfig value) { + public Builder mergeOracleSourceConfig( + com.google.cloud.datastream.v1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 100 && - sourceStreamConfig_ != com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder((com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_) - .mergeFrom(value).buildPartial(); + if (sourceStreamConfigCase_ == 100 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceStreamConfig_ = value; } @@ -932,6 +1052,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1.OracleSour return this; } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -955,16 +1077,21 @@ public Builder clearOracleSourceConfig() { return this; } /** + * + * *
      * Oracle data source configuration.
      * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ - public com.google.cloud.datastream.v1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfig.Builder + getOracleSourceConfigBuilder() { return getOracleSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -972,7 +1099,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig.Builder getOracleSource * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder + getOracleSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { return oracleSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -983,6 +1111,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourc } } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -990,14 +1120,20 @@ public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourc * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> + com.google.cloud.datastream.v1.OracleSourceConfig, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder> getOracleSourceConfigFieldBuilder() { if (oracleSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 100)) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = + com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); } - oracleSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleSourceConfig, com.google.cloud.datastream.v1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder>( + oracleSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleSourceConfig, + com.google.cloud.datastream.v1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1009,13 +1145,19 @@ public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourc } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> mysqlSourceConfigBuilder_; + com.google.cloud.datastream.v1.MysqlSourceConfig, + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> + mysqlSourceConfigBuilder_; /** + * + * *
      * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -1023,11 +1165,14 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** + * + * *
      * MySQL data source configuration.
      * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ @java.lang.Override @@ -1045,6 +1190,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { } } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1065,6 +1212,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1083,6 +1232,8 @@ public Builder setMysqlSourceConfig( return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1091,10 +1242,14 @@ public Builder setMysqlSourceConfig( */ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 101 && - sourceStreamConfig_ != com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value).buildPartial(); + if (sourceStreamConfigCase_ == 101 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1110,6 +1265,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1133,6 +1290,8 @@ public Builder clearMysqlSourceConfig() { return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1143,6 +1302,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1150,7 +1311,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder + getMysqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { return mysqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1161,6 +1323,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC } } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1168,14 +1332,20 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1.MysqlSourceConfig, + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder> getMysqlSourceConfigFieldBuilder() { if (mysqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 101)) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = + com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); } - mysqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlSourceConfig, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder>( + mysqlSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlSourceConfig, + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1187,13 +1357,20 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> postgresqlSourceConfigBuilder_; + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + postgresqlSourceConfigBuilder_; /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * * @return Whether the postgresqlSourceConfig field is set. */ @java.lang.Override @@ -1201,11 +1378,15 @@ public boolean hasPostgresqlSourceConfig() { return sourceStreamConfigCase_ == 102; } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * + * * @return The postgresqlSourceConfig. */ @java.lang.Override @@ -1223,13 +1404,17 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSource } } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ - public Builder setPostgresqlSourceConfig(com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + public Builder setPostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { if (postgresqlSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1243,11 +1428,14 @@ public Builder setPostgresqlSourceConfig(com.google.cloud.datastream.v1.Postgres return this; } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ public Builder setPostgresqlSourceConfig( com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder builderForValue) { @@ -1261,18 +1449,26 @@ public Builder setPostgresqlSourceConfig( return this; } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ - public Builder mergePostgresqlSourceConfig(com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { + public Builder mergePostgresqlSourceConfig( + com.google.cloud.datastream.v1.PostgresqlSourceConfig value) { if (postgresqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 102 && - sourceStreamConfig_ != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value).buildPartial(); + if (sourceStreamConfigCase_ == 102 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1288,11 +1484,14 @@ public Builder mergePostgresqlSourceConfig(com.google.cloud.datastream.v1.Postgr return this; } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ public Builder clearPostgresqlSourceConfig() { if (postgresqlSourceConfigBuilder_ == null) { @@ -1311,24 +1510,32 @@ public Builder clearPostgresqlSourceConfig() { return this; } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ - public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder getPostgresqlSourceConfigBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder + getPostgresqlSourceConfigBuilder() { return getPostgresqlSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 102) && (postgresqlSourceConfigBuilder_ != null)) { return postgresqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1339,21 +1546,30 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgre } } /** + * + * *
      * PostgreSQL data source configuration.
      * 
* - * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder> getPostgresqlSourceConfigFieldBuilder() { if (postgresqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 102)) { - sourceStreamConfig_ = com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = + com.google.cloud.datastream.v1.PostgresqlSourceConfig.getDefaultInstance(); } - postgresqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlSourceConfig, com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( + postgresqlSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlSourceConfig, + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder, + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1363,9 +1579,9 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgre onChanged(); return postgresqlSourceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1375,12 +1591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceConfig) private static final com.google.cloud.datastream.v1.SourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceConfig(); } @@ -1389,27 +1605,27 @@ public static com.google.cloud.datastream.v1.SourceConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1424,6 +1640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index 23688e593279..bf914fd298dd 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface SourceConfigOrBuilder extends +public interface SourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The sourceConnectionProfile. */ java.lang.String getSourceConnectionProfile(); /** + * + * *
    * Required. Source connection profile resoource.
    * Format: `projects/{project}/locations/{location}/connectionProfiles/{name}`
    * 
* - * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string source_connection_profile = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for sourceConnectionProfile. */ - com.google.protobuf.ByteString - getSourceConnectionProfileBytes(); + com.google.protobuf.ByteString getSourceConnectionProfileBytes(); /** + * + * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ boolean hasOracleSourceConfig(); /** + * + * *
    * Oracle data source configuration.
    * 
* * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig(); /** + * + * *
    * Oracle data source configuration.
    * 
@@ -57,24 +90,32 @@ public interface SourceConfigOrBuilder extends com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder(); /** + * + * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ boolean hasMysqlSourceConfig(); /** + * + * *
    * MySQL data source configuration.
    * 
* * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig(); /** + * + * *
    * MySQL data source configuration.
    * 
@@ -84,31 +125,41 @@ public interface SourceConfigOrBuilder extends com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); /** + * + * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * * @return Whether the postgresqlSourceConfig field is set. */ boolean hasPostgresqlSourceConfig(); /** + * + * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; + * * @return The postgresqlSourceConfig. */ com.google.cloud.datastream.v1.PostgresqlSourceConfig getPostgresqlSourceConfig(); /** + * + * *
    * PostgreSQL data source configuration.
    * 
* * .google.cloud.datastream.v1.PostgresqlSourceConfig postgresql_source_config = 102; */ - com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder getPostgresqlSourceConfigOrBuilder(); + com.google.cloud.datastream.v1.PostgresqlSourceConfigOrBuilder + getPostgresqlSourceConfigOrBuilder(); - public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); + public com.google.cloud.datastream.v1.SourceConfig.SourceStreamConfigCase + getSourceStreamConfigCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java similarity index 59% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index a3dc4c7cc0b6..cbafe1a9285c 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -1,112 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Represents an identifier of an object in the data source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier} */ -public final class SourceObjectIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SourceObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier) SourceObjectIdentifierOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceObjectIdentifier.newBuilder() to construct. private SourceObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SourceObjectIdentifier() { - } + + private SourceObjectIdentifier() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); } - public interface OracleObjectIdentifierOrBuilder extends + public interface OracleObjectIdentifierOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); } /** + * + * *
    * Oracle data source object identifier.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} */ - public static final class OracleObjectIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class OracleObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) OracleObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleObjectIdentifier.newBuilder() to construct. private OracleObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleObjectIdentifier() { schema_ = ""; table_ = ""; @@ -114,38 +146,44 @@ private OracleObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + .class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -154,29 +192,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -185,14 +223,18 @@ public java.lang.String getSchema() { } public static final int TABLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -201,29 +243,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -232,6 +274,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -274,17 +316,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)) { + if (!(obj + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) obj; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getTable() - .equals(other.getTable())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -305,88 +348,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -396,39 +452,44 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + .class); } - // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -439,19 +500,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -459,14 +523,19 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result) { + private void buildPartial0( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -480,46 +549,55 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { - return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier)other); + if (other + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -556,22 +634,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -581,22 +662,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -605,20 +689,21 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -626,28 +711,35 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -657,17 +749,21 @@ public Builder clearSchema() { return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -677,18 +773,20 @@ public Builder setSchemaBytes( private java.lang.Object table_ = ""; /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -697,20 +795,21 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -718,28 +817,35 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -749,23 +855,28 @@ public Builder clearTable() { return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -778,41 +889,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .OracleObjectIdentifier + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -824,72 +940,88 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface PostgresqlObjectIdentifierOrBuilder extends + public interface PostgresqlObjectIdentifierOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ java.lang.String getSchema(); /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ - com.google.protobuf.ByteString - getSchemaBytes(); + com.google.protobuf.ByteString getSchemaBytes(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); } /** + * + * *
    * PostgreSQL data source object identifier.
    * 
* - * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} */ - public static final class PostgresqlObjectIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class PostgresqlObjectIdentifier + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) PostgresqlObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostgresqlObjectIdentifier.newBuilder() to construct. private PostgresqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostgresqlObjectIdentifier() { schema_ = ""; table_ = ""; @@ -897,38 +1029,45 @@ private PostgresqlObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostgresqlObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); } public static final int SCHEMA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schema_ = ""; /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -937,29 +1076,29 @@ public java.lang.String getSchema() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; } } /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -968,14 +1107,18 @@ public java.lang.String getSchema() { } public static final int TABLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -984,29 +1127,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -1015,6 +1158,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1026,8 +1170,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -1057,17 +1200,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { + if (!(obj + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) obj; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getTable() - .equals(other.getTable())) return false; + if (!getSchema().equals(other.getSchema())) return false; + if (!getTable().equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1088,88 +1232,102 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1179,39 +1337,45 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} + * Protobuf type {@code + * google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder.class); } - // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1222,19 +1386,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = buildPartial(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1242,14 +1410,20 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIde } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result) { + private void buildPartial0( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.schema_ = schema_; @@ -1263,46 +1437,56 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { - return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier)other); + if (other + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance()) return this; if (!other.getSchema().isEmpty()) { schema_ = other.schema_; bitField0_ |= 0x00000001; @@ -1339,22 +1523,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schema_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schema_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1364,22 +1551,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schema_ = ""; /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ public java.lang.String getSchema() { java.lang.Object ref = schema_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schema_ = s; return s; @@ -1388,20 +1578,21 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for schema. */ - public com.google.protobuf.ByteString - getSchemaBytes() { + public com.google.protobuf.ByteString getSchemaBytes() { java.lang.Object ref = schema_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schema_ = b; return b; } else { @@ -1409,28 +1600,35 @@ public java.lang.String getSchema() { } } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The schema to set. * @return This builder for chaining. */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchema(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schema_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSchema() { @@ -1440,17 +1638,21 @@ public Builder clearSchema() { return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for schema to set. * @return This builder for chaining. */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schema_ = value; bitField0_ |= 0x00000001; @@ -1460,18 +1662,20 @@ public Builder setSchemaBytes( private java.lang.Object table_ = ""; /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -1480,20 +1684,21 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -1501,28 +1706,35 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -1532,23 +1744,28 @@ public Builder clearTable() { return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1561,41 +1778,46 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostgresqlObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostgresqlObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1607,72 +1829,86 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface MysqlObjectIdentifierOrBuilder extends + public interface MysqlObjectIdentifierOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ java.lang.String getDatabase(); /** + * + * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ - com.google.protobuf.ByteString - getDatabaseBytes(); + com.google.protobuf.ByteString getDatabaseBytes(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ java.lang.String getTable(); /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - com.google.protobuf.ByteString - getTableBytes(); + com.google.protobuf.ByteString getTableBytes(); } /** + * + * *
    * Mysql data source object identifier.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier} */ - public static final class MysqlObjectIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class MysqlObjectIdentifier extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) MysqlObjectIdentifierOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlObjectIdentifier.newBuilder() to construct. private MysqlObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlObjectIdentifier() { database_ = ""; table_ = ""; @@ -1680,38 +1916,44 @@ private MysqlObjectIdentifier() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlObjectIdentifier(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder + .class); } public static final int DATABASE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object database_ = ""; /** + * + * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ @java.lang.Override @@ -1720,29 +1962,29 @@ public java.lang.String getDatabase() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; } } /** + * + * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -1751,14 +1993,18 @@ public java.lang.String getDatabase() { } public static final int TABLE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object table_ = ""; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -1767,29 +2013,29 @@ public java.lang.String getTable() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; } } /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -1798,6 +2044,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1809,8 +2056,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_); } @@ -1840,17 +2086,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } - if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)) { + if (!(obj + instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) obj; - if (!getDatabase() - .equals(other.getDatabase())) return false; - if (!getTable() - .equals(other.getTable())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getTable().equals(other.getTable())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1871,88 +2117,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1962,39 +2221,43 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Mysql data source object identifier.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder + .class); } - // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2005,19 +2268,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstanceForType() { - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier build() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2025,14 +2291,19 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifi } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(this); - if (bitField0_ != 0) { buildPartial0(result); } + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result) { + private void buildPartial0( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; @@ -2046,46 +2317,55 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) { - return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier)other); + if (other + instanceof + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) { + return mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier other) { + if (other + == com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance()) return this; if (!other.getDatabase().isEmpty()) { database_ = other.database_; bitField0_ |= 0x00000001; @@ -2122,22 +2402,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - table_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + table_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2147,22 +2430,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object database_ = ""; /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ public java.lang.String getDatabase() { java.lang.Object ref = database_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); database_ = s; return s; @@ -2171,20 +2457,21 @@ public java.lang.String getDatabase() { } } /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for database. */ - public com.google.protobuf.ByteString - getDatabaseBytes() { + public com.google.protobuf.ByteString getDatabaseBytes() { java.lang.Object ref = database_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); database_ = b; return b; } else { @@ -2192,28 +2479,35 @@ public java.lang.String getDatabase() { } } /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The database to set. * @return This builder for chaining. */ - public Builder setDatabase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } database_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatabase() { @@ -2223,17 +2517,21 @@ public Builder clearDatabase() { return this; } /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for database to set. * @return This builder for chaining. */ - public Builder setDatabaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); database_ = value; bitField0_ |= 0x00000001; @@ -2243,18 +2541,20 @@ public Builder setDatabaseBytes( private java.lang.Object table_ = ""; /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ public java.lang.String getTable() { java.lang.Object ref = table_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); table_ = s; return s; @@ -2263,20 +2563,21 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for table. */ - public com.google.protobuf.ByteString - getTableBytes() { + public com.google.protobuf.ByteString getTableBytes() { java.lang.Object ref = table_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); table_ = b; return b; } else { @@ -2284,28 +2585,35 @@ public java.lang.String getTable() { } } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The table to set. * @return This builder for chaining. */ - public Builder setTable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { @@ -2315,23 +2623,28 @@ public Builder clearTable() { return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for table to set. * @return This builder for chaining. */ - public Builder setTableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); table_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2344,41 +2657,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) - private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(); + DEFAULT_INSTANCE = + new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstance() { + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2390,22 +2707,25 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int sourceIdentifierCase_ = 0; private java.lang.Object sourceIdentifier_; + public enum SourceIdentifierCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_IDENTIFIER(1), MYSQL_IDENTIFIER(2), POSTGRESQL_IDENTIFIER(3), SOURCEIDENTIFIER_NOT_SET(0); private final int value; + private SourceIdentifierCase(int value) { this.value = value; } @@ -2421,31 +2741,40 @@ public static SourceIdentifierCase valueOf(int value) { public static SourceIdentifierCase forNumber(int value) { switch (value) { - case 1: return ORACLE_IDENTIFIER; - case 2: return MYSQL_IDENTIFIER; - case 3: return POSTGRESQL_IDENTIFIER; - case 0: return SOURCEIDENTIFIER_NOT_SET; - default: return null; + case 1: + return ORACLE_IDENTIFIER; + case 2: + return MYSQL_IDENTIFIER; + case 3: + return POSTGRESQL_IDENTIFIER; + case 0: + return SOURCEIDENTIFIER_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceIdentifierCase - getSourceIdentifierCase() { - return SourceIdentifierCase.forNumber( - sourceIdentifierCase_); + public SourceIdentifierCase getSourceIdentifierCase() { + return SourceIdentifierCase.forNumber(sourceIdentifierCase_); } public static final int ORACLE_IDENTIFIER_FIELD_NUMBER = 1; /** + * + * *
    * Oracle data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * * @return Whether the oracleIdentifier field is set. */ @java.lang.Override @@ -2453,42 +2782,62 @@ public boolean hasOracleIdentifier() { return sourceIdentifierCase_ == 1; } /** + * + * *
    * Oracle data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * * @return The oracleIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getOracleIdentifier() { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } /** + * + * *
    * Oracle data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder + getOracleIdentifierOrBuilder() { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } public static final int MYSQL_IDENTIFIER_FIELD_NUMBER = 2; /** + * + * *
    * Mysql data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * * @return Whether the mysqlIdentifier field is set. */ @java.lang.Override @@ -2496,42 +2845,62 @@ public boolean hasMysqlIdentifier() { return sourceIdentifierCase_ == 2; } /** + * + * *
    * Mysql data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * * @return The mysqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + getMysqlIdentifier() { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } /** + * + * *
    * Mysql data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder + getMysqlIdentifierOrBuilder() { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } public static final int POSTGRESQL_IDENTIFIER_FIELD_NUMBER = 3; /** + * + * *
    * PostgreSQL data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * * @return Whether the postgresqlIdentifier field is set. */ @java.lang.Override @@ -2539,36 +2908,52 @@ public boolean hasPostgresqlIdentifier() { return sourceIdentifierCase_ == 3; } /** + * + * *
    * PostgreSQL data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * * @return The postgresqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } /** + * + * *
    * PostgreSQL data source object identifier.
    * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2580,16 +2965,24 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (sourceIdentifierCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_); + output.writeMessage( + 1, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_); } if (sourceIdentifierCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); + output.writeMessage( + 2, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_); } if (sourceIdentifierCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); + output.writeMessage( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); } getUnknownFields().writeTo(output); } @@ -2601,16 +2994,25 @@ public int getSerializedSize() { size = 0; if (sourceIdentifierCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_); } if (sourceIdentifierCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_); } if (sourceIdentifierCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2620,26 +3022,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier)) { return super.equals(obj); } - com.google.cloud.datastream.v1.SourceObjectIdentifier other = (com.google.cloud.datastream.v1.SourceObjectIdentifier) obj; + com.google.cloud.datastream.v1.SourceObjectIdentifier other = + (com.google.cloud.datastream.v1.SourceObjectIdentifier) obj; if (!getSourceIdentifierCase().equals(other.getSourceIdentifierCase())) return false; switch (sourceIdentifierCase_) { case 1: - if (!getOracleIdentifier() - .equals(other.getOracleIdentifier())) return false; + if (!getOracleIdentifier().equals(other.getOracleIdentifier())) return false; break; case 2: - if (!getMysqlIdentifier() - .equals(other.getMysqlIdentifier())) return false; + if (!getMysqlIdentifier().equals(other.getMysqlIdentifier())) return false; break; case 3: - if (!getPostgresqlIdentifier() - .equals(other.getPostgresqlIdentifier())) return false; + if (!getPostgresqlIdentifier().equals(other.getPostgresqlIdentifier())) return false; break; case 0: default: @@ -2677,129 +3077,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.SourceObjectIdentifier prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.SourceObjectIdentifier prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents an identifier of an object in the data source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.SourceObjectIdentifier) com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); } // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2819,9 +3226,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; } @java.lang.Override @@ -2840,8 +3247,11 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier build() { @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier buildPartial() { - com.google.cloud.datastream.v1.SourceObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.SourceObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2854,16 +3264,13 @@ private void buildPartial0(com.google.cloud.datastream.v1.SourceObjectIdentifier private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdentifier result) { result.sourceIdentifierCase_ = sourceIdentifierCase_; result.sourceIdentifier_ = this.sourceIdentifier_; - if (sourceIdentifierCase_ == 1 && - oracleIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 1 && oracleIdentifierBuilder_ != null) { result.sourceIdentifier_ = oracleIdentifierBuilder_.build(); } - if (sourceIdentifierCase_ == 2 && - mysqlIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 2 && mysqlIdentifierBuilder_ != null) { result.sourceIdentifier_ = mysqlIdentifierBuilder_.build(); } - if (sourceIdentifierCase_ == 3 && - postgresqlIdentifierBuilder_ != null) { + if (sourceIdentifierCase_ == 3 && postgresqlIdentifierBuilder_ != null) { result.sourceIdentifier_ = postgresqlIdentifierBuilder_.build(); } } @@ -2872,38 +3279,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.SourceObjectIdent public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.SourceObjectIdentifier) { - return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier)other); + return mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier) other); } else { super.mergeFrom(other); return this; @@ -2911,23 +3319,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) + return this; switch (other.getSourceIdentifierCase()) { - case ORACLE_IDENTIFIER: { - mergeOracleIdentifier(other.getOracleIdentifier()); - break; - } - case MYSQL_IDENTIFIER: { - mergeMysqlIdentifier(other.getMysqlIdentifier()); - break; - } - case POSTGRESQL_IDENTIFIER: { - mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); - break; - } - case SOURCEIDENTIFIER_NOT_SET: { - break; - } + case ORACLE_IDENTIFIER: + { + mergeOracleIdentifier(other.getOracleIdentifier()); + break; + } + case MYSQL_IDENTIFIER: + { + mergeMysqlIdentifier(other.getMysqlIdentifier()); + break; + } + case POSTGRESQL_IDENTIFIER: + { + mergePostgresqlIdentifier(other.getPostgresqlIdentifier()); + break; + } + case SOURCEIDENTIFIER_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2955,33 +3368,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getOracleIdentifierFieldBuilder().getBuilder(), - extensionRegistry); - sourceIdentifierCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getMysqlIdentifierFieldBuilder().getBuilder(), - extensionRegistry); - sourceIdentifierCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getPostgresqlIdentifierFieldBuilder().getBuilder(), - extensionRegistry); - sourceIdentifierCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage( + getOracleIdentifierFieldBuilder().getBuilder(), extensionRegistry); + sourceIdentifierCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getMysqlIdentifierFieldBuilder().getBuilder(), extensionRegistry); + sourceIdentifierCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getPostgresqlIdentifierFieldBuilder().getBuilder(), extensionRegistry); + sourceIdentifierCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2991,12 +3404,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceIdentifierCase_ = 0; private java.lang.Object sourceIdentifier_; - public SourceIdentifierCase - getSourceIdentifierCase() { - return SourceIdentifierCase.forNumber( - sourceIdentifierCase_); + + public SourceIdentifierCase getSourceIdentifierCase() { + return SourceIdentifierCase.forNumber(sourceIdentifierCase_); } public Builder clearSourceIdentifier() { @@ -3009,13 +3422,21 @@ public Builder clearSourceIdentifier() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> oracleIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> + oracleIdentifierBuilder_; /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * * @return Whether the oracleIdentifier field is set. */ @java.lang.Override @@ -3023,35 +3444,49 @@ public boolean hasOracleIdentifier() { return sourceIdentifierCase_ == 1; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * * @return The oracleIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getOracleIdentifier() { if (oracleIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } else { if (sourceIdentifierCase_ == 1) { return oracleIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ - public Builder setOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { + public Builder setOracleIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { if (oracleIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3065,14 +3500,19 @@ public Builder setOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectId return this; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ public Builder setOracleIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + builderForValue) { if (oracleIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -3083,18 +3523,30 @@ public Builder setOracleIdentifier( return this; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ - public Builder mergeOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { + public Builder mergeOracleIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { if (oracleIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 1 && - sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance()) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_) - .mergeFrom(value).buildPartial(); + if (sourceIdentifierCase_ == 1 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); } else { sourceIdentifier_ = value; } @@ -3110,11 +3562,15 @@ public Builder mergeOracleIdentifier(com.google.cloud.datastream.v1.SourceObject return this; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ public Builder clearOracleIdentifier() { if (oracleIdentifierBuilder_ == null) { @@ -3133,50 +3589,76 @@ public Builder clearOracleIdentifier() { return this; } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder getOracleIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + getOracleIdentifierBuilder() { return getOracleIdentifierFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder + getOracleIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 1) && (oracleIdentifierBuilder_ != null)) { return oracleIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 1) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * Oracle data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder> getOracleIdentifierFieldBuilder() { if (oracleIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 1)) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .getDefaultInstance(); } - oracleIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_, + oracleIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .OracleObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -3187,13 +3669,21 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> mysqlIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> + mysqlIdentifierBuilder_; /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * * @return Whether the mysqlIdentifier field is set. */ @java.lang.Override @@ -3201,35 +3691,49 @@ public boolean hasMysqlIdentifier() { return sourceIdentifierCase_ == 2; } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * * @return The mysqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + getMysqlIdentifier() { if (mysqlIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } else { if (sourceIdentifierCase_ == 2) { return mysqlIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ - public Builder setMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { + public Builder setMysqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { if (mysqlIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3243,14 +3747,19 @@ public Builder setMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIde return this; } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ public Builder setMysqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder + builderForValue) { if (mysqlIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -3261,18 +3770,30 @@ public Builder setMysqlIdentifier( return this; } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ - public Builder mergeMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { + public Builder mergeMysqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { if (mysqlIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 2 && - sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance()) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_) - .mergeFrom(value).buildPartial(); + if (sourceIdentifierCase_ == 2 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); } else { sourceIdentifier_ = value; } @@ -3288,11 +3809,15 @@ public Builder mergeMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectI return this; } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ public Builder clearMysqlIdentifier() { if (mysqlIdentifierBuilder_ == null) { @@ -3311,50 +3836,75 @@ public Builder clearMysqlIdentifier() { return this; } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder getMysqlIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder + getMysqlIdentifierBuilder() { return getMysqlIdentifierFieldBuilder().getBuilder(); } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder + getMysqlIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 2) && (mysqlIdentifierBuilder_ != null)) { return mysqlIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 2) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * Mysql data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder> getMysqlIdentifierFieldBuilder() { if (mysqlIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 2)) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .getDefaultInstance(); } - mysqlIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_, + mysqlIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .MysqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -3365,13 +3915,23 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifi } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder> postgresqlIdentifierBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> + postgresqlIdentifierBuilder_; /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * * @return Whether the postgresqlIdentifier field is set. */ @java.lang.Override @@ -3379,35 +3939,49 @@ public boolean hasPostgresqlIdentifier() { return sourceIdentifierCase_ == 3; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * * @return The postgresqlIdentifier. */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier() { if (postgresqlIdentifierBuilder_ == null) { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } else { if (sourceIdentifierCase_ == 3) { return postgresqlIdentifierBuilder_.getMessage(); } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ - public Builder setPostgresqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + public Builder setPostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { if (postgresqlIdentifierBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3421,14 +3995,19 @@ public Builder setPostgresqlIdentifier(com.google.cloud.datastream.v1.SourceObje return this; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ public Builder setPostgresqlIdentifier( - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder builderForValue) { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + builderForValue) { if (postgresqlIdentifierBuilder_ == null) { sourceIdentifier_ = builderForValue.build(); onChanged(); @@ -3439,18 +4018,31 @@ public Builder setPostgresqlIdentifier( return this; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ - public Builder mergePostgresqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { + public Builder mergePostgresqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier value) { if (postgresqlIdentifierBuilder_ == null) { - if (sourceIdentifierCase_ == 3 && - sourceIdentifier_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance()) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_) - .mergeFrom(value).buildPartial(); + if (sourceIdentifierCase_ == 3 + && sourceIdentifier_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance()) { + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .newBuilder( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .mergeFrom(value) + .buildPartial(); } else { sourceIdentifier_ = value; } @@ -3466,11 +4058,15 @@ public Builder mergePostgresqlIdentifier(com.google.cloud.datastream.v1.SourceOb return this; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ public Builder clearPostgresqlIdentifier() { if (postgresqlIdentifierBuilder_ == null) { @@ -3489,50 +4085,78 @@ public Builder clearPostgresqlIdentifier() { return this; } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder getPostgresqlIdentifierBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder + getPostgresqlIdentifierBuilder() { return getPostgresqlIdentifierFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder() { if ((sourceIdentifierCase_ == 3) && (postgresqlIdentifierBuilder_ != null)) { return postgresqlIdentifierBuilder_.getMessageOrBuilder(); } else { if (sourceIdentifierCase_ == 3) { - return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_; + return (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_; } - return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + return com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } } /** + * + * *
      * PostgreSQL data source object identifier.
      * 
* - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder> getPostgresqlIdentifierFieldBuilder() { if (postgresqlIdentifierBuilder_ == null) { if (!(sourceIdentifierCase_ == 3)) { - sourceIdentifier_ = com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.getDefaultInstance(); + sourceIdentifier_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .getDefaultInstance(); } - postgresqlIdentifierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder>( - (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_, + postgresqlIdentifierBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifierOrBuilder>( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + sourceIdentifier_, getParentForChildren(), isClean()); sourceIdentifier_ = null; @@ -3541,9 +4165,9 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIde onChanged(); return postgresqlIdentifierBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3553,12 +4177,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.SourceObjectIdentifier) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.SourceObjectIdentifier) private static final com.google.cloud.datastream.v1.SourceObjectIdentifier DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier(); } @@ -3567,27 +4191,27 @@ public static com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceObjectIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceObjectIdentifier parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3602,6 +4226,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java new file mode 100644 index 000000000000..886a6d21e10b --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface SourceObjectIdentifierOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Oracle data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * + * @return Whether the oracleIdentifier field is set. + */ + boolean hasOracleIdentifier(); + /** + * + * + *
+   * Oracle data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + * + * @return The oracleIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + getOracleIdentifier(); + /** + * + * + *
+   * Oracle data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder + getOracleIdentifierOrBuilder(); + + /** + * + * + *
+   * Mysql data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * + * @return Whether the mysqlIdentifier field is set. + */ + boolean hasMysqlIdentifier(); + /** + * + * + *
+   * Mysql data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + * + * @return The mysqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier(); + /** + * + * + *
+   * Mysql data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder + getMysqlIdentifierOrBuilder(); + + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return Whether the postgresqlIdentifier field is set. + */ + boolean hasPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + * + * @return The postgresqlIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + getPostgresqlIdentifier(); + /** + * + * + *
+   * PostgreSQL data source object identifier.
+   * 
+ * + * + * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; + * + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder + getPostgresqlIdentifierOrBuilder(); + + public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase + getSourceIdentifierCase(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java similarity index 62% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java index 99cee1f32ab1..5a2e99856901 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java @@ -1,63 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request for manually initiating a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobRequest} */ -public final class StartBackfillJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartBackfillJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobRequest) StartBackfillJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartBackfillJobRequest.newBuilder() to construct. private StartBackfillJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StartBackfillJobRequest() { object_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartBackfillJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobRequest.class, com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobRequest.class, + com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object object_ = ""; /** + * + * *
    * Required. The name of the stream object resource to start a backfill job
    * for.
    * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The object. */ @java.lang.Override @@ -66,30 +91,32 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
    * Required. The name of the stream object resource to start a backfill job
    * for.
    * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -98,6 +125,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -109,8 +137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, object_); } @@ -134,15 +161,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StartBackfillJobRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StartBackfillJobRequest other = (com.google.cloud.datastream.v1.StartBackfillJobRequest) obj; + com.google.cloud.datastream.v1.StartBackfillJobRequest other = + (com.google.cloud.datastream.v1.StartBackfillJobRequest) obj; - if (!getObject() - .equals(other.getObject())) return false; + if (!getObject().equals(other.getObject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -162,129 +189,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.StartBackfillJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.StartBackfillJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for manually initiating a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StartBackfillJobRequest) com.google.cloud.datastream.v1.StartBackfillJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobRequest.class, com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobRequest.class, + com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.StartBackfillJobRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -294,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; } @java.lang.Override @@ -315,8 +349,11 @@ public com.google.cloud.datastream.v1.StartBackfillJobRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.StartBackfillJobRequest buildPartial() { - com.google.cloud.datastream.v1.StartBackfillJobRequest result = new com.google.cloud.datastream.v1.StartBackfillJobRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.StartBackfillJobRequest result = + new com.google.cloud.datastream.v1.StartBackfillJobRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StartBackfillJobRequest) { - return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobRequest) other); } else { super.mergeFrom(other); return this; @@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobRequest other) { - if (other == com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance()) + return this; if (!other.getObject().isEmpty()) { object_ = other.object_; bitField0_ |= 0x00000001; @@ -403,17 +442,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - object_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + object_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,23 +464,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object object_ = ""; /** + * + * *
      * Required. The name of the stream object resource to start a backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -448,21 +494,24 @@ public java.lang.String getObject() { } } /** + * + * *
      * Required. The name of the stream object resource to start a backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -470,30 +519,41 @@ public java.lang.String getObject() { } } /** + * + * *
      * Required. The name of the stream object resource to start a backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream object resource to start a backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearObject() { @@ -503,27 +563,33 @@ public Builder clearObject() { return this; } /** + * + * *
      * Required. The name of the stream object resource to start a backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -533,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StartBackfillJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StartBackfillJobRequest) private static final com.google.cloud.datastream.v1.StartBackfillJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StartBackfillJobRequest(); } @@ -547,27 +613,27 @@ public static com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartBackfillJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartBackfillJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java new file mode 100644 index 000000000000..9f94c7fac8db --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface StartBackfillJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
+   * 
+ * + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The object. + */ + java.lang.String getObject(); + /** + * + * + *
+   * Required. The name of the stream object resource to start a backfill job
+   * for.
+   * 
+ * + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for object. + */ + com.google.protobuf.ByteString getObjectBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java index 6384994b4d66..2f2f9b74f5bd 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response for manually initiating a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobResponse} */ -public final class StartBackfillJobResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StartBackfillJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobResponse) StartBackfillJobResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StartBackfillJobResponse.newBuilder() to construct. private StartBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StartBackfillJobResponse() { - } + + private StartBackfillJobResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StartBackfillJobResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobResponse.class, com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobResponse.class, + com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.StreamObject object_; /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasObject() { return object_ != null; } /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObject getObject() { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
@@ -82,10 +110,13 @@ public com.google.cloud.datastream.v1.StreamObject getObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (object_ != null) { output.writeMessage(1, getObject()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StartBackfillJobResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StartBackfillJobResponse other = (com.google.cloud.datastream.v1.StartBackfillJobResponse) obj; + com.google.cloud.datastream.v1.StartBackfillJobResponse other = + (com.google.cloud.datastream.v1.StartBackfillJobResponse) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject() - .equals(other.getObject())) return false; + if (!getObject().equals(other.getObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.StartBackfillJobResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.StartBackfillJobResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for manually initiating a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StartBackfillJobResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StartBackfillJobResponse) com.google.cloud.datastream.v1.StartBackfillJobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StartBackfillJobResponse.class, com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StartBackfillJobResponse.class, + com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.StartBackfillJobResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; } @java.lang.Override @@ -313,8 +349,11 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.StartBackfillJobResponse buildPartial() { - com.google.cloud.datastream.v1.StartBackfillJobResponse result = new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.StartBackfillJobResponse result = + new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +361,7 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); + result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); } } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.StartBackfillJobRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StartBackfillJobResponse) { - return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.StartBackfillJobResponse) other); } else { super.mergeFrom(other); return this; @@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobResponse other) { - if (other == com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance()) + return this; if (other.hasObject()) { mergeObject(other.getObject()); } @@ -401,19 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +462,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1.StreamObject object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> objectBuilder_; + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> + objectBuilder_; /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ public com.google.cloud.datastream.v1.StreamObject getObject() { if (objectBuilder_ == null) { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } else { return objectBuilder_.getMessage(); } } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -475,14 +528,15 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; */ - public Builder setObject( - com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { if (objectBuilder_ == null) { object_ = builderForValue.build(); } else { @@ -493,6 +547,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -501,9 +557,9 @@ public Builder setObject( */ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - object_ != null && - object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && object_ != null + && object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { getObjectBuilder().mergeFrom(value); } else { object_ = value; @@ -516,6 +572,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -533,6 +591,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -545,6 +605,8 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { return getObjectFieldBuilder().getBuilder(); } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -555,11 +617,14 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() if (objectBuilder_ != null) { return objectBuilder_.getMessageOrBuilder(); } else { - return object_ == null ? - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -567,21 +632,24 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() * .google.cloud.datastream.v1.StreamObject object = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> getObjectFieldBuilder() { if (objectBuilder_ == null) { - objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( - getObject(), - getParentForChildren(), - isClean()); + objectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + getObject(), getParentForChildren(), isClean()); object_ = null; } return objectBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StartBackfillJobResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StartBackfillJobResponse) private static final com.google.cloud.datastream.v1.StartBackfillJobResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StartBackfillJobResponse(); } @@ -605,27 +673,27 @@ public static com.google.cloud.datastream.v1.StartBackfillJobResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StartBackfillJobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StartBackfillJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +708,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java index b9f25bece1cd..6b0fb3fefd23 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface StartBackfillJobResponseOrBuilder extends +public interface StartBackfillJobResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ boolean hasObject(); /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ com.google.cloud.datastream.v1.StreamObject getObject(); /** + * + * *
    * The stream object resource a backfill job was started for.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java index d312a9c98594..6adb975dbcdf 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Static IP address connectivity. Used when the source database is configured
  * to allow incoming connections from the Datastream public IP addresses
@@ -12,44 +29,46 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.StaticServiceIpConnectivity}
  */
-public final class StaticServiceIpConnectivity extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StaticServiceIpConnectivity extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StaticServiceIpConnectivity)
     StaticServiceIpConnectivityOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StaticServiceIpConnectivity.newBuilder() to construct.
   private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StaticServiceIpConnectivity() {
-  }
+
+  private StaticServiceIpConnectivity() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StaticServiceIpConnectivity();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class);
+            com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class,
+            com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -61,8 +80,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getUnknownFields().writeTo(output);
   }
 
@@ -80,12 +98,13 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.StaticServiceIpConnectivity)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.StaticServiceIpConnectivity other = (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) obj;
+    com.google.cloud.datastream.v1.StaticServiceIpConnectivity other =
+        (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) obj;
 
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
@@ -104,96 +123,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.datastream.v1.StaticServiceIpConnectivity prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.datastream.v1.StaticServiceIpConnectivity prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Static IP address connectivity. Used when the source database is configured
    * to allow incoming connections from the Datastream public IP addresses
@@ -202,33 +229,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.StaticServiceIpConnectivity}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StaticServiceIpConnectivity)
       com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class);
+              com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class,
+              com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -236,9 +262,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor;
     }
 
     @java.lang.Override
@@ -257,7 +283,8 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivity build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.StaticServiceIpConnectivity buildPartial() {
-      com.google.cloud.datastream.v1.StaticServiceIpConnectivity result = new com.google.cloud.datastream.v1.StaticServiceIpConnectivity(this);
+      com.google.cloud.datastream.v1.StaticServiceIpConnectivity result =
+          new com.google.cloud.datastream.v1.StaticServiceIpConnectivity(this);
       onBuilt();
       return result;
     }
@@ -266,38 +293,39 @@ public com.google.cloud.datastream.v1.StaticServiceIpConnectivity buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.StaticServiceIpConnectivity) {
-        return mergeFrom((com.google.cloud.datastream.v1.StaticServiceIpConnectivity)other);
+        return mergeFrom((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -305,7 +333,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.StaticServiceIpConnectivity other) {
-      if (other == com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance())
+        return this;
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -332,12 +361,13 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -347,9 +377,9 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -359,12 +389,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StaticServiceIpConnectivity)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StaticServiceIpConnectivity)
   private static final com.google.cloud.datastream.v1.StaticServiceIpConnectivity DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StaticServiceIpConnectivity();
   }
@@ -373,27 +403,27 @@ public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefa
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StaticServiceIpConnectivity parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StaticServiceIpConnectivity parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -408,6 +438,4 @@ public com.google.protobuf.Parser getParserForType(
   public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java
new file mode 100644
index 000000000000..5ba444a6b4a3
--- /dev/null
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/datastream/v1/datastream_resources.proto
+
+package com.google.cloud.datastream.v1;
+
+public interface StaticServiceIpConnectivityOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StaticServiceIpConnectivity)
+    com.google.protobuf.MessageOrBuilder {}
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java
similarity index 62%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java
index 241d788fb4ce..436d785c1c42 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * Request for manually stopping a running backfill job for a specific stream
  * object.
@@ -11,54 +28,62 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest}
  */
-public final class StopBackfillJobRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StopBackfillJobRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StopBackfillJobRequest)
     StopBackfillJobRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StopBackfillJobRequest.newBuilder() to construct.
   private StopBackfillJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StopBackfillJobRequest() {
     object_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StopBackfillJobRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamProto
+        .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamProto
+        .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.StopBackfillJobRequest.class, com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
+            com.google.cloud.datastream.v1.StopBackfillJobRequest.class,
+            com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
   }
 
   public static final int OBJECT_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object object_ = "";
   /**
+   *
+   *
    * 
    * Required. The name of the stream object resource to stop the backfill job
    * for.
    * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The object. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getObject() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; } } /** + * + * *
    * Required. The name of the stream object resource to stop the backfill job
    * for.
    * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for object. */ @java.lang.Override - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -99,6 +126,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -110,8 +138,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, object_); } @@ -135,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StopBackfillJobRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StopBackfillJobRequest other = (com.google.cloud.datastream.v1.StopBackfillJobRequest) obj; + com.google.cloud.datastream.v1.StopBackfillJobRequest other = + (com.google.cloud.datastream.v1.StopBackfillJobRequest) obj; - if (!getObject() - .equals(other.getObject())) return false; + if (!getObject().equals(other.getObject())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -163,96 +190,104 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.StopBackfillJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.StopBackfillJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request for manually stopping a running backfill job for a specific stream
    * object.
@@ -260,33 +295,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StopBackfillJobRequest)
       com.google.cloud.datastream.v1.StopBackfillJobRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.StopBackfillJobRequest.class, com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
+              com.google.cloud.datastream.v1.StopBackfillJobRequest.class,
+              com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.StopBackfillJobRequest.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -296,9 +330,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamProto
+          .internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor;
     }
 
     @java.lang.Override
@@ -317,8 +351,11 @@ public com.google.cloud.datastream.v1.StopBackfillJobRequest build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.StopBackfillJobRequest buildPartial() {
-      com.google.cloud.datastream.v1.StopBackfillJobRequest result = new com.google.cloud.datastream.v1.StopBackfillJobRequest(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1.StopBackfillJobRequest result =
+          new com.google.cloud.datastream.v1.StopBackfillJobRequest(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -334,38 +371,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobRequest
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.StopBackfillJobRequest) {
-        return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobRequest)other);
+        return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -373,7 +411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobRequest other) {
-      if (other == com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance())
+        return this;
       if (!other.getObject().isEmpty()) {
         object_ = other.object_;
         bitField0_ |= 0x00000001;
@@ -405,17 +444,19 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              object_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                object_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -425,23 +466,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object object_ = "";
     /**
+     *
+     *
      * 
      * Required. The name of the stream object resource to stop the backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The object. */ public java.lang.String getObject() { java.lang.Object ref = object_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); object_ = s; return s; @@ -450,21 +496,24 @@ public java.lang.String getObject() { } } /** + * + * *
      * Required. The name of the stream object resource to stop the backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for object. */ - public com.google.protobuf.ByteString - getObjectBytes() { + public com.google.protobuf.ByteString getObjectBytes() { java.lang.Object ref = object_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); object_ = b; return b; } else { @@ -472,30 +521,41 @@ public java.lang.String getObject() { } } /** + * + * *
      * Required. The name of the stream object resource to stop the backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The object to set. * @return This builder for chaining. */ - public Builder setObject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream object resource to stop the backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearObject() { @@ -505,27 +565,33 @@ public Builder clearObject() { return this; } /** + * + * *
      * Required. The name of the stream object resource to stop the backfill job
      * for.
      * 
* - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setObjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); object_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -535,12 +601,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StopBackfillJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StopBackfillJobRequest) private static final com.google.cloud.datastream.v1.StopBackfillJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StopBackfillJobRequest(); } @@ -549,27 +615,27 @@ public static com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopBackfillJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopBackfillJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java new file mode 100644 index 000000000000..97dac58975d9 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface StopBackfillJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
+   * 
+ * + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The object. + */ + java.lang.String getObject(); + /** + * + * + *
+   * Required. The name of the stream object resource to stop the backfill job
+   * for.
+   * 
+ * + * + * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for object. + */ + com.google.protobuf.ByteString getObjectBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java index f6242664c5a0..642033afe4d9 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Response for manually stop a backfill job for a specific stream object.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobResponse} */ -public final class StopBackfillJobResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StopBackfillJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StopBackfillJobResponse) StopBackfillJobResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StopBackfillJobResponse.newBuilder() to construct. private StopBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StopBackfillJobResponse() { - } + + private StopBackfillJobResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StopBackfillJobResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StopBackfillJobResponse.class, com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StopBackfillJobResponse.class, + com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); } public static final int OBJECT_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1.StreamObject object_; /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasObject() { return object_ != null; } /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObject getObject() { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
@@ -82,10 +110,13 @@ public com.google.cloud.datastream.v1.StreamObject getObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (object_ != null) { output.writeMessage(1, getObject()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (object_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getObject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StopBackfillJobResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StopBackfillJobResponse other = (com.google.cloud.datastream.v1.StopBackfillJobResponse) obj; + com.google.cloud.datastream.v1.StopBackfillJobResponse other = + (com.google.cloud.datastream.v1.StopBackfillJobResponse) obj; if (hasObject() != other.hasObject()) return false; if (hasObject()) { - if (!getObject() - .equals(other.getObject())) return false; + if (!getObject().equals(other.getObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.StopBackfillJobResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.StopBackfillJobResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response for manually stop a backfill job for a specific stream object.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StopBackfillJobResponse) com.google.cloud.datastream.v1.StopBackfillJobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StopBackfillJobResponse.class, com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); + com.google.cloud.datastream.v1.StopBackfillJobResponse.class, + com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1.StopBackfillJobResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +328,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; } @java.lang.Override @@ -313,8 +349,11 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse build() { @java.lang.Override public com.google.cloud.datastream.v1.StopBackfillJobResponse buildPartial() { - com.google.cloud.datastream.v1.StopBackfillJobResponse result = new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.StopBackfillJobResponse result = + new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +361,7 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.object_ = objectBuilder_ == null - ? object_ - : objectBuilder_.build(); + result.object_ = objectBuilder_ == null ? object_ : objectBuilder_.build(); } } @@ -332,38 +369,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.StopBackfillJobRespons public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StopBackfillJobResponse) { - return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobResponse)other); + return mergeFrom((com.google.cloud.datastream.v1.StopBackfillJobResponse) other); } else { super.mergeFrom(other); return this; @@ -371,7 +409,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobResponse other) { - if (other == com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance()) + return this; if (other.hasObject()) { mergeObject(other.getObject()); } @@ -401,19 +440,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getObjectFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +462,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1.StreamObject object_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> objectBuilder_; + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> + objectBuilder_; /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ public boolean hasObject() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ public com.google.cloud.datastream.v1.StreamObject getObject() { if (objectBuilder_ == null) { - return object_ == null ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } else { return objectBuilder_.getMessage(); } } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -475,14 +528,15 @@ public Builder setObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
* * .google.cloud.datastream.v1.StreamObject object = 1; */ - public Builder setObject( - com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + public Builder setObject(com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { if (objectBuilder_ == null) { object_ = builderForValue.build(); } else { @@ -493,6 +547,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -501,9 +557,9 @@ public Builder setObject( */ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - object_ != null && - object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && object_ != null + && object_ != com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) { getObjectBuilder().mergeFrom(value); } else { object_ = value; @@ -516,6 +572,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -533,6 +591,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -545,6 +605,8 @@ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { return getObjectFieldBuilder().getBuilder(); } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -555,11 +617,14 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() if (objectBuilder_ != null) { return objectBuilder_.getMessageOrBuilder(); } else { - return object_ == null ? - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() : object_; + return object_ == null + ? com.google.cloud.datastream.v1.StreamObject.getDefaultInstance() + : object_; } } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -567,21 +632,24 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() * .google.cloud.datastream.v1.StreamObject object = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder> + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder> getObjectFieldBuilder() { if (objectBuilder_ == null) { - objectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.StreamObject, com.google.cloud.datastream.v1.StreamObject.Builder, com.google.cloud.datastream.v1.StreamObjectOrBuilder>( - getObject(), - getParentForChildren(), - isClean()); + objectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.StreamObject, + com.google.cloud.datastream.v1.StreamObject.Builder, + com.google.cloud.datastream.v1.StreamObjectOrBuilder>( + getObject(), getParentForChildren(), isClean()); object_ = null; } return objectBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -591,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StopBackfillJobResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StopBackfillJobResponse) private static final com.google.cloud.datastream.v1.StopBackfillJobResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StopBackfillJobResponse(); } @@ -605,27 +673,27 @@ public static com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StopBackfillJobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StopBackfillJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +708,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java index abb22f8b5e22..896434af12cc 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface StopBackfillJobResponseOrBuilder extends +public interface StopBackfillJobResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return Whether the object field is set. */ boolean hasObject(); /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
* * .google.cloud.datastream.v1.StreamObject object = 1; + * * @return The object. */ com.google.cloud.datastream.v1.StreamObject getObject(); /** + * + * *
    * The stream object resource the backfill job was stopped for.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index b77226b667b0..18922c6b1cf1 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * A resource representing streaming data from a source to a destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream} */ -public final class Stream extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Stream extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream) StreamOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stream() { name_ = ""; displayName_ = ""; @@ -29,51 +47,54 @@ private Stream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.class, com.google.cloud.datastream.v1.Stream.Builder.class); + com.google.cloud.datastream.v1.Stream.class, + com.google.cloud.datastream.v1.Stream.Builder.class); } /** + * + * *
    * Stream state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.Stream.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified stream state.
      * 
@@ -82,6 +103,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -90,6 +113,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
      * The stream is running.
      * 
@@ -98,6 +123,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -106,6 +133,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -115,6 +144,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -124,6 +155,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -132,6 +165,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -140,6 +175,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -152,6 +189,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -160,6 +199,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -168,6 +209,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -176,6 +219,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -184,6 +229,8 @@ public enum State */ public static final int PAUSED_VALUE = 3; /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -193,6 +240,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -202,6 +251,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -210,6 +261,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -218,6 +271,8 @@ public enum State */ public static final int STARTING_VALUE = 7; /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -227,7 +282,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -252,55 +306,61 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return NOT_STARTED;
-        case 2: return RUNNING;
-        case 3: return PAUSED;
-        case 4: return MAINTENANCE;
-        case 5: return FAILED;
-        case 6: return FAILED_PERMANENTLY;
-        case 7: return STARTING;
-        case 8: return DRAINING;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return NOT_STARTED;
+        case 2:
+          return RUNNING;
+        case 3:
+          return PAUSED;
+        case 4:
+          return MAINTENANCE;
+        case 5:
+          return FAILED;
+        case 6:
+          return FAILED_PERMANENTLY;
+        case 7:
+          return STARTING;
+        case 8:
+          return DRAINING;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.datastream.v1.Stream.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -317,29 +377,38 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.Stream.State)
   }
 
-  public interface BackfillAllStrategyOrBuilder extends
+  public interface BackfillAllStrategyOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ boolean hasOracleExcludedObjects(); /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects(); /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -349,24 +418,32 @@ public interface BackfillAllStrategyOrBuilder extends com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ boolean hasMysqlExcludedObjects(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -376,24 +453,32 @@ public interface BackfillAllStrategyOrBuilder extends com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return Whether the postgresqlExcludedObjects field is set. */ boolean hasPostgresqlExcludedObjects(); /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return The postgresqlExcludedObjects. */ com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects(); /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
@@ -402,9 +487,12 @@ public interface BackfillAllStrategyOrBuilder extends */ com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder(); - public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase + getExcludedObjectsCase(); } /** + * + * *
    * Backfill strategy to automatically backfill the Stream's objects.
    * Specific objects can be excluded.
@@ -412,53 +500,57 @@ public interface BackfillAllStrategyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy}
    */
-  public static final class BackfillAllStrategy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
       BackfillAllStrategyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BackfillAllStrategy.newBuilder() to construct.
     private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BackfillAllStrategy() {
-    }
+
+    private BackfillAllStrategy() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BackfillAllStrategy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
+              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class,
+              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
     }
 
     private int excludedObjectsCase_ = 0;
     private java.lang.Object excludedObjects_;
+
     public enum ExcludedObjectsCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ORACLE_EXCLUDED_OBJECTS(1),
       MYSQL_EXCLUDED_OBJECTS(2),
       POSTGRESQL_EXCLUDED_OBJECTS(3),
       EXCLUDEDOBJECTS_NOT_SET(0);
       private final int value;
+
       private ExcludedObjectsCase(int value) {
         this.value = value;
       }
@@ -474,31 +566,38 @@ public static ExcludedObjectsCase valueOf(int value) {
 
       public static ExcludedObjectsCase forNumber(int value) {
         switch (value) {
-          case 1: return ORACLE_EXCLUDED_OBJECTS;
-          case 2: return MYSQL_EXCLUDED_OBJECTS;
-          case 3: return POSTGRESQL_EXCLUDED_OBJECTS;
-          case 0: return EXCLUDEDOBJECTS_NOT_SET;
-          default: return null;
+          case 1:
+            return ORACLE_EXCLUDED_OBJECTS;
+          case 2:
+            return MYSQL_EXCLUDED_OBJECTS;
+          case 3:
+            return POSTGRESQL_EXCLUDED_OBJECTS;
+          case 0:
+            return EXCLUDEDOBJECTS_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ExcludedObjectsCase
-    getExcludedObjectsCase() {
-      return ExcludedObjectsCase.forNumber(
-          excludedObjectsCase_);
+    public ExcludedObjectsCase getExcludedObjectsCase() {
+      return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
     }
 
     public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -506,21 +605,26 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -530,18 +634,21 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { @java.lang.Override public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -549,21 +656,26 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -573,18 +685,21 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { @java.lang.Override public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } public static final int POSTGRESQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 3; /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return Whether the postgresqlExcludedObjects field is set. */ @java.lang.Override @@ -592,21 +707,26 @@ public boolean hasPostgresqlExcludedObjects() { return excludedObjectsCase_ == 3; } /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return The postgresqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjects() { if (excludedObjectsCase_ == 3) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } /** + * + * *
      * PostgreSQL data source objects to avoid backfilling.
      * 
@@ -614,14 +734,16 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjec * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 3) { - return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -633,8 +755,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (excludedObjectsCase_ == 1) { output.writeMessage(1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); } @@ -654,16 +775,19 @@ public int getSerializedSize() { size = 0; if (excludedObjectsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_); } if (excludedObjectsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); } if (excludedObjectsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -673,26 +797,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other = (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) obj; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other = + (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) obj; if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; switch (excludedObjectsCase_) { case 1: - if (!getOracleExcludedObjects() - .equals(other.getOracleExcludedObjects())) return false; + if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; break; case 2: - if (!getMysqlExcludedObjects() - .equals(other.getMysqlExcludedObjects())) return false; + if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; break; case 3: - if (!getPostgresqlExcludedObjects() - .equals(other.getPostgresqlExcludedObjects())) return false; + if (!getPostgresqlExcludedObjects().equals(other.getPostgresqlExcludedObjects())) + return false; break; case 0: default: @@ -730,87 +853,94 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -820,6 +950,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -827,33 +959,33 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillAllStrategy)
         com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class,
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class);
       }
 
       // Construct using com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder()
-      private Builder() {
-
-      }
+      private Builder() {}
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -873,9 +1005,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.datastream.v1.DatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
@@ -894,8 +1026,11 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy build() {
 
       @java.lang.Override
       public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() {
-        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result =
+            new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
@@ -905,19 +1040,17 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream.BackfillAllStra
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) {
+      private void buildPartialOneofs(
+          com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result) {
         result.excludedObjectsCase_ = excludedObjectsCase_;
         result.excludedObjects_ = this.excludedObjects_;
-        if (excludedObjectsCase_ == 1 &&
-            oracleExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 1 && oracleExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = oracleExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 2 &&
-            mysqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 2 && mysqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 3 &&
-            postgresqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 3 && postgresqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = postgresqlExcludedObjectsBuilder_.build();
         }
       }
@@ -926,38 +1059,41 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream.BackfillAl
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) {
-          return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy)other);
+          return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -965,23 +1101,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other) {
-        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) return this;
+        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance())
+          return this;
         switch (other.getExcludedObjectsCase()) {
-          case ORACLE_EXCLUDED_OBJECTS: {
-            mergeOracleExcludedObjects(other.getOracleExcludedObjects());
-            break;
-          }
-          case MYSQL_EXCLUDED_OBJECTS: {
-            mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
-            break;
-          }
-          case POSTGRESQL_EXCLUDED_OBJECTS: {
-            mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects());
-            break;
-          }
-          case EXCLUDEDOBJECTS_NOT_SET: {
-            break;
-          }
+          case ORACLE_EXCLUDED_OBJECTS:
+            {
+              mergeOracleExcludedObjects(other.getOracleExcludedObjects());
+              break;
+            }
+          case MYSQL_EXCLUDED_OBJECTS:
+            {
+              mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
+              break;
+            }
+          case POSTGRESQL_EXCLUDED_OBJECTS:
+            {
+              mergePostgresqlExcludedObjects(other.getPostgresqlExcludedObjects());
+              break;
+            }
+          case EXCLUDEDOBJECTS_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -1009,33 +1150,34 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getOracleExcludedObjectsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                excludedObjectsCase_ = 1;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getMysqlExcludedObjectsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                excludedObjectsCase_ = 2;
-                break;
-              } // case 18
-              case 26: {
-                input.readMessage(
-                    getPostgresqlExcludedObjectsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                excludedObjectsCase_ = 3;
-                break;
-              } // case 26
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getOracleExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
+                  excludedObjectsCase_ = 1;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getMysqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
+                  excludedObjectsCase_ = 2;
+                  break;
+                } // case 18
+              case 26:
+                {
+                  input.readMessage(
+                      getPostgresqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
+                  excludedObjectsCase_ = 3;
+                  break;
+                } // case 26
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1045,12 +1187,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int excludedObjectsCase_ = 0;
       private java.lang.Object excludedObjects_;
-      public ExcludedObjectsCase
-          getExcludedObjectsCase() {
-        return ExcludedObjectsCase.forNumber(
-            excludedObjectsCase_);
+
+      public ExcludedObjectsCase getExcludedObjectsCase() {
+        return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
       }
 
       public Builder clearExcludedObjects() {
@@ -1063,13 +1205,19 @@ public Builder clearExcludedObjects() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> oracleExcludedObjectsBuilder_;
+              com.google.cloud.datastream.v1.OracleRdbms,
+              com.google.cloud.datastream.v1.OracleRdbms.Builder,
+              com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>
+          oracleExcludedObjectsBuilder_;
       /**
+       *
+       *
        * 
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -1077,11 +1225,14 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ @java.lang.Override @@ -1099,6 +1250,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1119,6 +1272,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdb return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1137,6 +1292,8 @@ public Builder setOracleExcludedObjects( return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1145,10 +1302,14 @@ public Builder setOracleExcludedObjects( */ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 1 && - excludedObjects_ != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { - excludedObjects_ = com.google.cloud.datastream.v1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_) - .mergeFrom(value).buildPartial(); + if (excludedObjectsCase_ == 1 + && excludedObjects_ + != com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludedObjects_ = value; } @@ -1164,6 +1325,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleR return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1187,6 +1350,8 @@ public Builder clearOracleExcludedObjects() { return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1197,6 +1362,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1204,7 +1371,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder + getOracleExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1215,6 +1383,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObje } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1222,14 +1392,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObje * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder() { if (oracleExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 1)) { excludedObjects_ = com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); } - oracleExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.OracleRdbms, com.google.cloud.datastream.v1.OracleRdbms.Builder, com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( + oracleExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.OracleRdbms, + com.google.cloud.datastream.v1.OracleRdbms.Builder, + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1241,13 +1416,19 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObje } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> mysqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + mysqlExcludedObjectsBuilder_; /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -1255,11 +1436,14 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ @java.lang.Override @@ -1277,6 +1461,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1297,6 +1483,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1315,6 +1503,8 @@ public Builder setMysqlExcludedObjects( return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1323,10 +1513,14 @@ public Builder setMysqlExcludedObjects( */ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 2 && - excludedObjects_ != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { - excludedObjects_ = com.google.cloud.datastream.v1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_) - .mergeFrom(value).buildPartial(); + if (excludedObjectsCase_ == 2 + && excludedObjects_ + != com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludedObjects_ = value; } @@ -1342,6 +1536,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdb return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1365,6 +1561,8 @@ public Builder clearMysqlExcludedObjects() { return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1375,6 +1573,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjects return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1393,6 +1593,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1400,14 +1602,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder() { if (mysqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 2)) { excludedObjects_ = com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); } - mysqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.MysqlRdbms, com.google.cloud.datastream.v1.MysqlRdbms.Builder, com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( + mysqlExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.MysqlRdbms, + com.google.cloud.datastream.v1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1419,13 +1626,19 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> postgresqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + postgresqlExcludedObjectsBuilder_; /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return Whether the postgresqlExcludedObjects field is set. */ @java.lang.Override @@ -1433,11 +1646,14 @@ public boolean hasPostgresqlExcludedObjects() { return excludedObjectsCase_ == 3; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; + * * @return The postgresqlExcludedObjects. */ @java.lang.Override @@ -1455,13 +1671,16 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlExcludedObjec } } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public Builder setPostgresqlExcludedObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + public Builder setPostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1475,6 +1694,8 @@ public Builder setPostgresqlExcludedObjects(com.google.cloud.datastream.v1.Postg return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1493,18 +1714,25 @@ public Builder setPostgresqlExcludedObjects( return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public Builder mergePostgresqlExcludedObjects(com.google.cloud.datastream.v1.PostgresqlRdbms value) { + public Builder mergePostgresqlExcludedObjects( + com.google.cloud.datastream.v1.PostgresqlRdbms value) { if (postgresqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 3 && - excludedObjects_ != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { - excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) - .mergeFrom(value).buildPartial(); + if (excludedObjectsCase_ == 3 + && excludedObjects_ + != com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder( + (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludedObjects_ = value; } @@ -1520,6 +1748,8 @@ public Builder mergePostgresqlExcludedObjects(com.google.cloud.datastream.v1.Pos return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1543,16 +1773,21 @@ public Builder clearPostgresqlExcludedObjects() { return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ - public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder + getPostgresqlExcludedObjectsBuilder() { return getPostgresqlExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1560,7 +1795,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlExclu * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder + getPostgresqlExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 3) && (postgresqlExcludedObjectsBuilder_ != null)) { return postgresqlExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1571,6 +1807,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcl } } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1578,14 +1816,19 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcl * .google.cloud.datastream.v1.PostgresqlRdbms postgresql_excluded_objects = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder> getPostgresqlExcludedObjectsFieldBuilder() { if (postgresqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 3)) { excludedObjects_ = com.google.cloud.datastream.v1.PostgresqlRdbms.getDefaultInstance(); } - postgresqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.PostgresqlRdbms, com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( + postgresqlExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.PostgresqlRdbms, + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder, + com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1595,6 +1838,7 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcl onChanged(); return postgresqlExcludedObjectsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1607,12 +1851,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillAllStrategy) private static final com.google.cloud.datastream.v1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(); } @@ -1621,27 +1865,28 @@ public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillAllStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillAllStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1656,58 +1901,61 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BackfillNoneStrategyOrBuilder extends + public interface BackfillNoneStrategyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Backfill strategy to disable automatic backfill for the Stream's objects.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} */ - public static final class BackfillNoneStrategy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) BackfillNoneStrategyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackfillNoneStrategy.newBuilder() to construct. private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BackfillNoneStrategy() { - } + + private BackfillNoneStrategy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackfillNoneStrategy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1719,8 +1967,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -1738,12 +1985,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other = + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1762,87 +2010,94 @@ public int hashCode() { } public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1852,39 +2107,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to disable automatic backfill for the Stream's objects.
      * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillNoneStrategy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); } // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1892,13 +2149,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } @@ -1913,7 +2171,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = + new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(this); onBuilt(); return result; } @@ -1922,38 +2181,41 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) { - return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy)other); + return mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) other); } else { super.mergeFrom(other); return this; @@ -1961,7 +2223,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { - if (other == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1988,12 +2252,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -2003,6 +2268,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2015,12 +2281,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) - private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); } @@ -2029,27 +2296,28 @@ public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillNoneStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillNoneStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2064,19 +2332,21 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int bitField0_; private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; + public enum BackfillStrategyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKFILL_ALL(101), BACKFILL_NONE(102), BACKFILLSTRATEGY_NOT_SET(0); private final int value; + private BackfillStrategyCase(int value) { this.value = value; } @@ -2092,32 +2362,39 @@ public static BackfillStrategyCase valueOf(int value) { public static BackfillStrategyCase forNumber(int value) { switch (value) { - case 101: return BACKFILL_ALL; - case 102: return BACKFILL_NONE; - case 0: return BACKFILLSTRATEGY_NOT_SET; - default: return null; + case 101: + return BACKFILL_ALL; + case 102: + return BACKFILL_NONE; + case 0: + return BACKFILLSTRATEGY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BackfillStrategyCase - getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber( - backfillStrategyCase_); + public BackfillStrategyCase getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber(backfillStrategyCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -2126,29 +2403,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -2159,11 +2436,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -2171,11 +2452,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -2183,11 +2468,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2197,11 +2485,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2209,11 +2501,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -2221,11 +2517,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2233,32 +2532,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -2266,20 +2567,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -2291,6 +2593,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2298,17 +2602,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -2316,11 +2622,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2328,14 +2634,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -2344,29 +2654,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2377,11 +2687,16 @@ public java.lang.String getDisplayName() { public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ @java.lang.Override @@ -2389,37 +2704,55 @@ public boolean hasSourceConfig() { return sourceConfig_ != null; } /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { - return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; } /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { - return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; } public static final int DESTINATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ @java.lang.Override @@ -2427,63 +2760,88 @@ public boolean hasDestinationConfig() { return destinationConfig_ != null; } /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { - return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { - return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } public static final int STATE_FIELD_NUMBER = 8; private int state_ = 0; /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1.Stream.State getState() { - com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.State getState() { + com.google.cloud.datastream.v1.Stream.State result = + com.google.cloud.datastream.v1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; } public static final int BACKFILL_ALL_FIELD_NUMBER = 101; /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -2491,22 +2849,27 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); } /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -2515,20 +2878,24 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll(
    * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
+  public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder
+      getBackfillAllOrBuilder() {
     if (backfillStrategyCase_ == 101) {
-       return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_;
+      return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_;
     }
     return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
   }
 
   public static final int BACKFILL_NONE_FIELD_NUMBER = 102;
   /**
+   *
+   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -2536,21 +2903,26 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } /** + * + * *
    * Do not automatically backfill any objects.
    * 
@@ -2558,78 +2930,102 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNon * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } public static final int ERRORS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { return errors_.get(index); } public static final int CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object customerManagedEncryptionKey_ = ""; /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -2637,7 +3033,10 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the customerManagedEncryptionKey field is set. */ @java.lang.Override @@ -2645,6 +3044,8 @@ public boolean hasCustomerManagedEncryptionKey() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -2652,7 +3053,10 @@ public boolean hasCustomerManagedEncryptionKey() {
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The customerManagedEncryptionKey. */ @java.lang.Override @@ -2661,14 +3065,15 @@ public java.lang.String getCustomerManagedEncryptionKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerManagedEncryptionKey_ = s; return s; } } /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -2676,17 +3081,18 @@ public java.lang.String getCustomerManagedEncryptionKey() {
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for customerManagedEncryptionKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomerManagedEncryptionKeyBytes() { + public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { java.lang.Object ref = customerManagedEncryptionKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customerManagedEncryptionKey_ = b; return b; } else { @@ -2695,6 +3101,7 @@ public java.lang.String getCustomerManagedEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2706,8 +3113,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2717,12 +3123,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -2742,10 +3144,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customerManagedEncryptionKey_); } if (backfillStrategyCase_ == 101) { - output.writeMessage(101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); + output.writeMessage( + 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - output.writeMessage(102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + output.writeMessage( + 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); } getUnknownFields().writeTo(output); } @@ -2760,52 +3164,50 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (sourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSourceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); } if (destinationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDestinationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); } if (state_ != com.google.cloud.datastream.v1.Stream.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, customerManagedEncryptionKey_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 10, customerManagedEncryptionKey_); } if (backfillStrategyCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2815,56 +3217,46 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Stream)) { return super.equals(obj); } com.google.cloud.datastream.v1.Stream other = (com.google.cloud.datastream.v1.Stream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasSourceConfig() != other.hasSourceConfig()) return false; if (hasSourceConfig()) { - if (!getSourceConfig() - .equals(other.getSourceConfig())) return false; + if (!getSourceConfig().equals(other.getSourceConfig())) return false; } if (hasDestinationConfig() != other.hasDestinationConfig()) return false; if (hasDestinationConfig()) { - if (!getDestinationConfig() - .equals(other.getDestinationConfig())) return false; + if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; } if (state_ != other.state_) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (hasCustomerManagedEncryptionKey() != other.hasCustomerManagedEncryptionKey()) return false; if (hasCustomerManagedEncryptionKey()) { - if (!getCustomerManagedEncryptionKey() - .equals(other.getCustomerManagedEncryptionKey())) return false; + if (!getCustomerManagedEncryptionKey().equals(other.getCustomerManagedEncryptionKey())) + return false; } if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: - if (!getBackfillAll() - .equals(other.getBackfillAll())) return false; + if (!getBackfillAll().equals(other.getBackfillAll())) return false; break; case 102: - if (!getBackfillNone() - .equals(other.getBackfillNone())) return false; + if (!getBackfillNone().equals(other.getBackfillNone())) return false; break; case 0: default: @@ -2931,152 +3323,155 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Stream parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Stream parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.Stream parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.datastream.v1.Stream parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Stream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Stream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A resource representing streaming data from a source to a destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Stream} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Stream) com.google.cloud.datastream.v1.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Stream.class, com.google.cloud.datastream.v1.Stream.Builder.class); + com.google.cloud.datastream.v1.Stream.class, + com.google.cloud.datastream.v1.Stream.Builder.class); } // Construct using com.google.cloud.datastream.v1.Stream.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -3125,9 +3520,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Stream_descriptor; } @java.lang.Override @@ -3146,9 +3541,12 @@ public com.google.cloud.datastream.v1.Stream build() { @java.lang.Override public com.google.cloud.datastream.v1.Stream buildPartial() { - com.google.cloud.datastream.v1.Stream result = new com.google.cloud.datastream.v1.Stream(this); + com.google.cloud.datastream.v1.Stream result = + new com.google.cloud.datastream.v1.Stream(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -3172,14 +3570,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -3189,14 +3583,14 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.sourceConfig_ = sourceConfigBuilder_ == null - ? sourceConfig_ - : sourceConfigBuilder_.build(); + result.sourceConfig_ = + sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.destinationConfig_ = destinationConfigBuilder_ == null - ? destinationConfig_ - : destinationConfigBuilder_.build(); + result.destinationConfig_ = + destinationConfigBuilder_ == null + ? destinationConfig_ + : destinationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -3212,12 +3606,10 @@ private void buildPartial0(com.google.cloud.datastream.v1.Stream result) { private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream result) { result.backfillStrategyCase_ = backfillStrategyCase_; result.backfillStrategy_ = this.backfillStrategy_; - if (backfillStrategyCase_ == 101 && - backfillAllBuilder_ != null) { + if (backfillStrategyCase_ == 101 && backfillAllBuilder_ != null) { result.backfillStrategy_ = backfillAllBuilder_.build(); } - if (backfillStrategyCase_ == 102 && - backfillNoneBuilder_ != null) { + if (backfillStrategyCase_ == 102 && backfillNoneBuilder_ != null) { result.backfillStrategy_ = backfillNoneBuilder_.build(); } } @@ -3226,38 +3618,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1.Stream result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Stream) { - return mergeFrom((com.google.cloud.datastream.v1.Stream)other); + return mergeFrom((com.google.cloud.datastream.v1.Stream) other); } else { super.mergeFrom(other); return this; @@ -3277,8 +3670,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -3312,9 +3704,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -3326,17 +3719,20 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { onChanged(); } switch (other.getBackfillStrategyCase()) { - case BACKFILL_ALL: { - mergeBackfillAll(other.getBackfillAll()); - break; - } - case BACKFILL_NONE: { - mergeBackfillNone(other.getBackfillNone()); - break; - } - case BACKFILLSTRATEGY_NOT_SET: { - break; - } + case BACKFILL_ALL: + { + mergeBackfillAll(other.getBackfillAll()); + break; + } + case BACKFILL_NONE: + { + mergeBackfillNone(other.getBackfillNone()); + break; + } + case BACKFILLSTRATEGY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3364,96 +3760,99 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getDestinationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: { - customerManagedEncryptionKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 82 - case 810: { - input.readMessage( - getBackfillAllFieldBuilder().getBuilder(), - extensionRegistry); - backfillStrategyCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getBackfillNoneFieldBuilder().getBuilder(), - extensionRegistry); - backfillStrategyCase_ = 102; - break; - } // case 818 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + customerManagedEncryptionKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 82 + case 810: + { + input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); + backfillStrategyCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getBackfillNoneFieldBuilder().getBuilder(), extensionRegistry); + backfillStrategyCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3463,12 +3862,12 @@ public Builder mergeFrom( } // finally return this; } + private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - public BackfillStrategyCase - getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber( - backfillStrategyCase_); + + public BackfillStrategyCase getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber(backfillStrategyCase_); } public Builder clearBackfillStrategy() { @@ -3482,18 +3881,20 @@ public Builder clearBackfillStrategy() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3502,20 +3903,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3523,28 +3925,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3554,17 +3963,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3574,39 +3987,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3622,14 +4054,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3640,17 +4075,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3663,11 +4102,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3680,11 +4123,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -3692,36 +4139,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3729,39 +4188,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3777,14 +4255,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3795,17 +4276,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3818,11 +4303,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -3835,11 +4324,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -3847,56 +4340,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3905,10 +4408,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -3916,20 +4422,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -3941,6 +4448,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -3948,17 +4457,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -3966,91 +4477,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -4059,20 +4574,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -4080,28 +4596,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -4111,17 +4634,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -4131,39 +4658,58 @@ public Builder setDisplayNameBytes( private com.google.cloud.datastream.v1.SourceConfig sourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder> sourceConfigBuilder_; + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder> + sourceConfigBuilder_; /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ public boolean hasSourceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ public com.google.cloud.datastream.v1.SourceConfig getSourceConfig() { if (sourceConfigBuilder_ == null) { - return sourceConfig_ == null ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; } else { return sourceConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { if (sourceConfigBuilder_ == null) { @@ -4179,11 +4725,15 @@ public Builder setSourceConfig(com.google.cloud.datastream.v1.SourceConfig value return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSourceConfig( com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { @@ -4197,17 +4747,21 @@ public Builder setSourceConfig( return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig value) { if (sourceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - sourceConfig_ != null && - sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && sourceConfig_ != null + && sourceConfig_ != com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) { getSourceConfigBuilder().mergeFrom(value); } else { sourceConfig_ = value; @@ -4220,11 +4774,15 @@ public Builder mergeSourceConfig(com.google.cloud.datastream.v1.SourceConfig val return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSourceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -4237,11 +4795,15 @@ public Builder clearSourceConfig() { return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilder() { bitField0_ |= 0x00000020; @@ -4249,36 +4811,48 @@ public com.google.cloud.datastream.v1.SourceConfig.Builder getSourceConfigBuilde return getSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { if (sourceConfigBuilder_ != null) { return sourceConfigBuilder_.getMessageOrBuilder(); } else { - return sourceConfig_ == null ? - com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance() + : sourceConfig_; } } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder> + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder> getSourceConfigFieldBuilder() { if (sourceConfigBuilder_ == null) { - sourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceConfig, com.google.cloud.datastream.v1.SourceConfig.Builder, com.google.cloud.datastream.v1.SourceConfigOrBuilder>( - getSourceConfig(), - getParentForChildren(), - isClean()); + sourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceConfig, + com.google.cloud.datastream.v1.SourceConfig.Builder, + com.google.cloud.datastream.v1.SourceConfigOrBuilder>( + getSourceConfig(), getParentForChildren(), isClean()); sourceConfig_ = null; } return sourceConfigBuilder_; @@ -4286,39 +4860,58 @@ public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBui private com.google.cloud.datastream.v1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder> destinationConfigBuilder_; + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder> + destinationConfigBuilder_; /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ public boolean hasDestinationConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ public com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig() { if (destinationConfigBuilder_ == null) { - return destinationConfig_ == null ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } else { return destinationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { @@ -4334,11 +4927,15 @@ public Builder setDestinationConfig(com.google.cloud.datastream.v1.DestinationCo return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestinationConfig( com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { @@ -4352,17 +4949,22 @@ public Builder setDestinationConfig( return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - destinationConfig_ != null && - destinationConfig_ != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && destinationConfig_ != null + && destinationConfig_ + != com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance()) { getDestinationConfigBuilder().mergeFrom(value); } else { destinationConfig_ = value; @@ -4375,11 +4977,15 @@ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1.Destination return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDestinationConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -4392,11 +4998,15 @@ public Builder clearDestinationConfig() { return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationConfigBuilder() { bitField0_ |= 0x00000040; @@ -4404,36 +5014,49 @@ public com.google.cloud.datastream.v1.DestinationConfig.Builder getDestinationCo return getDestinationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1.DestinationConfigOrBuilder + getDestinationConfigOrBuilder() { if (destinationConfigBuilder_ != null) { return destinationConfigBuilder_.getMessageOrBuilder(); } else { - return destinationConfig_ == null ? - com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder> + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder> getDestinationConfigFieldBuilder() { if (destinationConfigBuilder_ == null) { - destinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.DestinationConfig, com.google.cloud.datastream.v1.DestinationConfig.Builder, com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( - getDestinationConfig(), - getParentForChildren(), - isClean()); + destinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.DestinationConfig, + com.google.cloud.datastream.v1.DestinationConfig.Builder, + com.google.cloud.datastream.v1.DestinationConfigOrBuilder>( + getDestinationConfig(), getParentForChildren(), isClean()); destinationConfig_ = null; } return destinationConfigBuilder_; @@ -4441,22 +5064,29 @@ public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationC private int state_ = 0; /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -4467,24 +5097,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.Stream.State getState() { - com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.forNumber(state_); + com.google.cloud.datastream.v1.Stream.State result = + com.google.cloud.datastream.v1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Stream.State.UNRECOGNIZED : result; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @param value The state to set. * @return This builder for chaining. */ @@ -4498,11 +5135,14 @@ public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return This builder for chaining. */ public Builder clearState() { @@ -4513,14 +5153,20 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> backfillAllBuilder_; + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> + backfillAllBuilder_; /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -4528,12 +5174,15 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ @java.lang.Override @@ -4551,6 +5200,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll( } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4572,6 +5223,8 @@ public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllS
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4591,6 +5244,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4598,12 +5253,17 @@ public Builder setBackfillAll(
      *
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder mergeBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) {
+    public Builder mergeBackfillAll(
+        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
-        if (backfillStrategyCase_ == 101 &&
-            backfillStrategy_ != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) {
-          backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_)
-              .mergeFrom(value).buildPartial();
+        if (backfillStrategyCase_ == 101
+            && backfillStrategy_
+                != com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) {
+          backfillStrategy_ =
+              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder(
+                      (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           backfillStrategy_ = value;
         }
@@ -4619,6 +5279,8 @@ public Builder mergeBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAl
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4643,6 +5305,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4650,10 +5314,13 @@ public Builder clearBackfillAll() {
      *
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder() {
+    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder
+        getBackfillAllBuilder() {
       return getBackfillAllFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4662,7 +5329,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder getBack
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     @java.lang.Override
-    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
+    public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder
+        getBackfillAllOrBuilder() {
       if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) {
         return backfillAllBuilder_.getMessageOrBuilder();
       } else {
@@ -4673,6 +5341,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBac
       }
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4681,14 +5351,20 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBac
      * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder> 
+            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy,
+            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder,
+            com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>
         getBackfillAllFieldBuilder() {
       if (backfillAllBuilder_ == null) {
         if (!(backfillStrategyCase_ == 101)) {
-          backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
+          backfillStrategy_ =
+              com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance();
         }
-        backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>(
+        backfillAllBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy,
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder,
+                com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder>(
                 (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_,
                 getParentForChildren(),
                 isClean());
@@ -4700,13 +5376,19 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBac
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> backfillNoneBuilder_;
+            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy,
+            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder,
+            com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>
+        backfillNoneBuilder_;
     /**
+     *
+     *
      * 
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -4714,11 +5396,14 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ @java.lang.Override @@ -4736,13 +5421,16 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNon } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + public Builder setBackfillNone( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4756,6 +5444,8 @@ public Builder setBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNon return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4774,18 +5464,27 @@ public Builder setBackfillNone( return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder mergeBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { + public Builder mergeBackfillNone( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 && - backfillStrategy_ != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) { - backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_) - .mergeFrom(value).buildPartial(); + if (backfillStrategyCase_ == 102 + && backfillStrategy_ + != com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy + .getDefaultInstance()) { + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder( + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + backfillStrategy_) + .mergeFrom(value) + .buildPartial(); } else { backfillStrategy_ = value; } @@ -4801,6 +5500,8 @@ public Builder mergeBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillN return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4824,16 +5525,21 @@ public Builder clearBackfillNone() { return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder + getBackfillNoneBuilder() { return getBackfillNoneFieldBuilder().getBuilder(); } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4841,7 +5547,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder getBac * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder() { if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { return backfillNoneBuilder_.getMessageOrBuilder(); } else { @@ -4852,6 +5559,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4859,14 +5568,20 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder> getBackfillNoneFieldBuilder() { if (backfillNoneBuilder_ == null) { if (!(backfillStrategyCase_ == 102)) { - backfillStrategy_ = com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + backfillStrategy_ = + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); } - backfillNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( + backfillNoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder>( (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, getParentForChildren(), isClean()); @@ -4878,23 +5593,31 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -4904,11 +5627,15 @@ public java.util.List getErrorsList() { } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -4918,11 +5645,15 @@ public int getErrorsCount() { } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -4932,14 +5663,17 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4953,11 +5687,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -4971,11 +5709,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -4991,14 +5733,17 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5012,14 +5757,17 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -5030,11 +5778,15 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -5048,18 +5800,21 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -5067,11 +5822,15 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -5084,11 +5843,15 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -5101,39 +5864,50 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( - int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -5141,49 +5915,62 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsBuilderList() { + public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; @@ -5191,6 +5978,8 @@ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( private java.lang.Object customerManagedEncryptionKey_ = ""; /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5198,13 +5987,18 @@ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the customerManagedEncryptionKey field is set. */ public boolean hasCustomerManagedEncryptionKey() { return ((bitField0_ & 0x00000800) != 0); } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5212,14 +6006,16 @@ public boolean hasCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The customerManagedEncryptionKey. */ public java.lang.String getCustomerManagedEncryptionKey() { java.lang.Object ref = customerManagedEncryptionKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customerManagedEncryptionKey_ = s; return s; @@ -5228,6 +6024,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5235,16 +6033,17 @@ public java.lang.String getCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for customerManagedEncryptionKey. */ - public com.google.protobuf.ByteString - getCustomerManagedEncryptionKeyBytes() { + public com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes() { java.lang.Object ref = customerManagedEncryptionKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customerManagedEncryptionKey_ = b; return b; } else { @@ -5252,6 +6051,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5259,19 +6060,25 @@ public java.lang.String getCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The customerManagedEncryptionKey to set. * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomerManagedEncryptionKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } customerManagedEncryptionKey_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5279,7 +6086,10 @@ public Builder setCustomerManagedEncryptionKey(
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return This builder for chaining. */ public Builder clearCustomerManagedEncryptionKey() { @@ -5289,6 +6099,8 @@ public Builder clearCustomerManagedEncryptionKey() { return this; } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5296,22 +6108,26 @@ public Builder clearCustomerManagedEncryptionKey() {
      * encryption key provisioned through KMS.
      * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @param value The bytes for customerManagedEncryptionKey to set. * @return This builder for chaining. */ - public Builder setCustomerManagedEncryptionKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); customerManagedEncryptionKey_ = value; bitField0_ |= 0x00000800; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5321,12 +6137,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Stream) private static final com.google.cloud.datastream.v1.Stream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream(); } @@ -5335,27 +6151,27 @@ public static com.google.cloud.datastream.v1.Stream getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5370,6 +6186,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java similarity index 66% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java index ef9ffad643fb..50b7eccebe96 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * A specific stream object (e.g a specific DB table).
  * 
* * Protobuf type {@code google.cloud.datastream.v1.StreamObject} */ -public final class StreamObject extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamObject extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StreamObject) StreamObjectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamObject.newBuilder() to construct. private StreamObject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StreamObject() { name_ = ""; displayName_ = ""; @@ -27,38 +45,43 @@ private StreamObject() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamObject(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StreamObject.class, com.google.cloud.datastream.v1.StreamObject.Builder.class); + com.google.cloud.datastream.v1.StreamObject.class, + com.google.cloud.datastream.v1.StreamObject.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -100,11 +123,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -112,11 +139,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -124,11 +155,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -138,11 +172,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -150,11 +188,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -162,11 +204,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -174,14 +219,18 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -190,29 +239,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -221,74 +270,97 @@ public java.lang.String getDisplayName() { } public static final int ERRORS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { return errors_.get(index); } public static final int BACKFILL_JOB_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1.BackfillJob backfillJob_; /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return Whether the backfillJob field is set. */ @java.lang.Override @@ -296,18 +368,25 @@ public boolean hasBackfillJob() { return backfillJob_ != null; } /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return The backfillJob. */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { - return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; + return backfillJob_ == null + ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() + : backfillJob_; } /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
@@ -316,17 +395,22 @@ public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { */ @java.lang.Override public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() { - return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; + return backfillJob_ == null + ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() + : backfillJob_; } public static final int SOURCE_OBJECT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_; /** + * + * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return Whether the sourceObject field is set. */ @java.lang.Override @@ -334,18 +418,25 @@ public boolean hasSourceObject() { return sourceObject_ != null; } /** + * + * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return The sourceObject. */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { - return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; + return sourceObject_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObject_; } /** + * + * *
    * The object identifier in the data source.
    * 
@@ -354,10 +445,13 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { */ @java.lang.Override public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() { - return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; + return sourceObject_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObject_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +463,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -405,27 +498,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, errors_.get(i)); } if (backfillJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getBackfillJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getBackfillJob()); } if (sourceObject_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSourceObject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSourceObject()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -435,38 +523,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.StreamObject)) { return super.equals(obj); } - com.google.cloud.datastream.v1.StreamObject other = (com.google.cloud.datastream.v1.StreamObject) obj; + com.google.cloud.datastream.v1.StreamObject other = + (com.google.cloud.datastream.v1.StreamObject) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (hasBackfillJob() != other.hasBackfillJob()) return false; if (hasBackfillJob()) { - if (!getBackfillJob() - .equals(other.getBackfillJob())) return false; + if (!getBackfillJob().equals(other.getBackfillJob())) return false; } if (hasSourceObject() != other.hasSourceObject()) return false; if (hasSourceObject()) { - if (!getSourceObject() - .equals(other.getSourceObject())) return false; + if (!getSourceObject().equals(other.getSourceObject())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -508,130 +590,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.StreamObject parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StreamObject parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.StreamObject parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.StreamObject prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A specific stream object (e.g a specific DB table).
    * 
* * Protobuf type {@code google.cloud.datastream.v1.StreamObject} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.StreamObject) com.google.cloud.datastream.v1.StreamObjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.StreamObject.class, com.google.cloud.datastream.v1.StreamObject.Builder.class); + com.google.cloud.datastream.v1.StreamObject.class, + com.google.cloud.datastream.v1.StreamObject.Builder.class); } // Construct using com.google.cloud.datastream.v1.StreamObject.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -669,9 +757,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_StreamObject_descriptor; } @java.lang.Override @@ -690,9 +778,12 @@ public com.google.cloud.datastream.v1.StreamObject build() { @java.lang.Override public com.google.cloud.datastream.v1.StreamObject buildPartial() { - com.google.cloud.datastream.v1.StreamObject result = new com.google.cloud.datastream.v1.StreamObject(this); + com.google.cloud.datastream.v1.StreamObject result = + new com.google.cloud.datastream.v1.StreamObject(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -715,27 +806,21 @@ private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.backfillJob_ = backfillJobBuilder_ == null - ? backfillJob_ - : backfillJobBuilder_.build(); + result.backfillJob_ = + backfillJobBuilder_ == null ? backfillJob_ : backfillJobBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.sourceObject_ = sourceObjectBuilder_ == null - ? sourceObject_ - : sourceObjectBuilder_.build(); + result.sourceObject_ = + sourceObjectBuilder_ == null ? sourceObject_ : sourceObjectBuilder_.build(); } } @@ -743,38 +828,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.StreamObject result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.StreamObject) { - return mergeFrom((com.google.cloud.datastream.v1.StreamObject)other); + return mergeFrom((com.google.cloud.datastream.v1.StreamObject) other); } else { super.mergeFrom(other); return this; @@ -817,9 +903,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000010); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -857,63 +944,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 50: { - com.google.cloud.datastream.v1.Error m = - input.readMessage( - com.google.cloud.datastream.v1.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 50 - case 58: { - input.readMessage( - getBackfillJobFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 58 - case 66: { - input.readMessage( - getSourceObjectFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.datastream.v1.Error m = + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage(getBackfillJobFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage(getSourceObjectFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -923,22 +1009,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -947,20 +1036,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -968,28 +1058,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -999,17 +1096,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The object resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1019,39 +1120,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1067,14 +1187,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1085,17 +1208,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1108,11 +1235,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1125,11 +1256,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1137,36 +1272,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation time of the object.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1174,39 +1321,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1222,14 +1388,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1240,17 +1409,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1263,11 +1436,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1280,11 +1457,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1292,36 +1473,48 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The last update time of the object.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; @@ -1329,18 +1522,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1349,20 +1544,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1370,28 +1566,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1401,17 +1604,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000008; @@ -1420,23 +1627,31 @@ public Builder setDisplayNameBytes( } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000010; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorsBuilder_; + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -1446,11 +1661,15 @@ public java.util.List getErrorsList() { } } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -1460,11 +1679,15 @@ public int getErrorsCount() { } } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -1474,14 +1697,17 @@ public com.google.cloud.datastream.v1.Error getErrors(int index) { } } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder setErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1495,11 +1721,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1513,11 +1743,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { @@ -1533,14 +1767,17 @@ public Builder addErrors(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1.Error value) { + public Builder addErrors(int index, com.google.cloud.datastream.v1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1554,14 +1791,17 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder addErrors(com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -1572,11 +1812,15 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors( int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { @@ -1590,18 +1834,21 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -1609,11 +1856,15 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -1626,11 +1877,15 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -1643,39 +1898,50 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder( - int index) { + public com.google.cloud.datastream.v1.Error.Builder getErrorsBuilder(int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -1683,49 +1949,62 @@ public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Active errors on the object.
      * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsBuilderList() { + public java.util.List getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; @@ -1733,34 +2012,47 @@ public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder( private com.google.cloud.datastream.v1.BackfillJob backfillJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder> backfillJobBuilder_; + com.google.cloud.datastream.v1.BackfillJob, + com.google.cloud.datastream.v1.BackfillJob.Builder, + com.google.cloud.datastream.v1.BackfillJobOrBuilder> + backfillJobBuilder_; /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return Whether the backfillJob field is set. */ public boolean hasBackfillJob() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return The backfillJob. */ public com.google.cloud.datastream.v1.BackfillJob getBackfillJob() { if (backfillJobBuilder_ == null) { - return backfillJob_ == null ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; + return backfillJob_ == null + ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() + : backfillJob_; } else { return backfillJobBuilder_.getMessage(); } } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1781,6 +2073,8 @@ public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1799,6 +2093,8 @@ public Builder setBackfillJob( return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1807,9 +2103,9 @@ public Builder setBackfillJob( */ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) { if (backfillJobBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - backfillJob_ != null && - backfillJob_ != com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && backfillJob_ != null + && backfillJob_ != com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) { getBackfillJobBuilder().mergeFrom(value); } else { backfillJob_ = value; @@ -1822,6 +2118,8 @@ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1839,6 +2137,8 @@ public Builder clearBackfillJob() { return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1851,6 +2151,8 @@ public com.google.cloud.datastream.v1.BackfillJob.Builder getBackfillJobBuilder( return getBackfillJobFieldBuilder().getBuilder(); } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1861,11 +2163,14 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild if (backfillJobBuilder_ != null) { return backfillJobBuilder_.getMessageOrBuilder(); } else { - return backfillJob_ == null ? - com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; + return backfillJob_ == null + ? com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() + : backfillJob_; } } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1873,14 +2178,17 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder> + com.google.cloud.datastream.v1.BackfillJob, + com.google.cloud.datastream.v1.BackfillJob.Builder, + com.google.cloud.datastream.v1.BackfillJobOrBuilder> getBackfillJobFieldBuilder() { if (backfillJobBuilder_ == null) { - backfillJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.BackfillJob, com.google.cloud.datastream.v1.BackfillJob.Builder, com.google.cloud.datastream.v1.BackfillJobOrBuilder>( - getBackfillJob(), - getParentForChildren(), - isClean()); + backfillJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.BackfillJob, + com.google.cloud.datastream.v1.BackfillJob.Builder, + com.google.cloud.datastream.v1.BackfillJobOrBuilder>( + getBackfillJob(), getParentForChildren(), isClean()); backfillJob_ = null; } return backfillJobBuilder_; @@ -1888,34 +2196,47 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild private com.google.cloud.datastream.v1.SourceObjectIdentifier sourceObject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> sourceObjectBuilder_; + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + sourceObjectBuilder_; /** + * + * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return Whether the sourceObject field is set. */ public boolean hasSourceObject() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return The sourceObject. */ public com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject() { if (sourceObjectBuilder_ == null) { - return sourceObject_ == null ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; + return sourceObject_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObject_; } else { return sourceObjectBuilder_.getMessage(); } } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -1936,6 +2257,8 @@ public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdenti return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -1954,6 +2277,8 @@ public Builder setSourceObject( return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -1962,9 +2287,10 @@ public Builder setSourceObject( */ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { if (sourceObjectBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - sourceObject_ != null && - sourceObject_ != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && sourceObject_ != null + && sourceObject_ + != com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) { getSourceObjectBuilder().mergeFrom(value); } else { sourceObject_ = value; @@ -1977,6 +2303,8 @@ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIden return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -1994,6 +2322,8 @@ public Builder clearSourceObject() { return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2006,21 +2336,27 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceOb return getSourceObjectFieldBuilder().getBuilder(); } /** + * + * *
      * The object identifier in the data source.
      * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ - public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() { + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectOrBuilder() { if (sourceObjectBuilder_ != null) { return sourceObjectBuilder_.getMessageOrBuilder(); } else { - return sourceObject_ == null ? - com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; + return sourceObject_ == null + ? com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() + : sourceObject_; } } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2028,21 +2364,24 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceO * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder> getSourceObjectFieldBuilder() { if (sourceObjectBuilder_ == null) { - sourceObjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.SourceObjectIdentifier, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( - getSourceObject(), - getParentForChildren(), - isClean()); + sourceObjectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.SourceObjectIdentifier, + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder, + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder>( + getSourceObject(), getParentForChildren(), isClean()); sourceObject_ = null; } return sourceObjectBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2052,12 +2391,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.StreamObject) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.StreamObject) private static final com.google.cloud.datastream.v1.StreamObject DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.StreamObject(); } @@ -2066,27 +2405,27 @@ public static com.google.cloud.datastream.v1.StreamObject getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamObject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamObject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2101,6 +2440,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StreamObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java index 1551449c56db..b99264eb7590 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java @@ -1,169 +1,242 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface StreamObjectOrBuilder extends +public interface StreamObjectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StreamObject) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The object resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time of the object.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update time of the object.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.Error getErrors(int index); /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getErrorsCount(); /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsOrBuilderList(); + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Output only. Active errors on the object.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return Whether the backfillJob field is set. */ boolean hasBackfillJob(); /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
* * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + * * @return The backfillJob. */ com.google.cloud.datastream.v1.BackfillJob getBackfillJob(); /** + * + * *
    * The latest backfill job that was initiated for the stream object.
    * 
@@ -173,24 +246,32 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder(); /** + * + * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return Whether the sourceObject field is set. */ boolean hasSourceObject(); /** + * + * *
    * The object identifier in the data source.
    * 
* * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + * * @return The sourceObject. */ com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObject(); /** + * + * *
    * The object identifier in the data source.
    * 
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java similarity index 68% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java index 06aac08ce642..6ecad59a9af1 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface StreamOrBuilder extends +public interface StreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface StreamOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,134 +167,182 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ com.google.cloud.datastream.v1.SourceConfig getSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The state. */ com.google.cloud.datastream.v1.Stream.State getState(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -259,24 +353,32 @@ java.lang.String getLabelsOrThrow(
   com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder();
 
   /**
+   *
+   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ boolean hasBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
@@ -286,50 +388,69 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.Error getErrors(int index); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getErrorsCount(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsOrBuilderList(); + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -337,11 +458,16 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the customerManagedEncryptionKey field is set. */ boolean hasCustomerManagedEncryptionKey(); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -349,11 +475,16 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The customerManagedEncryptionKey. */ java.lang.String getCustomerManagedEncryptionKey(); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -361,11 +492,13 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The bytes for customerManagedEncryptionKey. */ - com.google.protobuf.ByteString - getCustomerManagedEncryptionKeyBytes(); + com.google.protobuf.ByteString getCustomerManagedEncryptionKeyBytes(); public com.google.cloud.datastream.v1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java similarity index 71% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java index fd9b96268048..137a6b94669d 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java @@ -1,56 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Connection profile update message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateConnectionProfileRequest} */ -public final class UpdateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -59,7 +81,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +91,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -75,7 +101,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +111,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -91,7 +121,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +132,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -113,33 +149,49 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +207,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +216,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +240,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,12 +259,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the connection profile, but don't update any
    * resources. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -222,11 +278,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** + * + * *
    * Optional. Update the connection profile without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -235,6 +294,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +306,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -273,23 +332,19 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,29 +354,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other = (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other = + (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,140 +395,145 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Connection profile update message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.UpdateConnectionProfileRequest) com.google.cloud.datastream.v1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -499,13 +555,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance(); } @@ -520,23 +577,26 @@ public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = + new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.connectionProfile_ = connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = + connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -553,38 +613,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.UpdateConnectionProfil public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; @@ -592,7 +653,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -636,41 +699,44 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,12 +746,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -694,13 +766,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -709,17 +785,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -728,7 +810,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -744,6 +827,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -752,10 +837,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +851,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -774,13 +861,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -793,6 +881,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -801,7 +891,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -814,6 +905,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -822,7 +915,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -830,6 +924,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -838,17 +934,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -857,17 +957,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -875,39 +979,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { @@ -923,11 +1046,15 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { @@ -941,17 +1068,22 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - connectionProfile_ != null && - connectionProfile_ != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && connectionProfile_ != null + && connectionProfile_ + != com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -964,11 +1096,15 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000002); @@ -981,11 +1117,15 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { bitField0_ |= 0x00000002; @@ -993,36 +1133,49 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The connection profile to update.
      * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.ConnectionProfile, com.google.cloud.datastream.v1.ConnectionProfile.Builder, com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.ConnectionProfile, + com.google.cloud.datastream.v1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -1030,6 +1183,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1045,13 +1200,13 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1060,6 +1215,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1075,15 +1232,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1091,6 +1247,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1106,18 +1264,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1133,6 +1295,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1142,6 +1305,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1157,12 +1322,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1170,14 +1337,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the connection profile, but don't update any
      * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1185,29 +1355,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the connection profile, but don't update any
      * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the connection profile, but don't update any
      * resources. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1217,13 +1393,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1231,27 +1410,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Update the connection profile without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1260,9 +1445,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1272,12 +1457,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.UpdateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1.UpdateConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(); } @@ -1286,27 +1472,27 @@ public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1321,6 +1507,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java index f379a1f00a1c..ce0220ab04d2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface UpdateConnectionProfileRequestOrBuilder extends +public interface UpdateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The connection profile to update.
    * 
* - * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,28 +154,34 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the connection profile, but don't update any
    * resources. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Update the connection profile without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java index 84bdace42480..397bc203fcd7 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java @@ -1,56 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Request message for updating a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateStreamRequest} */ -public final class UpdateStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateStreamRequest) UpdateStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateStreamRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateStreamRequest.class, com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateStreamRequest.class, + com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -59,7 +80,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -67,6 +90,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -75,7 +100,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -83,6 +110,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -91,7 +120,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -101,11 +131,15 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1.Stream stream_; /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ @java.lang.Override @@ -113,11 +147,15 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ @java.lang.Override @@ -125,11 +163,14 @@ public com.google.cloud.datastream.v1.Stream getStream() { return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; } /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { @@ -137,9 +178,12 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -155,6 +199,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -163,14 +208,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -186,16 +232,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -206,12 +251,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the stream with the changes, without actually
    * updating it. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -222,11 +270,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** + * + * *
    * Optional. Update the stream without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -235,6 +286,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +298,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -273,23 +324,19 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -299,29 +346,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.UpdateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1.UpdateStreamRequest other = (com.google.cloud.datastream.v1.UpdateStreamRequest) obj; + com.google.cloud.datastream.v1.UpdateStreamRequest other = + (com.google.cloud.datastream.v1.UpdateStreamRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getStream().equals(other.getStream())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,140 +387,144 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.UpdateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.UpdateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for updating a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.UpdateStreamRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.UpdateStreamRequest) com.google.cloud.datastream.v1.UpdateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.UpdateStreamRequest.class, com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1.UpdateStreamRequest.class, + com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1.UpdateStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; } @java.lang.Override @@ -520,8 +567,11 @@ public com.google.cloud.datastream.v1.UpdateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1.UpdateStreamRequest buildPartial() { - com.google.cloud.datastream.v1.UpdateStreamRequest result = new com.google.cloud.datastream.v1.UpdateStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.UpdateStreamRequest result = + new com.google.cloud.datastream.v1.UpdateStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -529,14 +579,10 @@ public com.google.cloud.datastream.v1.UpdateStreamRequest buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1.UpdateStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -553,38 +599,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.UpdateStreamRequest re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.UpdateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1.UpdateStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1.UpdateStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -592,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateStreamRequest other) { - if (other == com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -636,41 +684,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -680,12 +730,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -694,13 +750,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -709,17 +769,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -728,7 +794,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -744,6 +811,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -752,10 +821,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -766,6 +835,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -774,13 +845,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -793,6 +865,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -801,7 +875,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -814,6 +889,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -822,7 +899,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -830,6 +908,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -838,17 +918,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -857,17 +941,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -875,39 +963,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> streamBuilder_; + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> + streamBuilder_; /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ public com.google.cloud.datastream.v1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { @@ -923,14 +1030,17 @@ public Builder setStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStream( - com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + public Builder setStream(com.google.cloud.datastream.v1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -941,17 +1051,21 @@ public Builder setStream( return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - stream_ != null && - stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && stream_ != null + && stream_ != com.google.cloud.datastream.v1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -964,11 +1078,15 @@ public Builder mergeStream(com.google.cloud.datastream.v1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -981,11 +1099,15 @@ public Builder clearStream() { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000002; @@ -993,36 +1115,48 @@ public com.google.cloud.datastream.v1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.datastream.v1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder> + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Stream, com.google.cloud.datastream.v1.Stream.Builder, com.google.cloud.datastream.v1.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1.Stream, + com.google.cloud.datastream.v1.Stream.Builder, + com.google.cloud.datastream.v1.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; @@ -1030,6 +1164,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1045,13 +1181,13 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1060,6 +1196,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1075,15 +1213,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1091,6 +1228,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1106,18 +1245,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1133,6 +1276,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1142,6 +1286,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1157,12 +1303,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1170,14 +1318,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the stream with the changes, without actually
      * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1185,29 +1336,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the stream with the changes, without actually
      * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the stream with the changes, without actually
      * updating it. The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1217,13 +1374,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1231,27 +1391,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Update the stream without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1260,9 +1426,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1272,12 +1438,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.UpdateStreamRequest) private static final com.google.cloud.datastream.v1.UpdateStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UpdateStreamRequest(); } @@ -1286,27 +1452,27 @@ public static com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1321,6 +1487,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java index 5f2d92551adf..ffe1453e4023 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream.proto package com.google.cloud.datastream.v1; -public interface UpdateStreamRequestOrBuilder extends +public interface UpdateStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -42,38 +68,52 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ com.google.cloud.datastream.v1.Stream getStream(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +129,13 @@ public interface UpdateStreamRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,28 +151,34 @@ public interface UpdateStreamRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the stream with the changes, without actually
    * updating it. The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Update the stream without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java index 3dd421eceea9..fe5e92fa29a2 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * A validation to perform on a stream.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.Validation} */ -public final class Validation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Validation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Validation) ValidationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Validation.newBuilder() to construct. private Validation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Validation() { description_ = ""; state_ = 0; @@ -28,39 +46,43 @@ private Validation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Validation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Validation.class, com.google.cloud.datastream.v1.Validation.Builder.class); + com.google.cloud.datastream.v1.Validation.class, + com.google.cloud.datastream.v1.Validation.Builder.class); } /** + * + * *
    * Validation execution state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.Validation.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified state.
      * 
@@ -69,6 +91,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -77,6 +101,8 @@ public enum State */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -85,6 +111,8 @@ public enum State */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -96,6 +124,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -104,6 +134,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -112,6 +144,8 @@ public enum State */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -120,6 +154,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -128,7 +164,6 @@ public enum State */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -153,50 +188,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return NOT_EXECUTED; - case 2: return FAILED; - case 3: return PASSED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return NOT_EXECUTED; + case 2: + return FAILED; + case 3: + return PASSED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.Validation.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -214,14 +250,18 @@ private State(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -230,29 +270,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -263,33 +303,45 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 2; private int state_ = 0; /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1.Validation.State getState() { - com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.datastream.v1.Validation.State getState() { + com.google.cloud.datastream.v1.Validation.State result = + com.google.cloud.datastream.v1.Validation.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Validation.State.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List message_; /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -301,6 +353,8 @@ public java.util.List getMessa return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -308,11 +362,13 @@ public java.util.List getMessa * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessageOrBuilderList() { return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -324,6 +380,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -335,6 +393,8 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -342,20 +402,23 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ @java.lang.Override - public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( - int index) { + public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder(int index) { return message_.get(index); } public static final int CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -364,29 +427,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -395,6 +458,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -406,8 +470,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } @@ -433,12 +496,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } if (state_ != com.google.cloud.datastream.v1.Validation.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, message_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, message_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -451,20 +512,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.Validation)) { return super.equals(obj); } - com.google.cloud.datastream.v1.Validation other = (com.google.cloud.datastream.v1.Validation) obj; + com.google.cloud.datastream.v1.Validation other = + (com.google.cloud.datastream.v1.Validation) obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getMessageList() - .equals(other.getMessageList())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!getMessageList().equals(other.getMessageList())) return false; + if (!getCode().equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -491,130 +550,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.Validation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.Validation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Validation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Validation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.Validation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.Validation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Validation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Validation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.Validation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.Validation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.Validation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A validation to perform on a stream.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.Validation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.Validation) com.google.cloud.datastream.v1.ValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.Validation.class, com.google.cloud.datastream.v1.Validation.Builder.class); + com.google.cloud.datastream.v1.Validation.class, + com.google.cloud.datastream.v1.Validation.Builder.class); } // Construct using com.google.cloud.datastream.v1.Validation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +698,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_Validation_descriptor; } @java.lang.Override @@ -654,9 +719,12 @@ public com.google.cloud.datastream.v1.Validation build() { @java.lang.Override public com.google.cloud.datastream.v1.Validation buildPartial() { - com.google.cloud.datastream.v1.Validation result = new com.google.cloud.datastream.v1.Validation(this); + com.google.cloud.datastream.v1.Validation result = + new com.google.cloud.datastream.v1.Validation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -690,38 +758,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.Validation result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.Validation) { - return mergeFrom((com.google.cloud.datastream.v1.Validation)other); + return mergeFrom((com.google.cloud.datastream.v1.Validation) other); } else { super.mergeFrom(other); return this; @@ -756,9 +825,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Validation other) { messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000004); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageFieldBuilder() : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageFieldBuilder() + : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -795,40 +865,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.cloud.datastream.v1.ValidationMessage m = - input.readMessage( - com.google.cloud.datastream.v1.ValidationMessage.parser(), - extensionRegistry); - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(m); - } else { - messageBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.datastream.v1.ValidationMessage m = + input.readMessage( + com.google.cloud.datastream.v1.ValidationMessage.parser(), + extensionRegistry); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(m); + } else { + messageBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -838,22 +913,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object description_ = ""; /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -862,20 +940,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -883,28 +962,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -914,17 +1000,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -934,22 +1024,29 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -960,24 +1057,31 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1.Validation.State getState() { - com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.forNumber(state_); + com.google.cloud.datastream.v1.Validation.State result = + com.google.cloud.datastream.v1.Validation.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1.Validation.State.UNRECOGNIZED : result; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @param value The state to set. * @return This builder for chaining. */ @@ -991,11 +1095,14 @@ public Builder setState(com.google.cloud.datastream.v1.Validation.State value) { return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { @@ -1006,18 +1113,25 @@ public Builder clearState() { } private java.util.List message_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - message_ = new java.util.ArrayList(message_); + message_ = + new java.util.ArrayList(message_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder> messageBuilder_; + com.google.cloud.datastream.v1.ValidationMessage, + com.google.cloud.datastream.v1.ValidationMessage.Builder, + com.google.cloud.datastream.v1.ValidationMessageOrBuilder> + messageBuilder_; /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1032,6 +1146,8 @@ public java.util.List getMessa } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1046,6 +1162,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1060,14 +1178,15 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public Builder setMessage( - int index, com.google.cloud.datastream.v1.ValidationMessage value) { + public Builder setMessage(int index, com.google.cloud.datastream.v1.ValidationMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1081,6 +1200,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1099,6 +1220,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1119,14 +1242,15 @@ public Builder addMessage(com.google.cloud.datastream.v1.ValidationMessage value return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public Builder addMessage( - int index, com.google.cloud.datastream.v1.ValidationMessage value) { + public Builder addMessage(int index, com.google.cloud.datastream.v1.ValidationMessage value) { if (messageBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1140,6 +1264,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1158,6 +1284,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1176,6 +1304,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1186,8 +1316,7 @@ public Builder addAllMessage( java.lang.Iterable values) { if (messageBuilder_ == null) { ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, message_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, message_); onChanged(); } else { messageBuilder_.addAllMessages(values); @@ -1195,6 +1324,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1212,6 +1343,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1229,17 +1362,20 @@ public Builder removeMessage(int index) { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilder( - int index) { + public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilder(int index) { return getMessageFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1249,19 +1385,22 @@ public com.google.cloud.datastream.v1.ValidationMessage.Builder getMessageBuilde public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { - return message_.get(index); } else { + return message_.get(index); + } else { return messageBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public java.util.List - getMessageOrBuilderList() { + public java.util.List + getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { @@ -1269,6 +1408,8 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1276,42 +1417,48 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder().addBuilder( - com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder( - int index) { - return getMessageFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); + public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilder(int index) { + return getMessageFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()); } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - public java.util.List - getMessageBuilderList() { + public java.util.List + getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder> + com.google.cloud.datastream.v1.ValidationMessage, + com.google.cloud.datastream.v1.ValidationMessage.Builder, + com.google.cloud.datastream.v1.ValidationMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.ValidationMessage, com.google.cloud.datastream.v1.ValidationMessage.Builder, com.google.cloud.datastream.v1.ValidationMessageOrBuilder>( - message_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + messageBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1.ValidationMessage, + com.google.cloud.datastream.v1.ValidationMessage.Builder, + com.google.cloud.datastream.v1.ValidationMessageOrBuilder>( + message_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; @@ -1319,18 +1466,20 @@ public com.google.cloud.datastream.v1.ValidationMessage.Builder addMessageBuilde private java.lang.Object code_ = ""; /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1339,20 +1488,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -1360,28 +1510,35 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -1391,26 +1548,30 @@ public Builder clearCode() { return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1420,12 +1581,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.Validation) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.Validation) private static final com.google.cloud.datastream.v1.Validation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Validation(); } @@ -1434,27 +1595,27 @@ public static com.google.cloud.datastream.v1.Validation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Validation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1469,6 +1630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java similarity index 65% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java index b8e47b5068ba..bb166c414666 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Represent user-facing validation result message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationMessage} */ -public final class ValidationMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidationMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationMessage) ValidationMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidationMessage.newBuilder() to construct. private ValidationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidationMessage() { message_ = ""; level_ = 0; @@ -27,51 +45,54 @@ private ValidationMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationMessage.class, com.google.cloud.datastream.v1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1.ValidationMessage.class, + com.google.cloud.datastream.v1.ValidationMessage.Builder.class); } /** + * + * *
    * Validation message level.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1.ValidationMessage.Level} */ - public enum Level - implements com.google.protobuf.ProtocolMessageEnum { + public enum Level implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified level.
      * 
@@ -80,6 +101,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -88,6 +111,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -99,6 +124,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -107,6 +134,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -115,6 +144,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -123,7 +154,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,49 +178,49 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: return LEVEL_UNSPECIFIED; - case 1: return WARNING; - case 2: return ERROR; - default: return null; + case 0: + return LEVEL_UNSPECIFIED; + case 1: + return WARNING; + case 2: + return ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1.ValidationMessage.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -208,14 +238,18 @@ private Level(int value) { } public static final int MESSAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ @java.lang.Override @@ -224,29 +258,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -257,56 +291,69 @@ public java.lang.String getMessage() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_ = 0; /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The level. */ - @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); - return result == null ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { + com.google.cloud.datastream.v1.ValidationMessage.Level result = + com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); + return result == null + ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED + : result; } public static final int METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -314,20 +361,21 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -339,6 +387,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -346,17 +396,19 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( + public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -364,11 +416,11 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -376,14 +428,18 @@ public java.lang.String getMetadataOrThrow( } public static final int CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -392,29 +448,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -423,6 +479,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,20 +491,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (level_ != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + if (level_ + != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, level_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -463,19 +516,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (level_ != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, level_); + if (level_ + != com.google.cloud.datastream.v1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metadata__); + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -488,20 +541,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.ValidationMessage)) { return super.equals(obj); } - com.google.cloud.datastream.v1.ValidationMessage other = (com.google.cloud.datastream.v1.ValidationMessage) obj; + com.google.cloud.datastream.v1.ValidationMessage other = + (com.google.cloud.datastream.v1.ValidationMessage) obj; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (level_ != other.level_) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getCode().equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -528,152 +579,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1.ValidationMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.ValidationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.ValidationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represent user-facing validation result message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ValidationMessage) com.google.cloud.datastream.v1.ValidationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationMessage.class, com.google.cloud.datastream.v1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1.ValidationMessage.class, + com.google.cloud.datastream.v1.ValidationMessage.Builder.class); } // Construct using com.google.cloud.datastream.v1.ValidationMessage.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -686,9 +741,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; } @java.lang.Override @@ -707,8 +762,11 @@ public com.google.cloud.datastream.v1.ValidationMessage build() { @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage buildPartial() { - com.google.cloud.datastream.v1.ValidationMessage result = new com.google.cloud.datastream.v1.ValidationMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1.ValidationMessage result = + new com.google.cloud.datastream.v1.ValidationMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -734,38 +792,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ValidationMessage resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ValidationMessage) { - return mergeFrom((com.google.cloud.datastream.v1.ValidationMessage)other); + return mergeFrom((com.google.cloud.datastream.v1.ValidationMessage) other); } else { super.mergeFrom(other); return this; @@ -773,7 +832,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationMessage other) { - if (other == com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()) + return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; @@ -782,8 +842,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationMessage other) if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); bitField0_ |= 0x00000004; if (!other.getCode().isEmpty()) { code_ = other.code_; @@ -816,36 +875,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - level_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + level_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -855,22 +921,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object message_ = ""; /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -879,20 +948,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -900,28 +970,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -931,17 +1008,21 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; @@ -951,22 +1032,29 @@ public Builder setMessageBytes( private int level_ = 0; /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -977,24 +1065,33 @@ public Builder setLevelValue(int value) { return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The level. */ @java.lang.Override public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); - return result == null ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED : result; + com.google.cloud.datastream.v1.ValidationMessage.Level result = + com.google.cloud.datastream.v1.ValidationMessage.Level.forNumber(level_); + return result == null + ? com.google.cloud.datastream.v1.ValidationMessage.Level.UNRECOGNIZED + : result; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @param value The level to set. * @return This builder for chaining. */ @@ -1008,11 +1105,14 @@ public Builder setLevel(com.google.cloud.datastream.v1.ValidationMessage.Level v return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return This builder for chaining. */ public Builder clearLevel() { @@ -1022,21 +1122,20 @@ public Builder clearLevel() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField internalGetMutableMetadata() { if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1045,10 +1144,13 @@ public Builder clearLevel() { onChanged(); return metadata_; } + public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1056,20 +1158,21 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1081,6 +1184,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1088,17 +1193,19 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( + public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1106,91 +1213,95 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { bitField0_ |= 0x00000004; return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMetadata().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object code_ = ""; /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1199,20 +1310,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -1220,28 +1332,35 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -1251,26 +1370,30 @@ public Builder clearCode() { return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,12 +1403,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ValidationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ValidationMessage) private static final com.google.cloud.datastream.v1.ValidationMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ValidationMessage(); } @@ -1294,27 +1417,27 @@ public static com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1329,6 +1452,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java index f09e4b3bf13d..5d58734596db 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java @@ -1,52 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ValidationMessageOrBuilder extends +public interface ValidationMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ValidationMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return The level. */ com.google.cloud.datastream.v1.ValidationMessage.Level getLevel(); /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -55,30 +84,31 @@ public interface ValidationMessageOrBuilder extends */ int getMetadataCount(); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMetadata(); + java.util.Map getMetadata(); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.util.Map - getMetadataMap(); + java.util.Map getMetadataMap(); /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -86,37 +116,43 @@ boolean containsMetadata( * map<string, string> metadata = 3; */ /* nullable */ -java.lang.String getMetadataOrDefault( + java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.lang.String getMetadataOrThrow( - java.lang.String key); + java.lang.String getMetadataOrThrow(java.lang.String key); /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java similarity index 73% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java index 7ab98b63636d..83411d0ed319 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface ValidationOrBuilder extends +public interface ValidationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Validation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return The state. */ com.google.cloud.datastream.v1.Validation.State getState(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - java.util.List - getMessageList(); + java.util.List getMessageList(); /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -64,6 +94,8 @@ public interface ValidationOrBuilder extends */ com.google.cloud.datastream.v1.ValidationMessage getMessage(int index); /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -72,41 +104,49 @@ public interface ValidationOrBuilder extends */ int getMessageCount(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - java.util.List + java.util.List getMessageOrBuilderList(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; */ - com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( - int index); + com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder(int index); /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java similarity index 72% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java index fe24c5f7570c..295c949ba7ec 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; /** + * + * *
  * Contains the current validation results.
  * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationResult} */ -public final class ValidationResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidationResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationResult) ValidationResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidationResult.newBuilder() to construct. private ValidationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidationResult() { validations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationResult.class, com.google.cloud.datastream.v1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1.ValidationResult.class, + com.google.cloud.datastream.v1.ValidationResult.Builder.class); } public static final int VALIDATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List validations_; /** + * + * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -64,6 +86,8 @@ public java.util.List getValidationsL
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -72,11 +96,13 @@ public java.util.List getValidationsL
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getValidationsOrBuilderList() {
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -89,6 +115,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -101,6 +129,8 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
     return validations_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -109,12 +139,12 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
-      int index) {
+  public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index) {
     return validations_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -126,8 +156,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -141,8 +170,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < validations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, validations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -152,15 +180,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1.ValidationResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1.ValidationResult other = (com.google.cloud.datastream.v1.ValidationResult) obj;
+    com.google.cloud.datastream.v1.ValidationResult other =
+        (com.google.cloud.datastream.v1.ValidationResult) obj;
 
-    if (!getValidationsList()
-        .equals(other.getValidationsList())) return false;
+    if (!getValidationsList().equals(other.getValidationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -181,130 +209,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1.ValidationResult parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1.ValidationResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1.ValidationResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Contains the current validation results.
    * 
* * Protobuf type {@code google.cloud.datastream.v1.ValidationResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.ValidationResult) com.google.cloud.datastream.v1.ValidationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1.ValidationResult.class, com.google.cloud.datastream.v1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1.ValidationResult.class, + com.google.cloud.datastream.v1.ValidationResult.Builder.class); } // Construct using com.google.cloud.datastream.v1.ValidationResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +354,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto + .internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; } @java.lang.Override @@ -341,14 +375,18 @@ public com.google.cloud.datastream.v1.ValidationResult build() { @java.lang.Override public com.google.cloud.datastream.v1.ValidationResult buildPartial() { - com.google.cloud.datastream.v1.ValidationResult result = new com.google.cloud.datastream.v1.ValidationResult(this); + com.google.cloud.datastream.v1.ValidationResult result = + new com.google.cloud.datastream.v1.ValidationResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1.ValidationResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1.ValidationResult result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -368,38 +406,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.ValidationResult resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1.ValidationResult) { - return mergeFrom((com.google.cloud.datastream.v1.ValidationResult)other); + return mergeFrom((com.google.cloud.datastream.v1.ValidationResult) other); } else { super.mergeFrom(other); return this; @@ -407,7 +446,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationResult other) { - if (other == com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) + return this; if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { @@ -426,9 +466,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationResult other) validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000001); - validationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidationsFieldBuilder() : null; + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValidationsFieldBuilder() + : null; } else { validationsBuilder_.addAllMessages(other.validations_); } @@ -460,25 +501,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.Validation m = - input.readMessage( - com.google.cloud.datastream.v1.Validation.parser(), - extensionRegistry); - if (validationsBuilder_ == null) { - ensureValidationsIsMutable(); - validations_.add(m); - } else { - validationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1.Validation m = + input.readMessage( + com.google.cloud.datastream.v1.Validation.parser(), extensionRegistry); + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(m); + } else { + validationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -488,21 +530,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List validations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - validations_ = new java.util.ArrayList(validations_); + validations_ = + new java.util.ArrayList(validations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder> validationsBuilder_; + com.google.cloud.datastream.v1.Validation, + com.google.cloud.datastream.v1.Validation.Builder, + com.google.cloud.datastream.v1.ValidationOrBuilder> + validationsBuilder_; /** + * + * *
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -518,6 +568,8 @@ public java.util.List getValidationsL
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -533,6 +585,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -548,6 +602,8 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -555,8 +611,7 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public Builder setValidations(
-        int index, com.google.cloud.datastream.v1.Validation value) {
+    public Builder setValidations(int index, com.google.cloud.datastream.v1.Validation value) {
       if (validationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -570,6 +625,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -589,6 +646,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -610,6 +669,8 @@ public Builder addValidations(com.google.cloud.datastream.v1.Validation value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -617,8 +678,7 @@ public Builder addValidations(com.google.cloud.datastream.v1.Validation value) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public Builder addValidations(
-        int index, com.google.cloud.datastream.v1.Validation value) {
+    public Builder addValidations(int index, com.google.cloud.datastream.v1.Validation value) {
       if (validationsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -632,6 +692,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -651,6 +713,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -670,6 +734,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -681,8 +747,7 @@ public Builder addAllValidations(
         java.lang.Iterable values) {
       if (validationsBuilder_ == null) {
         ensureValidationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, validations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validations_);
         onChanged();
       } else {
         validationsBuilder_.addAllMessages(values);
@@ -690,6 +755,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -708,6 +775,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -726,6 +795,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -733,11 +804,12 @@ public Builder removeValidations(int index) {
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(
-        int index) {
+    public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(int index) {
       return getValidationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -745,14 +817,16 @@ public com.google.cloud.datastream.v1.Validation.Builder getValidationsBuilder(
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
-        int index) {
+    public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index) {
       if (validationsBuilder_ == null) {
-        return validations_.get(index);  } else {
+        return validations_.get(index);
+      } else {
         return validationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -760,8 +834,8 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public java.util.List 
-         getValidationsOrBuilderList() {
+    public java.util.List
+        getValidationsOrBuilderList() {
       if (validationsBuilder_ != null) {
         return validationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -769,6 +843,8 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -777,10 +853,12 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
     public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder() {
-      return getValidationsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1.Validation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -788,12 +866,13 @@ public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder()
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(
-        int index) {
-      return getValidationsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1.Validation.getDefaultInstance());
+    public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(int index) {
+      return getValidationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1.Validation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -801,27 +880,30 @@ public com.google.cloud.datastream.v1.Validation.Builder addValidationsBuilder(
      *
      * repeated .google.cloud.datastream.v1.Validation validations = 1;
      */
-    public java.util.List 
-         getValidationsBuilderList() {
+    public java.util.List
+        getValidationsBuilderList() {
       return getValidationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder> 
+            com.google.cloud.datastream.v1.Validation,
+            com.google.cloud.datastream.v1.Validation.Builder,
+            com.google.cloud.datastream.v1.ValidationOrBuilder>
         getValidationsFieldBuilder() {
       if (validationsBuilder_ == null) {
-        validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1.Validation, com.google.cloud.datastream.v1.Validation.Builder, com.google.cloud.datastream.v1.ValidationOrBuilder>(
-                validations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        validationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1.Validation,
+                com.google.cloud.datastream.v1.Validation.Builder,
+                com.google.cloud.datastream.v1.ValidationOrBuilder>(
+                validations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         validations_ = null;
       }
       return validationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -831,12 +913,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.ValidationResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.ValidationResult)
   private static final com.google.cloud.datastream.v1.ValidationResult DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ValidationResult();
   }
@@ -845,27 +927,27 @@ public static com.google.cloud.datastream.v1.ValidationResult getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ValidationResult parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ValidationResult parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -880,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
similarity index 66%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
index bc914cee7f4b..62248221b0f9 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
-public interface ValidationResultOrBuilder extends
+public interface ValidationResultOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.ValidationResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -15,9 +33,10 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  java.util.List 
-      getValidationsList();
+  java.util.List getValidationsList();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -27,6 +46,8 @@ public interface ValidationResultOrBuilder extends
    */
   com.google.cloud.datastream.v1.Validation getValidations(int index);
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -36,6 +57,8 @@ public interface ValidationResultOrBuilder extends
    */
   int getValidationsCount();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -43,9 +66,11 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  java.util.List 
+  java.util.List
       getValidationsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -53,6 +78,5 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1.Validation validations = 1;
    */
-  com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
similarity index 66%
rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
index db64a6665d85..8ebe725893b7 100644
--- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
+++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1;
 
 /**
+ *
+ *
  * 
  * The VPC Peering configuration is used to create VPC peering between
  * Datastream and the consumer's VPC.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig}
  */
-public final class VpcPeeringConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.VpcPeeringConfig)
     VpcPeeringConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VpcPeeringConfig.newBuilder() to construct.
   private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VpcPeeringConfig() {
     vpc_ = "";
     subnet_ = "";
@@ -27,39 +45,46 @@ private VpcPeeringConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VpcPeeringConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
+    return com.google.cloud.datastream.v1.DatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1.VpcPeeringConfig.class, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
+            com.google.cloud.datastream.v1.VpcPeeringConfig.class,
+            com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
   }
 
   public static final int VPC_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object vpc_ = "";
   /**
+   *
+   *
    * 
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The vpc. */ @java.lang.Override @@ -68,30 +93,32 @@ public java.lang.String getVpc() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; } } /** + * + * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpc. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -100,14 +127,18 @@ public java.lang.String getVpc() { } public static final int SUBNET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object subnet_ = ""; /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ @java.lang.Override @@ -116,29 +147,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -147,6 +178,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -158,8 +190,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpc_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpc_); } @@ -189,17 +220,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1.VpcPeeringConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1.VpcPeeringConfig other = (com.google.cloud.datastream.v1.VpcPeeringConfig) obj; + com.google.cloud.datastream.v1.VpcPeeringConfig other = + (com.google.cloud.datastream.v1.VpcPeeringConfig) obj; - if (!getVpc() - .equals(other.getVpc())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getVpc().equals(other.getVpc())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -220,97 +250,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1.VpcPeeringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1.VpcPeeringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The VPC Peering configuration is used to create VPC peering between
    * Datastream and the consumer's VPC.
@@ -318,33 +355,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1.VpcPeeringConfig)
       com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1.VpcPeeringConfig.class, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
+              com.google.cloud.datastream.v1.VpcPeeringConfig.class,
+              com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -355,9 +391,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1.DatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
@@ -376,8 +412,11 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1.VpcPeeringConfig buildPartial() {
-      com.google.cloud.datastream.v1.VpcPeeringConfig result = new com.google.cloud.datastream.v1.VpcPeeringConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1.VpcPeeringConfig result =
+          new com.google.cloud.datastream.v1.VpcPeeringConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -396,38 +435,39 @@ private void buildPartial0(com.google.cloud.datastream.v1.VpcPeeringConfig resul
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1.VpcPeeringConfig) {
-        return mergeFrom((com.google.cloud.datastream.v1.VpcPeeringConfig)other);
+        return mergeFrom((com.google.cloud.datastream.v1.VpcPeeringConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -435,7 +475,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1.VpcPeeringConfig other) {
-      if (other == com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance())
+        return this;
       if (!other.getVpc().isEmpty()) {
         vpc_ = other.vpc_;
         bitField0_ |= 0x00000001;
@@ -472,22 +513,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              vpc_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              subnet_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                vpc_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                subnet_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -497,23 +541,28 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object vpc_ = "";
     /**
+     *
+     *
      * 
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The vpc. */ public java.lang.String getVpc() { java.lang.Object ref = vpc_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpc_ = s; return s; @@ -522,21 +571,24 @@ public java.lang.String getVpc() { } } /** + * + * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpc. */ - public com.google.protobuf.ByteString - getVpcBytes() { + public com.google.protobuf.ByteString getVpcBytes() { java.lang.Object ref = vpc_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpc_ = b; return b; } else { @@ -544,30 +596,41 @@ public java.lang.String getVpc() { } } /** + * + * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The vpc to set. * @return This builder for chaining. */ - public Builder setVpc( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpc(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpc_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearVpc() { @@ -577,18 +640,24 @@ public Builder clearVpc() { return this; } /** + * + * *
      * Required. Fully qualified name of the VPC that Datastream will peer to.
      * Format: `projects/{project}/global/{networks}/{name}`
      * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpc_ = value; bitField0_ |= 0x00000001; @@ -598,18 +667,20 @@ public Builder setVpcBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -618,20 +689,21 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -639,28 +711,35 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSubnet() { @@ -670,26 +749,30 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -699,12 +782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1.VpcPeeringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1.VpcPeeringConfig) private static final com.google.cloud.datastream.v1.VpcPeeringConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.VpcPeeringConfig(); } @@ -713,27 +796,27 @@ public static com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -748,6 +831,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java index d4f2223f76e9..ceb3ef381f1a 100644 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java @@ -1,51 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1/datastream_resources.proto package com.google.cloud.datastream.v1; -public interface VpcPeeringConfigOrBuilder extends +public interface VpcPeeringConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.VpcPeeringConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The vpc. */ java.lang.String getVpc(); /** + * + * *
    * Required. Fully qualified name of the VPC that Datastream will peer to.
    * Format: `projects/{project}/global/{networks}/{name}`
    * 
* - * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string vpc = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for vpc. */ - com.google.protobuf.ByteString - getVpcBytes(); + com.google.protobuf.ByteString getVpcBytes(); /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); } diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto rename to java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto similarity index 100% rename from owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto rename to java-datastream/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java similarity index 63% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java index 421d5c3c1083..2bbeba4bdca7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * AVRO file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.AvroFileFormat} */ -public final class AvroFileFormat extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AvroFileFormat extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.AvroFileFormat) AvroFileFormatOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AvroFileFormat.newBuilder() to construct. private AvroFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AvroFileFormat() { - } + + private AvroFileFormat() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AvroFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.AvroFileFormat other = (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; + com.google.cloud.datastream.v1alpha1.AvroFileFormat other = + (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.AvroFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.AvroFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * AVRO file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.AvroFileFormat} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.AvroFileFormat) com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.AvroFileFormat.class, + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +257,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; } @java.lang.Override @@ -253,7 +278,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { - com.google.cloud.datastream.v1alpha1.AvroFileFormat result = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); + com.google.cloud.datastream.v1alpha1.AvroFileFormat result = + new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); onBuilt(); return result; } @@ -262,38 +288,39 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat) other); } else { super.mergeFrom(other); return this; @@ -301,7 +328,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.AvroFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +356,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +372,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) private static final com.google.cloud.datastream.v1alpha1.AvroFileFormat DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(); } @@ -369,27 +398,27 @@ public static com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AvroFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +433,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java new file mode 100644 index 000000000000..5950a8156734 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface AvroFileFormatOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java new file mode 100644 index 000000000000..5b95ebd7ea24 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java @@ -0,0 +1,832 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public final class CloudDatastreamResourcesProto { + private CloudDatastreamResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/datastream/v1alpha1/datas" + + "tream_resources.proto\022 google.cloud.data" + + "stream.v1alpha1\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\036goo" + + "gle/protobuf/duration.proto\032\037google/prot" + + "obuf/timestamp.proto\"\250\002\n\rOracleProfile\022\025" + + "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + + "sername\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A" + + "\002\022\035\n\020database_service\030\005 \001(\tB\003\340A\002\022h\n\025conn" + + "ection_attributes\030\006 \003(\0132I.google.cloud.d" + + "atastream.v1alpha1.OracleProfile.Connect" + + "ionAttributesEntry\032;\n\031ConnectionAttribut" + + "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\252\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" + + "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + + "password\030\004 \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001" + + "(\01320.google.cloud.datastream.v1alpha1.My" + + "sqlSslConfig\"9\n\nGcsProfile\022\030\n\013bucket_nam" + + "e\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoCon" + + "nectivitySettings\"\035\n\033StaticServiceIpConn" + + "ectivity\"\250\001\n\034ForwardSshTunnelConnectivit" + + "y\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001" + + "(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB" + + "\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025au" + + "thentication_method\">\n\020VpcPeeringConfig\022" + + "\025\n\010vpc_name\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003" + + "\340A\002\"\324\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022O\n\006labe" + + "ls\030\004 \003(\0132?.google.cloud.datastream.v1alp" + + "ha1.PrivateConnection.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.go" + + "ogle.cloud.datastream.v1alpha1.PrivateCo" + + "nnection.StateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.ErrorB\003\340A\003" + + "\022N\n\022vpc_peering_config\030d \001(\01322.google.cl" + + "oud.datastream.v1alpha1.VpcPeeringConfig" + + "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + + "\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201" + + "\001\352A~\n+datastream.googleapis.com/PrivateC" + + "onnection\022Oprojects/{project}/locations/" + + "{location}/privateConnections/{private_c" + + "onnection}\";\n\023PrivateConnectivity\022$\n\027pri" + + "vate_connection_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Rout" + + "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud." + + "datastream.v1alpha1.Route.LabelsEntry\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_" + + "address\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007" + + " \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapi" + + "s.com/Route\022^projects/{project}/location" + + "s/{location}/privateConnections/{private" + + "_connection}/routes/{route}\"\312\001\n\016MysqlSsl" + + "Config\022\027\n\nclient_key\030\013 \001(\tB\003\340A\004\022\033\n\016clien" + + "t_key_set\030\014 \001(\010B\003\340A\003\022\037\n\022client_certifica" + + "te\030\r \001(\tB\003\340A\004\022#\n\026client_certificate_set\030" + + "\016 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022" + + "\037\n\022ca_certificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021Con" + + "nectionProfile\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?." + + "google.cloud.datastream.v1alpha1.Connect" + + "ionProfile.LabelsEntry\022\031\n\014display_name\030\005" + + " \001(\tB\003\340A\002\022I\n\016oracle_profile\030d \001(\0132/.goog" + + "le.cloud.datastream.v1alpha1.OracleProfi" + + "leH\000\022C\n\013gcs_profile\030e \001(\0132,.google.cloud" + + ".datastream.v1alpha1.GcsProfileH\000\022G\n\rmys" + + "ql_profile\030f \001(\0132..google.cloud.datastre" + + "am.v1alpha1.MysqlProfileH\000\022T\n\017no_connect" + + "ivity\030\310\001 \001(\01328.google.cloud.datastream.v" + + "1alpha1.NoConnectivitySettingsH\001\022h\n\036stat" + + "ic_service_ip_connectivity\030\311\001 \001(\0132=.goog" + + "le.cloud.datastream.v1alpha1.StaticServi" + + "ceIpConnectivityH\001\022c\n\030forward_ssh_connec" + + "tivity\030\312\001 \001(\0132>.google.cloud.datastream." + + "v1alpha1.ForwardSshTunnelConnectivityH\001\022" + + "V\n\024private_connectivity\030\313\001 \001(\01325.google." + + "cloud.datastream.v1alpha1.PrivateConnect" + + "ivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream.googlea" + + "pis.com/ConnectionProfile\022Oprojects/{pro" + + "ject}/locations/{location}/connectionPro" + + "files/{connection_profile}B\t\n\007profileB\016\n" + + "\014connectivity\"\273\001\n\014OracleColumn\022\023\n\013column" + + "_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + + "\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005" + + "\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022" + + "\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030\t " + + "\001(\005\"i\n\013OracleTable\022\022\n\ntable_name\030\001 \001(\t\022F" + + "\n\016oracle_columns\030\002 \003(\0132..google.cloud.da" + + "tastream.v1alpha1.OracleColumn\"i\n\014Oracle" + + "Schema\022\023\n\013schema_name\030\001 \001(\t\022D\n\roracle_ta" + + "bles\030\002 \003(\0132-.google.cloud.datastream.v1a" + + "lpha1.OracleTable\"U\n\013OracleRdbms\022F\n\016orac" + + "le_schemas\030\001 \003(\0132..google.cloud.datastre" + + "am.v1alpha1.OracleSchema\"\231\001\n\022OracleSourc" + + "eConfig\022@\n\tallowlist\030\001 \001(\0132-.google.clou" + + "d.datastream.v1alpha1.OracleRdbms\022A\n\nrej" + + "ectlist\030\002 \001(\0132-.google.cloud.datastream." + + "v1alpha1.OracleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013" + + "column_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" + + "length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013prima" + + "ry_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordina" + + "l_position\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_" + + "name\030\001 \001(\t\022D\n\rmysql_columns\030\002 \003(\0132-.goog" + + "le.cloud.datastream.v1alpha1.MysqlColumn" + + "\"j\n\rMysqlDatabase\022\025\n\rdatabase_name\030\001 \001(\t" + + "\022B\n\014mysql_tables\030\002 \003(\0132,.google.cloud.da" + + "tastream.v1alpha1.MysqlTable\"V\n\nMysqlRdb" + + "ms\022H\n\017mysql_databases\030\001 \003(\0132/.google.clo" + + "ud.datastream.v1alpha1.MysqlDatabase\"\226\001\n" + + "\021MysqlSourceConfig\022?\n\tallowlist\030\001 \001(\0132,." + + "google.cloud.datastream.v1alpha1.MysqlRd" + + "bms\022@\n\nrejectlist\030\002 \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbms\"\375\001\n\014Source" + + "Config\022+\n\036source_connection_profile_name" + + "\030\001 \001(\tB\003\340A\002\022T\n\024oracle_source_config\030d \001(" + + "\01324.google.cloud.datastream.v1alpha1.Ora" + + "cleSourceConfigH\000\022R\n\023mysql_source_config" + + "\030e \001(\01323.google.cloud.datastream.v1alpha" + + "1.MysqlSourceConfigH\000B\026\n\024source_stream_c" + + "onfig\"\020\n\016AvroFileFormat\"\212\002\n\016JsonFileForm" + + "at\022N\n\022schema_file_format\030\001 \001(\01622.google." + + "cloud.datastream.v1alpha1.SchemaFileForm" + + "at\022U\n\013compression\030\002 \001(\0162@.google.cloud.d" + + "atastream.v1alpha1.JsonFileFormat.JsonCo" + + "mpression\"Q\n\017JsonCompression\022 \n\034JSON_COM" + + "PRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION" + + "\020\001\022\010\n\004GZIP\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n" + + "\004path\030\001 \001(\t\022L\n\017gcs_file_format\030\002 \001(\0162/.g" + + "oogle.cloud.datastream.v1alpha1.GcsFileF" + + "ormatB\002\030\001\022\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026f" + + "ile_rotation_interval\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022L\n\020avro_file_format\030d \001(\013" + + "20.google.cloud.datastream.v1alpha1.Avro" + + "FileFormatH\000\022L\n\020json_file_format\030e \001(\01320" + + ".google.cloud.datastream.v1alpha1.JsonFi" + + "leFormatH\000B\r\n\013file_format\"\274\001\n\021Destinatio" + + "nConfig\0220\n#destination_connection_profil" + + "e_name\030\001 \001(\tB\003\340A\002\022X\n\026gcs_destination_con" + + "fig\030d \001(\01326.google.cloud.datastream.v1al" + + "pha1.GcsDestinationConfigH\000B\033\n\031destinati" + + "on_stream_config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\006la" + + "bels\030\004 \003(\01324.google.cloud.datastream.v1a" + + "lpha1.Stream.LabelsEntry\022\031\n\014display_name" + + "\030\005 \001(\tB\003\340A\002\022J\n\rsource_config\030\006 \001(\0132..goo" + + "gle.cloud.datastream.v1alpha1.SourceConf" + + "igB\003\340A\002\022T\n\022destination_config\030\007 \001(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Destinati" + + "onConfigB\003\340A\002\022=\n\005state\030\010 \001(\0162..google.cl" + + "oud.datastream.v1alpha1.Stream.State\022T\n\014" + + "backfill_all\030e \001(\0132<.google.cloud.datast" + + "ream.v1alpha1.Stream.BackfillAllStrategy" + + "H\000\022V\n\rbackfill_none\030f \001(\0132=.google.cloud" + + ".datastream.v1alpha1.Stream.BackfillNone" + + "StrategyH\000\022<\n\006errors\030\t \003(\0132\'.google.clou" + + "d.datastream.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023Bac" + + "kfillAllStrategy\022P\n\027oracle_excluded_obje" + + "cts\030\001 \001(\0132-.google.cloud.datastream.v1al" + + "pha1.OracleRdbmsH\000\022N\n\026mysql_excluded_obj" + + "ects\030\002 \001(\0132,.google.cloud.datastream.v1a" + + "lpha1.MysqlRdbmsH\000B\022\n\020excluded_objects\032\026" + + "\n\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007R" + + "UNNING\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n" + + "\006FAILED\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STA" + + "RTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.g" + + "oogleapis.com/Stream\0228projects/{project}" + + "/locations/{location}/streams/{stream}B\023" + + "\n\021backfill_strategy\"\343\001\n\005Error\022\016\n\006reason\030" + + "\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001" + + "(\t\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf" + + ".Timestamp\022E\n\007details\030\005 \003(\01324.google.clo" + + "ud.datastream.v1alpha1.Error.DetailsEntr" + + "y\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"U\n\020ValidationResult\022A\n\013validat" + + "ions\030\001 \003(\0132,.google.cloud.datastream.v1a" + + "lpha1.Validation\"\206\002\n\nValidation\022\023\n\013descr" + + "iption\030\001 \001(\t\022C\n\006status\030\002 \001(\01623.google.cl" + + "oud.datastream.v1alpha1.Validation.Statu" + + "s\022D\n\007message\030\003 \003(\01323.google.cloud.datast" + + "ream.v1alpha1.ValidationMessage\022\014\n\004code\030" + + "\004 \001(\t\"J\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" + + "\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020" + + "\003\"\272\002\n\021ValidationMessage\022\017\n\007message\030\001 \001(\t" + + "\022H\n\005level\030\002 \001(\01629.google.cloud.datastrea" + + "m.v1alpha1.ValidationMessage.Level\022S\n\010me" + + "tadata\030\003 \003(\0132A.google.cloud.datastream.v" + + "1alpha1.ValidationMessage.MetadataEntry\022" + + "\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL" + + "_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>" + + "\n\rGcsFileFormat\022\037\n\033GCS_FILE_FORMAT_UNSPE" + + "CIFIED\020\000\022\010\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileForm" + + "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" + + "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" + + "B\371\001\n$com.google.cloud.datastream.v1alpha" + + "1B\035CloudDatastreamResourcesProtoP\001ZDclou" + + "d.google.com/go/datastream/apiv1alpha1/d" + + "atastreampb;datastreampb\252\002 Google.Cloud." + + "Datastream.V1Alpha1\312\002 Google\\Cloud\\Datas" + + "tream\\V1alpha1\352\002#Google::Cloud::Datastre" + + "am::V1alpha1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor, + new java.lang.String[] { + "Hostname", "Port", "Username", "Password", "SslConfig", + }); + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor, + new java.lang.String[] { + "BucketName", "RootPath", + }); + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor, + new java.lang.String[] { + "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", + }); + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor, + new java.lang.String[] { + "VpcName", "Subnet", + }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "State", + "Error", + "VpcPeeringConfig", + }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor, + new java.lang.String[] { + "PrivateConnectionName", + }); + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "DestinationAddress", + "DestinationPort", + }); + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Route_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor, + new java.lang.String[] { + "ClientKey", + "ClientKeySet", + "ClientCertificate", + "ClientCertificateSet", + "CaCertificate", + "CaCertificateSet", + }); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "OracleProfile", + "GcsProfile", + "MysqlProfile", + "NoConnectivity", + "StaticServiceIpConnectivity", + "ForwardSshConnectivity", + "PrivateConnectivity", + "Profile", + "Connectivity", + }); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor, + new java.lang.String[] { + "ColumnName", + "DataType", + "Length", + "Precision", + "Scale", + "Encoding", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor, + new java.lang.String[] { + "TableName", "OracleColumns", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor, + new java.lang.String[] { + "SchemaName", "OracleTables", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor, + new java.lang.String[] { + "OracleSchemas", + }); + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor, + new java.lang.String[] { + "Allowlist", "Rejectlist", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor, + new java.lang.String[] { + "ColumnName", + "DataType", + "Length", + "Collation", + "PrimaryKey", + "Nullable", + "OrdinalPosition", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor, + new java.lang.String[] { + "TableName", "MysqlColumns", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor, + new java.lang.String[] { + "DatabaseName", "MysqlTables", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor, + new java.lang.String[] { + "MysqlDatabases", + }); + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor, + new java.lang.String[] { + "Allowlist", "Rejectlist", + }); + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor, + new java.lang.String[] { + "SourceConnectionProfileName", + "OracleSourceConfig", + "MysqlSourceConfig", + "SourceStreamConfig", + }); + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor, + new java.lang.String[] { + "SchemaFileFormat", "Compression", + }); + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor, + new java.lang.String[] { + "Path", + "GcsFileFormat", + "FileRotationMb", + "FileRotationInterval", + "AvroFileFormat", + "JsonFileFormat", + "FileFormat", + }); + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor, + new java.lang.String[] { + "DestinationConnectionProfileName", "GcsDestinationConfig", "DestinationStreamConfig", + }); + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "DisplayName", + "SourceConfig", + "DestinationConfig", + "State", + "BackfillAll", + "BackfillNone", + "Errors", + "BackfillStrategy", + }); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor, + new java.lang.String[] { + "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", + }); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(2); + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor, + new java.lang.String[] { + "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", + }); + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_Error_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor, + new java.lang.String[] { + "Validations", + }); + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor, + new java.lang.String[] { + "Description", "Status", "Message", "Code", + }); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor, + new java.lang.String[] { + "Message", "Level", "Metadata", "Code", + }); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor = + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java new file mode 100644 index 000000000000..9956fe0f4e70 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java @@ -0,0 +1,699 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public final class CloudDatastreamServiceProto { + private CloudDatastreamServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/datastream/v1alpha1/datas" + + "tream.proto\022 google.cloud.datastream.v1a" + + "lpha1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032;google/cloud/datastream/v1alpha1/datas" + + "tream_resources.proto\032#google/longrunnin" + + "g/operations.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\"\275\003\n DiscoverConnectionProfileReque" + + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" + + "oogleapis.com/ConnectionProfile\022R\n\022conne" + + "ction_profile\030\310\001 \001(\01323.google.cloud.data" + + "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" + + "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" + + "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" + + "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" + + "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" + + "rdbms\030e \001(\0132,.google.cloud.datastream.v1" + + "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" + + "\n\013data_object\"\276\001\n!DiscoverConnectionProf" + + "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" + + "le.cloud.datastream.v1alpha1.OracleRdbms" + + "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" + + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" + + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" + + "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" + + "\"\n datastream.googleapis.com/Stream\"N\n\023F" + + "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" + + "ListConnectionProfilesRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" + + "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + + "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" + + "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Connectio" + + "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." + + "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" + + "ateConnectionProfileRequest\022C\n\006parent\030\001 " + + "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" + + "onnectionProfile\022\"\n\025connection_profile_i" + + "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + + "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" + + "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" + + "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" + + "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." + + "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + + "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " + + "\003(\0132(.google.cloud.datastream.v1alpha1.S" + + "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" + + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + + "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" + + "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" + + "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" + + "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" + + "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" + + " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" + + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" + + "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" + + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" + + "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" + + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" + + ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" + + "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" + + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" + + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" + + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" + + "_result\030\010 \001(\01322.google.cloud.datastream." + + "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" + + "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" + + "vateConnection\022\"\n\025private_connection_id\030" + + "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" + + ".google.cloud.datastream.v1alpha1.Privat" + + "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" + + "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" + + "ionsResponse\022P\n\023private_connections\030\001 \003(" + + "\01323.google.cloud.datastream.v1alpha1.Pri" + + "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" + + "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" + + "atastream.googleapis.com/PrivateConnecti" + + "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" + + "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/PrivateConnection\"\272\001\n\022CreateRout" + + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" + + "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " + + "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" + + "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" + + "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" + + "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" + + "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" + + " \003(\0132\'.google.cloud.datastream.v1alpha1." + + "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" + + "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" + + "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" + + "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" + + "stream.googleapis.com/Route2\212\'\n\nDatastre" + + "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" + + "loud.datastream.v1alpha1.ListConnectionP" + + "rofilesRequest\032@.google.cloud.datastream" + + ".v1alpha1.ListConnectionProfilesResponse" + + "\"M\202\323\344\223\002>\022\022*\022" + + "\022* builder) { super(builder); } + private ConnectionProfile() { name_ = ""; displayName_ = ""; @@ -22,51 +36,54 @@ private ConnectionProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConnectionProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); } private int profileCase_ = 0; private java.lang.Object profile_; + public enum ProfileCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_PROFILE(100), GCS_PROFILE(101), MYSQL_PROFILE(102), PROFILE_NOT_SET(0); private final int value; + private ProfileCase(int value) { this.value = value; } @@ -82,28 +99,34 @@ public static ProfileCase valueOf(int value) { public static ProfileCase forNumber(int value) { switch (value) { - case 100: return ORACLE_PROFILE; - case 101: return GCS_PROFILE; - case 102: return MYSQL_PROFILE; - case 0: return PROFILE_NOT_SET; - default: return null; + case 100: + return ORACLE_PROFILE; + case 101: + return GCS_PROFILE; + case 102: + return MYSQL_PROFILE; + case 0: + return PROFILE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ProfileCase - getProfileCase() { - return ProfileCase.forNumber( - profileCase_); + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); } private int connectivityCase_ = 0; private java.lang.Object connectivity_; + public enum ConnectivityCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NO_CONNECTIVITY(200), STATIC_SERVICE_IP_CONNECTIVITY(201), @@ -111,6 +134,7 @@ public enum ConnectivityCase PRIVATE_CONNECTIVITY(203), CONNECTIVITY_NOT_SET(0); private final int value; + private ConnectivityCase(int value) { this.value = value; } @@ -126,34 +150,43 @@ public static ConnectivityCase valueOf(int value) { public static ConnectivityCase forNumber(int value) { switch (value) { - case 200: return NO_CONNECTIVITY; - case 201: return STATIC_SERVICE_IP_CONNECTIVITY; - case 202: return FORWARD_SSH_CONNECTIVITY; - case 203: return PRIVATE_CONNECTIVITY; - case 0: return CONNECTIVITY_NOT_SET; - default: return null; + case 200: + return NO_CONNECTIVITY; + case 201: + return STATIC_SERVICE_IP_CONNECTIVITY; + case 202: + return FORWARD_SSH_CONNECTIVITY; + case 203: + return PRIVATE_CONNECTIVITY; + case 0: + return CONNECTIVITY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ConnectivityCase - getConnectivityCase() { - return ConnectivityCase.forNumber( - connectivityCase_); + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -162,29 +195,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -195,11 +228,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -207,11 +244,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -219,11 +260,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -233,11 +277,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -245,11 +293,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -257,11 +309,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -269,32 +324,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -302,20 +359,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -327,6 +385,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -334,17 +394,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -352,11 +414,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -364,14 +426,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -380,29 +446,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -412,11 +478,14 @@ public java.lang.String getDisplayName() { public static final int ORACLE_PROFILE_FIELD_NUMBER = 100; /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -424,21 +493,26 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -448,18 +522,21 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } public static final int GCS_PROFILE_FIELD_NUMBER = 101; /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -467,21 +544,26 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -491,18 +573,21 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } public static final int MYSQL_PROFILE_FIELD_NUMBER = 102; /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -510,21 +595,26 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -534,18 +624,21 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } public static final int NO_CONNECTIVITY_FIELD_NUMBER = 200; /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return Whether the noConnectivity field is set. */ @java.lang.Override @@ -553,21 +646,26 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return The noConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } /** + * + * *
    * No connectivity option chosen.
    * 
@@ -575,20 +673,26 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder + getNoConnectivityOrBuilder() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 201; /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -596,42 +700,58 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + getStaticServiceIpConnectivity() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 202; /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -639,42 +759,56 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + getForwardSshConnectivity() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 203; /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -682,21 +816,26 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * * @return The privateConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnectivity() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } /** + * + * *
    * Private connectivity.
    * 
@@ -704,14 +843,16 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -723,8 +864,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -734,12 +874,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -753,16 +889,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - output.writeMessage(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + output.writeMessage( + 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - output.writeMessage(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + output.writeMessage( + 201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - output.writeMessage(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + output.writeMessage( + 202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - output.writeMessage(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + output.writeMessage( + 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } getUnknownFields().writeTo(output); } @@ -777,53 +917,60 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); } if (profileCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); } if (profileCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 201, + (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 202, + (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -833,42 +980,35 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ConnectionProfile other = (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; + com.google.cloud.datastream.v1alpha1.ConnectionProfile other = + (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getProfileCase().equals(other.getProfileCase())) return false; switch (profileCase_) { case 100: - if (!getOracleProfile() - .equals(other.getOracleProfile())) return false; + if (!getOracleProfile().equals(other.getOracleProfile())) return false; break; case 101: - if (!getGcsProfile() - .equals(other.getGcsProfile())) return false; + if (!getGcsProfile().equals(other.getGcsProfile())) return false; break; case 102: - if (!getMysqlProfile() - .equals(other.getMysqlProfile())) return false; + if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; break; case 0: default: @@ -876,20 +1016,17 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 200: - if (!getNoConnectivity() - .equals(other.getNoConnectivity())) return false; + if (!getNoConnectivity().equals(other.getNoConnectivity())) return false; break; case 201: - if (!getStaticServiceIpConnectivity() - .equals(other.getStaticServiceIpConnectivity())) return false; + if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) + return false; break; case 202: - if (!getForwardSshConnectivity() - .equals(other.getForwardSshConnectivity())) return false; + if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; break; case 203: - if (!getPrivateConnectivity() - .equals(other.getPrivateConnectivity())) return false; + if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; break; case 0: default: @@ -963,147 +1100,148 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ConnectionProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ConnectionProfile prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ConnectionProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ConnectionProfile} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ConnectionProfile} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ConnectionProfile) com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1150,9 +1288,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; } @java.lang.Override @@ -1171,8 +1309,11 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.ConnectionProfile result = new com.google.cloud.datastream.v1alpha1.ConnectionProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ConnectionProfile result = + new com.google.cloud.datastream.v1alpha1.ConnectionProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -1184,14 +1325,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ConnectionProfil result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -1205,34 +1342,27 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ConnectionProfil private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ConnectionProfile result) { result.profileCase_ = profileCase_; result.profile_ = this.profile_; - if (profileCase_ == 100 && - oracleProfileBuilder_ != null) { + if (profileCase_ == 100 && oracleProfileBuilder_ != null) { result.profile_ = oracleProfileBuilder_.build(); } - if (profileCase_ == 101 && - gcsProfileBuilder_ != null) { + if (profileCase_ == 101 && gcsProfileBuilder_ != null) { result.profile_ = gcsProfileBuilder_.build(); } - if (profileCase_ == 102 && - mysqlProfileBuilder_ != null) { + if (profileCase_ == 102 && mysqlProfileBuilder_ != null) { result.profile_ = mysqlProfileBuilder_.build(); } result.connectivityCase_ = connectivityCase_; result.connectivity_ = this.connectivity_; - if (connectivityCase_ == 200 && - noConnectivityBuilder_ != null) { + if (connectivityCase_ == 200 && noConnectivityBuilder_ != null) { result.connectivity_ = noConnectivityBuilder_.build(); } - if (connectivityCase_ == 201 && - staticServiceIpConnectivityBuilder_ != null) { + if (connectivityCase_ == 201 && staticServiceIpConnectivityBuilder_ != null) { result.connectivity_ = staticServiceIpConnectivityBuilder_.build(); } - if (connectivityCase_ == 202 && - forwardSshConnectivityBuilder_ != null) { + if (connectivityCase_ == 202 && forwardSshConnectivityBuilder_ != null) { result.connectivity_ = forwardSshConnectivityBuilder_.build(); } - if (connectivityCase_ == 203 && - privateConnectivityBuilder_ != null) { + if (connectivityCase_ == 203 && privateConnectivityBuilder_ != null) { result.connectivity_ = privateConnectivityBuilder_.build(); } } @@ -1241,38 +1371,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ConnectionP public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ConnectionProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ConnectionProfile)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ConnectionProfile) other); } else { super.mergeFrom(other); return this; @@ -1280,7 +1411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -1292,8 +1424,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -1301,42 +1432,51 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile onChanged(); } switch (other.getProfileCase()) { - case ORACLE_PROFILE: { - mergeOracleProfile(other.getOracleProfile()); - break; - } - case GCS_PROFILE: { - mergeGcsProfile(other.getGcsProfile()); - break; - } - case MYSQL_PROFILE: { - mergeMysqlProfile(other.getMysqlProfile()); - break; - } - case PROFILE_NOT_SET: { - break; - } + case ORACLE_PROFILE: + { + mergeOracleProfile(other.getOracleProfile()); + break; + } + case GCS_PROFILE: + { + mergeGcsProfile(other.getGcsProfile()); + break; + } + case MYSQL_PROFILE: + { + mergeMysqlProfile(other.getMysqlProfile()); + break; + } + case PROFILE_NOT_SET: + { + break; + } } switch (other.getConnectivityCase()) { - case NO_CONNECTIVITY: { - mergeNoConnectivity(other.getNoConnectivity()); - break; - } - case STATIC_SERVICE_IP_CONNECTIVITY: { - mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity()); - break; - } - case FORWARD_SSH_CONNECTIVITY: { - mergeForwardSshConnectivity(other.getForwardSshConnectivity()); - break; - } - case PRIVATE_CONNECTIVITY: { - mergePrivateConnectivity(other.getPrivateConnectivity()); - break; - } - case CONNECTIVITY_NOT_SET: { - break; - } + case NO_CONNECTIVITY: + { + mergeNoConnectivity(other.getNoConnectivity()); + break; + } + case STATIC_SERVICE_IP_CONNECTIVITY: + { + mergeStaticServiceIpConnectivity(other.getStaticServiceIpConnectivity()); + break; + } + case FORWARD_SSH_CONNECTIVITY: + { + mergeForwardSshConnectivity(other.getForwardSshConnectivity()); + break; + } + case PRIVATE_CONNECTIVITY: + { + mergePrivateConnectivity(other.getPrivateConnectivity()); + break; + } + case CONNECTIVITY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1364,94 +1504,94 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 802: { - input.readMessage( - getOracleProfileFieldBuilder().getBuilder(), - extensionRegistry); - profileCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getGcsProfileFieldBuilder().getBuilder(), - extensionRegistry); - profileCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getMysqlProfileFieldBuilder().getBuilder(), - extensionRegistry); - profileCase_ = 102; - break; - } // case 818 - case 1602: { - input.readMessage( - getNoConnectivityFieldBuilder().getBuilder(), - extensionRegistry); - connectivityCase_ = 200; - break; - } // case 1602 - case 1610: { - input.readMessage( - getStaticServiceIpConnectivityFieldBuilder().getBuilder(), - extensionRegistry); - connectivityCase_ = 201; - break; - } // case 1610 - case 1618: { - input.readMessage( - getForwardSshConnectivityFieldBuilder().getBuilder(), - extensionRegistry); - connectivityCase_ = 202; - break; - } // case 1618 - case 1626: { - input.readMessage( - getPrivateConnectivityFieldBuilder().getBuilder(), - extensionRegistry); - connectivityCase_ = 203; - break; - } // case 1626 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 802: + { + input.readMessage(getOracleProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getGcsProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getMysqlProfileFieldBuilder().getBuilder(), extensionRegistry); + profileCase_ = 102; + break; + } // case 818 + case 1602: + { + input.readMessage(getNoConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 200; + break; + } // case 1602 + case 1610: + { + input.readMessage( + getStaticServiceIpConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 201; + break; + } // case 1610 + case 1618: + { + input.readMessage( + getForwardSshConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 202; + break; + } // case 1618 + case 1626: + { + input.readMessage( + getPrivateConnectivityFieldBuilder().getBuilder(), extensionRegistry); + connectivityCase_ = 203; + break; + } // case 1626 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1461,12 +1601,12 @@ public Builder mergeFrom( } // finally return this; } + private int profileCase_ = 0; private java.lang.Object profile_; - public ProfileCase - getProfileCase() { - return ProfileCase.forNumber( - profileCase_); + + public ProfileCase getProfileCase() { + return ProfileCase.forNumber(profileCase_); } public Builder clearProfile() { @@ -1478,10 +1618,9 @@ public Builder clearProfile() { private int connectivityCase_ = 0; private java.lang.Object connectivity_; - public ConnectivityCase - getConnectivityCase() { - return ConnectivityCase.forNumber( - connectivityCase_); + + public ConnectivityCase getConnectivityCase() { + return ConnectivityCase.forNumber(connectivityCase_); } public Builder clearConnectivity() { @@ -1495,18 +1634,20 @@ public Builder clearConnectivity() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1515,20 +1656,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1536,28 +1678,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1567,17 +1716,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1587,39 +1740,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1635,14 +1807,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1653,17 +1828,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1676,11 +1855,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1693,11 +1876,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1705,36 +1892,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1742,39 +1941,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1790,14 +2008,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1808,17 +2029,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1831,11 +2056,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1848,11 +2077,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1860,56 +2093,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1918,10 +2161,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -1929,20 +2175,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -1954,6 +2201,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1961,17 +2210,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1979,91 +2230,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -2072,20 +2327,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2093,28 +2349,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -2124,17 +2387,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -2143,13 +2410,19 @@ public Builder setDisplayNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> oracleProfileBuilder_; + com.google.cloud.datastream.v1alpha1.OracleProfile, + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, + com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> + oracleProfileBuilder_; /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -2157,11 +2430,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2179,6 +2455,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2199,6 +2477,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfi return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2217,6 +2497,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2225,10 +2507,14 @@ public Builder setOracleProfile( */ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfile value) { if (oracleProfileBuilder_ == null) { - if (profileCase_ == 100 && - profile_ != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 100 + && profile_ + != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder( + (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2244,6 +2530,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OraclePro return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2267,6 +2555,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2277,6 +2567,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile.Builder getOracleProfi return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2295,6 +2587,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2302,14 +2596,19 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleProfile, + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, + com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder> getOracleProfileFieldBuilder() { if (oracleProfileBuilder_ == null) { if (!(profileCase_ == 100)) { profile_ = com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } - oracleProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleProfile, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder>( + oracleProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleProfile, + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder, + com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_, getParentForChildren(), isClean()); @@ -2321,13 +2620,19 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> gcsProfileBuilder_; + com.google.cloud.datastream.v1alpha1.GcsProfile, + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, + com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> + gcsProfileBuilder_; /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -2335,11 +2640,14 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ @java.lang.Override @@ -2357,6 +2665,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2377,6 +2687,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile val return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2395,6 +2707,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2403,10 +2717,13 @@ public Builder setGcsProfile( */ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile value) { if (gcsProfileBuilder_ == null) { - if (profileCase_ == 101 && - profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 101 + && profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder( + (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2422,6 +2739,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile v return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2445,6 +2764,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2455,6 +2776,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile.Builder getGcsProfileBuil return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2473,6 +2796,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2480,14 +2805,19 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.GcsProfile, + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, + com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder> getGcsProfileFieldBuilder() { if (gcsProfileBuilder_ == null) { if (!(profileCase_ == 101)) { profile_ = com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } - gcsProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsProfile, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder>( + gcsProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.GcsProfile, + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder, + com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_, getParentForChildren(), isClean()); @@ -2499,13 +2829,19 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> mysqlProfileBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlProfile, + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, + com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> + mysqlProfileBuilder_; /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -2513,11 +2849,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2535,6 +2874,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2555,6 +2896,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2573,6 +2916,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2581,10 +2926,13 @@ public Builder setMysqlProfile( */ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile value) { if (mysqlProfileBuilder_ == null) { - if (profileCase_ == 102 && - profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { - profile_ = com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) - .mergeFrom(value).buildPartial(); + if (profileCase_ == 102 + && profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { + profile_ = + com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder( + (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) + .mergeFrom(value) + .buildPartial(); } else { profile_ = value; } @@ -2600,6 +2948,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfi return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2623,6 +2973,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2633,6 +2985,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder getMysqlProfile return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2651,6 +3005,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2658,14 +3014,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlProfile, + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, + com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder> getMysqlProfileFieldBuilder() { if (mysqlProfileBuilder_ == null) { if (!(profileCase_ == 102)) { profile_ = com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } - mysqlProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlProfile, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder>( + mysqlProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlProfile, + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder, + com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_, getParentForChildren(), isClean()); @@ -2677,13 +3038,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> noConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> + noConnectivityBuilder_; /** + * + * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return Whether the noConnectivity field is set. */ @java.lang.Override @@ -2691,11 +3058,14 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** + * + * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return The noConnectivity. */ @java.lang.Override @@ -2713,13 +3083,16 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti } } /** + * + * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder setNoConnectivity( + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2733,6 +3106,8 @@ public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnecti return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2751,18 +3126,26 @@ public Builder setNoConnectivity( return this; } /** + * + * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder mergeNoConnectivity( + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { - if (connectivityCase_ == 200 && - connectivity_ != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 200 + && connectivity_ + != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder( + (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -2778,6 +3161,8 @@ public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnec return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2801,16 +3186,21 @@ public Builder clearNoConnectivity() { return this; } /** + * + * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder getNoConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder + getNoConnectivityBuilder() { return getNoConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2818,7 +3208,8 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder getNo * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder + getNoConnectivityOrBuilder() { if ((connectivityCase_ == 200) && (noConnectivityBuilder_ != null)) { return noConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -2829,6 +3220,8 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getN } } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2836,14 +3229,20 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getN * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> getNoConnectivityFieldBuilder() { if (noConnectivityBuilder_ == null) { if (!(connectivityCase_ == 200)) { - connectivity_ = com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); - } - noConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder>( + connectivity_ = + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); + } + noConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder>( (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_, getParentForChildren(), isClean()); @@ -2855,13 +3254,21 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getN } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> staticServiceIpConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> + staticServiceIpConnectivityBuilder_; /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -2869,35 +3276,48 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + getStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { if (connectivityCase_ == 201) { return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + .getDefaultInstance(); } else { if (connectivityCase_ == 201) { return staticServiceIpConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + .getDefaultInstance(); } } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ - public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder setStaticServiceIpConnectivity( + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2911,11 +3331,15 @@ public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1alph return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ public Builder setStaticServiceIpConnectivity( com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder builderForValue) { @@ -2929,18 +3353,29 @@ public Builder setStaticServiceIpConnectivity( return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ - public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder mergeStaticServiceIpConnectivity( + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 201 && - connectivity_ != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 201 + && connectivity_ + != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder( + (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -2956,11 +3391,15 @@ public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1al return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ public Builder clearStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { @@ -2979,49 +3418,70 @@ public Builder clearStaticServiceIpConnectivity() { return this; } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder getStaticServiceIpConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder + getStaticServiceIpConnectivityBuilder() { return getStaticServiceIpConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder() { if ((connectivityCase_ == 201) && (staticServiceIpConnectivityBuilder_ != null)) { return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); } else { if (connectivityCase_ == 201) { return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + .getDefaultInstance(); } } /** + * + * *
      * Static Service IP connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder> getStaticServiceIpConnectivityFieldBuilder() { if (staticServiceIpConnectivityBuilder_ == null) { if (!(connectivityCase_ == 201)) { - connectivity_ = com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); - } - staticServiceIpConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder>( + connectivity_ = + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); + } + staticServiceIpConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3033,13 +3493,21 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> forwardSshConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> + forwardSshConnectivityBuilder_; /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -3047,35 +3515,48 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + getForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { if (connectivityCase_ == 202) { return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + .getDefaultInstance(); } else { if (connectivityCase_ == 202) { return forwardSshConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + .getDefaultInstance(); } } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ - public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder setForwardSshConnectivity( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3089,11 +3570,15 @@ public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.Fo return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ public Builder setForwardSshConnectivity( com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder builderForValue) { @@ -3107,18 +3592,29 @@ public Builder setForwardSshConnectivity( return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ - public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder mergeForwardSshConnectivity( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 202 && - connectivity_ != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 202 + && connectivity_ + != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + .getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder( + (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) + connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -3134,11 +3630,15 @@ public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1alpha1. return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ public Builder clearForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { @@ -3157,49 +3657,71 @@ public Builder clearForwardSshConnectivity() { return this; } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder getForwardSshConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder + getForwardSshConnectivityBuilder() { return getForwardSshConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder() { if ((connectivityCase_ == 202) && (forwardSshConnectivityBuilder_ != null)) { return forwardSshConnectivityBuilder_.getMessageOrBuilder(); } else { if (connectivityCase_ == 202) { return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + .getDefaultInstance(); } } /** + * + * *
      * Forward SSH tunnel connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder> getForwardSshConnectivityFieldBuilder() { if (forwardSshConnectivityBuilder_ == null) { if (!(connectivityCase_ == 202)) { - connectivity_ = com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); - } - forwardSshConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder>( + connectivity_ = + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + .getDefaultInstance(); + } + forwardSshConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3211,13 +3733,20 @@ public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilde } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> privateConnectivityBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> + privateConnectivityBuilder_; /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * + * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -3225,11 +3754,15 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * + * * @return The privateConnectivity. */ @java.lang.Override @@ -3247,13 +3780,17 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec } } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ - public Builder setPrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder setPrivateConnectivity( + com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3267,11 +3804,14 @@ public Builder setPrivateConnectivity(com.google.cloud.datastream.v1alpha1.Priva return this; } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ public Builder setPrivateConnectivity( com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder builderForValue) { @@ -3285,18 +3825,26 @@ public Builder setPrivateConnectivity( return this; } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ - public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder mergePrivateConnectivity( + com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { - if (connectivityCase_ == 203 && - connectivity_ != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { - connectivity_ = com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) - .mergeFrom(value).buildPartial(); + if (connectivityCase_ == 203 + && connectivity_ + != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder( + (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) + .mergeFrom(value) + .buildPartial(); } else { connectivity_ = value; } @@ -3312,11 +3860,14 @@ public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1alpha1.Pri return this; } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ public Builder clearPrivateConnectivity() { if (privateConnectivityBuilder_ == null) { @@ -3335,24 +3886,32 @@ public Builder clearPrivateConnectivity() { return this; } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder + getPrivateConnectivityBuilder() { return getPrivateConnectivityFieldBuilder().getBuilder(); } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder() { if ((connectivityCase_ == 203) && (privateConnectivityBuilder_ != null)) { return privateConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3363,21 +3922,30 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPriv } } /** + * + * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> getPrivateConnectivityFieldBuilder() { if (privateConnectivityBuilder_ == null) { if (!(connectivityCase_ == 203)) { - connectivity_ = com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); - } - privateConnectivityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder>( + connectivity_ = + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); + } + privateConnectivityBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder>( (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_, getParentForChildren(), isClean()); @@ -3387,9 +3955,9 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPriv onChanged(); return privateConnectivityBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3399,12 +3967,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ConnectionProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ConnectionProfile) private static final com.google.cloud.datastream.v1alpha1.ConnectionProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ConnectionProfile(); } @@ -3413,27 +3981,27 @@ public static com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectionProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3448,6 +4016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java similarity index 74% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java index 15a2eff0c3f0..5aef99ab0ab2 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ConnectionProfileOrBuilder extends +public interface ConnectionProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface ConnectionProfileOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,59 +167,73 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -183,24 +243,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -210,24 +278,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -237,24 +313,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return Whether the noConnectivity field is set. */ boolean hasNoConnectivity(); /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return The noConnectivity. */ com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity(); /** + * + * *
    * No connectivity option chosen.
    * 
@@ -264,87 +348,127 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return Whether the staticServiceIpConnectivity field is set. */ boolean hasStaticServiceIpConnectivity(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * * @return The staticServiceIpConnectivity. */ com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); /** + * + * *
    * Static Service IP connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; + * */ - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder + getStaticServiceIpConnectivityOrBuilder(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return Whether the forwardSshConnectivity field is set. */ boolean hasForwardSshConnectivity(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * * @return The forwardSshConnectivity. */ com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); /** + * + * *
    * Forward SSH tunnel connectivity.
    * 
* - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; + * */ - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder + getForwardSshConnectivityOrBuilder(); /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * * @return Whether the privateConnectivity field is set. */ boolean hasPrivateConnectivity(); /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; + * * @return The privateConnectivity. */ com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnectivity(); /** + * + * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder(); + com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder + getPrivateConnectivityOrBuilder(); public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ProfileCase getProfileCase(); - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ConnectivityCase getConnectivityCase(); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.ConnectivityCase + getConnectivityCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java index c63d97773de4..07cb55dfa2c0 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} - */ -public final class CreateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ +public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -23,38 +38,45 @@ private CreateConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -94,14 +118,18 @@ public java.lang.String getParent() { } public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object connectionProfileId_ = ""; /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ @java.lang.Override @@ -110,29 +138,29 @@ public java.lang.String getConnectionProfileId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; } } /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -143,11 +171,16 @@ public java.lang.String getConnectionProfileId() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -155,33 +188,50 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -197,6 +247,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -205,14 +256,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -228,16 +280,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -246,6 +297,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -301,24 +351,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = + (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getConnectionProfileId() - .equals(other.getConnectionProfileId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,125 +393,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +533,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + .getDefaultInstance(); } @java.lang.Override @@ -502,13 +556,17 @@ public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -517,9 +575,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateConnection result.connectionProfileId_ = connectionProfileId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.connectionProfile_ = connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = + connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -530,46 +589,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateConnection public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -614,34 +678,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - connectionProfileId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + connectionProfileId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,22 +719,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -675,20 +748,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -696,28 +772,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -727,17 +814,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,18 +840,20 @@ public Builder setParentBytes( private java.lang.Object connectionProfileId_ = ""; /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -767,20 +862,21 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString - getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -788,28 +884,35 @@ public java.lang.String getConnectionProfileId() { } } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } connectionProfileId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearConnectionProfileId() { @@ -819,17 +922,21 @@ public Builder clearConnectionProfileId() { return this; } /** + * + * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); connectionProfileId_ = value; bitField0_ |= 0x00000002; @@ -839,41 +946,61 @@ public Builder setConnectionProfileIdBytes( private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -887,11 +1014,15 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.Connect return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -905,17 +1036,23 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - connectionProfile_ != null && - connectionProfile_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && connectionProfile_ != null + && connectionProfile_ + != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -928,11 +1065,15 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.Conne return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000004); @@ -945,48 +1086,66 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + getConnectionProfileBuilder() { bitField0_ |= 0x00000004; onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The connection profile resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -994,6 +1153,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1009,13 +1170,13 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1024,6 +1185,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1039,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1055,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1070,18 +1234,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1097,6 +1265,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1106,6 +1275,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1121,21 +1292,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,41 +1318,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1191,9 +1366,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java index 3e8e678d96f7..44f0c3136620 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateConnectionProfileRequestOrBuilder extends +public interface CreateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** + * + * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString - getConnectionProfileIdBytes(); + com.google.protobuf.ByteString getConnectionProfileIdBytes(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The connection profile resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java index e1f5dbbf445b..dc182c8233d2 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} - */ -public final class CreatePrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ +public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) CreatePrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePrivateConnectionRequest.newBuilder() to construct. - private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreatePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePrivateConnectionRequest() { parent_ = ""; privateConnectionId_ = ""; @@ -23,38 +38,45 @@ private CreatePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -94,14 +118,18 @@ public java.lang.String getParent() { } public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionId_ = ""; /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ @java.lang.Override @@ -110,29 +138,29 @@ public java.lang.String getPrivateConnectionId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; } } /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -143,11 +171,16 @@ public java.lang.String getPrivateConnectionId() { public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ @java.lang.Override @@ -155,33 +188,50 @@ public boolean hasPrivateConnection() { return privateConnection_ != null; } /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection() { - return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() + : privateConnection_; } /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { - return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { + return privateConnection_ == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() + : privateConnection_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -197,6 +247,7 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -205,14 +256,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -228,16 +280,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -246,6 +297,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -287,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); } if (privateConnection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPrivateConnection()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -301,24 +351,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = + (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPrivateConnectionId() - .equals(other.getPrivateConnectionId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; if (hasPrivateConnection() != other.hasPrivateConnection()) return false; if (hasPrivateConnection()) { - if (!getPrivateConnection() - .equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -346,125 +393,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +533,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + .getDefaultInstance(); } @java.lang.Override @@ -502,13 +556,17 @@ public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -517,9 +575,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreatePrivateCon result.privateConnectionId_ = privateConnectionId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.privateConnection_ = privateConnectionBuilder_ == null - ? privateConnection_ - : privateConnectionBuilder_.build(); + result.privateConnection_ = + privateConnectionBuilder_ == null + ? privateConnection_ + : privateConnectionBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -530,46 +589,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreatePrivateCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -614,34 +678,38 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - privateConnectionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPrivateConnectionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + privateConnectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -651,22 +719,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -675,20 +748,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -696,28 +772,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -727,17 +814,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -747,18 +840,20 @@ public Builder setParentBytes( private java.lang.Object privateConnectionId_ = ""; /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ public java.lang.String getPrivateConnectionId() { java.lang.Object ref = privateConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; @@ -767,20 +862,21 @@ public java.lang.String getPrivateConnectionId() { } } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ - public com.google.protobuf.ByteString - getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -788,28 +884,35 @@ public java.lang.String getPrivateConnectionId() { } } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } privateConnectionId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPrivateConnectionId() { @@ -819,17 +922,21 @@ public Builder clearPrivateConnectionId() { return this; } /** + * + * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); privateConnectionId_ = value; bitField0_ |= 0x00000002; @@ -839,41 +946,61 @@ public Builder setPrivateConnectionIdBytes( private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> privateConnectionBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + privateConnectionBuilder_; /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ public boolean hasPrivateConnection() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection() { if (privateConnectionBuilder_ == null) { - return privateConnection_ == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() + : privateConnection_; } else { return privateConnectionBuilder_.getMessage(); } } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPrivateConnection(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder setPrivateConnection( + com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -887,11 +1014,15 @@ public Builder setPrivateConnection(com.google.cloud.datastream.v1alpha1.Private return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPrivateConnection( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -905,17 +1036,23 @@ public Builder setPrivateConnection( return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergePrivateConnection(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder mergePrivateConnection( + com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - privateConnection_ != null && - privateConnection_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && privateConnection_ != null + && privateConnection_ + != com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) { getPrivateConnectionBuilder().mergeFrom(value); } else { privateConnection_ = value; @@ -928,11 +1065,15 @@ public Builder mergePrivateConnection(com.google.cloud.datastream.v1alpha1.Priva return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPrivateConnection() { bitField0_ = (bitField0_ & ~0x00000004); @@ -945,48 +1086,66 @@ public Builder clearPrivateConnection() { return this; } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder + getPrivateConnectionBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPrivateConnectionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { if (privateConnectionBuilder_ != null) { return privateConnectionBuilder_.getMessageOrBuilder(); } else { - return privateConnection_ == null ? - com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() : privateConnection_; + return privateConnection_ == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance() + : privateConnection_; } } /** + * + * *
      * Required. The Private Connectivity resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> getPrivateConnectionFieldBuilder() { if (privateConnectionBuilder_ == null) { - privateConnectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( - getPrivateConnection(), - getParentForChildren(), - isClean()); + privateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( + getPrivateConnection(), getParentForChildren(), isClean()); privateConnection_ = null; } return privateConnectionBuilder_; @@ -994,6 +1153,8 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1009,13 +1170,13 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1024,6 +1185,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1039,15 +1202,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1055,6 +1217,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1070,18 +1234,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1097,6 +1265,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1106,6 +1275,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1121,21 +1292,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1145,41 +1318,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1191,9 +1366,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java index 672386df980d..50b7ee52d661 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreatePrivateConnectionRequestOrBuilder extends +public interface CreatePrivateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionId. */ java.lang.String getPrivateConnectionId(); /** + * + * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionId. */ - com.google.protobuf.ByteString - getPrivateConnectionIdBytes(); + com.google.protobuf.ByteString getPrivateConnectionIdBytes(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the privateConnection field is set. */ boolean hasPrivateConnection(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The privateConnection. */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection(); /** + * + * *
    * Required. The Private Connectivity resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreatePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreatePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java index b6bb223622db..76cf2bb209db 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * route creation request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateRouteRequest} */ -public final class CreateRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateRouteRequest) CreateRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateRouteRequest.newBuilder() to construct. private CreateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateRouteRequest() { parent_ = ""; routeId_ = ""; @@ -27,38 +45,45 @@ private CreateRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -67,29 +92,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -98,14 +125,18 @@ public java.lang.String getParent() { } public static final int ROUTE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object routeId_ = ""; /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ @java.lang.Override @@ -114,29 +145,29 @@ public java.lang.String getRouteId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; } } /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRouteIdBytes() { + public com.google.protobuf.ByteString getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routeId_ = b; return b; } else { @@ -147,11 +178,16 @@ public java.lang.String getRouteId() { public static final int ROUTE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Route route_; /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ @java.lang.Override @@ -159,33 +195,49 @@ public boolean hasRoute() { return route_ != null; } /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Route getRoute() { - return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; + return route_ == null + ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() + : route_; } /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { - return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; + return route_ == null + ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() + : route_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -201,6 +253,7 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -209,14 +262,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -232,16 +286,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -250,6 +303,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +315,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -291,8 +344,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); } if (route_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRoute()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -305,24 +357,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = + (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getRouteId() - .equals(other.getRouteId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getRouteId().equals(other.getRouteId())) return false; if (hasRoute() != other.hasRoute()) return false; if (hasRoute()) { - if (!getRoute() - .equals(other.getRoute())) return false; + if (!getRoute().equals(other.getRoute())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,129 +399,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateRouteRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.CreateRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * route creation request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateRouteRequest) com.google.cloud.datastream.v1alpha1.CreateRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, + com.google.cloud.datastream.v1alpha1.CreateRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.CreateRouteRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -489,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; } @java.lang.Override @@ -510,8 +566,11 @@ public com.google.cloud.datastream.v1alpha1.CreateRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateRouteRequest result = new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.CreateRouteRequest result = + new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -525,9 +584,7 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateRouteReque result.routeId_ = routeId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.route_ = routeBuilder_ == null - ? route_ - : routeBuilder_.build(); + result.route_ = routeBuilder_ == null ? route_ : routeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -538,38 +595,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateRouteReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -577,7 +635,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -622,34 +681,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - routeId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getRouteFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + routeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRouteFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -659,22 +721,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -683,20 +750,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -704,28 +774,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -735,17 +816,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -755,18 +842,20 @@ public Builder setParentBytes( private java.lang.Object routeId_ = ""; /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ public java.lang.String getRouteId() { java.lang.Object ref = routeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; @@ -775,20 +864,21 @@ public java.lang.String getRouteId() { } } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ - public com.google.protobuf.ByteString - getRouteIdBytes() { + public com.google.protobuf.ByteString getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); routeId_ = b; return b; } else { @@ -796,28 +886,35 @@ public java.lang.String getRouteId() { } } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The routeId to set. * @return This builder for chaining. */ - public Builder setRouteId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } routeId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRouteId() { @@ -827,17 +924,21 @@ public Builder clearRouteId() { return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for routeId to set. * @return This builder for chaining. */ - public Builder setRouteIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); routeId_ = value; bitField0_ |= 0x00000002; @@ -847,39 +948,58 @@ public Builder setRouteIdBytes( private com.google.cloud.datastream.v1alpha1.Route route_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> routeBuilder_; + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + routeBuilder_; /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ public boolean hasRoute() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ public com.google.cloud.datastream.v1alpha1.Route getRoute() { if (routeBuilder_ == null) { - return route_ == null ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; + return route_ == null + ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() + : route_; } else { return routeBuilder_.getMessage(); } } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route value) { if (routeBuilder_ == null) { @@ -895,14 +1015,17 @@ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setRoute( - com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routeBuilder_ == null) { route_ = builderForValue.build(); } else { @@ -913,17 +1036,21 @@ public Builder setRoute( return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { if (routeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - route_ != null && - route_ != com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && route_ != null + && route_ != com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()) { getRouteBuilder().mergeFrom(value); } else { route_ = value; @@ -936,11 +1063,15 @@ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearRoute() { bitField0_ = (bitField0_ & ~0x00000004); @@ -953,11 +1084,15 @@ public Builder clearRoute() { return this; } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.Route.Builder getRouteBuilder() { bitField0_ |= 0x00000004; @@ -965,36 +1100,48 @@ public com.google.cloud.datastream.v1alpha1.Route.Builder getRouteBuilder() { return getRouteFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { if (routeBuilder_ != null) { return routeBuilder_.getMessageOrBuilder(); } else { - return route_ == null ? - com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() : route_; + return route_ == null + ? com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance() + : route_; } } /** + * + * *
      * Required. The Route resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder> getRouteFieldBuilder() { if (routeBuilder_ == null) { - routeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( - getRoute(), - getParentForChildren(), - isClean()); + routeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( + getRoute(), getParentForChildren(), isClean()); route_ = null; } return routeBuilder_; @@ -1002,6 +1149,8 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1017,13 +1166,13 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1032,6 +1181,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1047,15 +1198,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1063,6 +1213,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,18 +1230,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1105,6 +1261,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1114,6 +1271,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1129,21 +1288,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1153,12 +1314,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateRouteRequest) private static final com.google.cloud.datastream.v1alpha1.CreateRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(); } @@ -1167,27 +1328,27 @@ public static com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1202,6 +1363,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java index d7fef1c2bb24..26aa1064debf 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateRouteRequestOrBuilder extends +public interface CreateRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The routeId. */ java.lang.String getRouteId(); /** + * + * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for routeId. */ - com.google.protobuf.ByteString - getRouteIdBytes(); + com.google.protobuf.ByteString getRouteIdBytes(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the route field is set. */ boolean hasRoute(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The route. */ com.google.cloud.datastream.v1alpha1.Route getRoute(); /** + * + * *
    * Required. The Route resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,8 +158,8 @@ public interface CreateRouteRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java index f12cb5b6be39..0b5163df3c14 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} - */ -public final class CreateStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} */ +public final class CreateStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateStreamRequest) CreateStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateStreamRequest.newBuilder() to construct. private CreateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateStreamRequest() { parent_ = ""; streamId_ = ""; @@ -23,38 +37,45 @@ private CreateStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -63,29 +84,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -94,14 +117,18 @@ public java.lang.String getParent() { } public static final int STREAM_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object streamId_ = ""; /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ @java.lang.Override @@ -110,29 +137,29 @@ public java.lang.String getStreamId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; } } /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreamIdBytes() { + public com.google.protobuf.ByteString getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamId_ = b; return b; } else { @@ -143,11 +170,16 @@ public java.lang.String getStreamId() { public static final int STREAM_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ @java.lang.Override @@ -155,33 +187,49 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream getStream() { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } public static final int REQUEST_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -197,6 +245,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -205,14 +254,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -228,16 +278,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -248,12 +297,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the stream, but do not create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -264,11 +316,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_ = false; /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -277,6 +332,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +344,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -324,19 +379,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -346,28 +398,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = + (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getStreamId() - .equals(other.getStreamId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getStreamId().equals(other.getStreamId())) return false; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getStream().equals(other.getStream())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -390,136 +437,137 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.CreateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateStreamRequest) com.google.cloud.datastream.v1alpha1.CreateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, + com.google.cloud.datastream.v1alpha1.CreateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.CreateStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -538,9 +586,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; } @java.lang.Override @@ -559,8 +607,11 @@ public com.google.cloud.datastream.v1alpha1.CreateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.CreateStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.CreateStreamRequest result = new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.CreateStreamRequest result = + new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -574,9 +625,7 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateStreamRequ result.streamId_ = streamId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.requestId_ = requestId_; @@ -593,38 +642,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.CreateStreamRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.CreateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.CreateStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -632,7 +682,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -683,44 +734,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - streamId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - force_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + streamId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + force_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -730,22 +786,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -754,20 +815,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -775,28 +839,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -806,17 +881,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -826,18 +907,20 @@ public Builder setParentBytes( private java.lang.Object streamId_ = ""; /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ public java.lang.String getStreamId() { java.lang.Object ref = streamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; @@ -846,20 +929,21 @@ public java.lang.String getStreamId() { } } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ - public com.google.protobuf.ByteString - getStreamIdBytes() { + public com.google.protobuf.ByteString getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); streamId_ = b; return b; } else { @@ -867,28 +951,35 @@ public java.lang.String getStreamId() { } } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The streamId to set. * @return This builder for chaining. */ - public Builder setStreamId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } streamId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamId() { @@ -898,17 +989,21 @@ public Builder clearStreamId() { return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for streamId to set. * @return This builder for chaining. */ - public Builder setStreamIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); streamId_ = value; bitField0_ |= 0x00000002; @@ -918,39 +1013,58 @@ public Builder setStreamIdBytes( private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + streamBuilder_; /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ public com.google.cloud.datastream.v1alpha1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { @@ -966,14 +1080,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStream( - com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -984,17 +1101,21 @@ public Builder setStream( return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - stream_ != null && - stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && stream_ != null + && stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -1007,11 +1128,15 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1024,11 +1149,15 @@ public Builder clearStream() { return this; } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000004; @@ -1036,36 +1165,48 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
      * Required. The stream resource to create.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; @@ -1073,6 +1214,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1088,13 +1231,13 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1103,6 +1246,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1118,15 +1263,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1134,6 +1278,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1149,18 +1295,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1176,6 +1326,7 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1185,6 +1336,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1200,12 +1353,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000008; @@ -1213,14 +1368,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1228,29 +1386,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the stream, but do not create any resources.
      * The default is false.
      * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1260,13 +1424,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1274,27 +1441,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Optional. Create the stream without validating it.
      * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1303,9 +1476,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1315,12 +1488,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.CreateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.CreateStreamRequest) private static final com.google.cloud.datastream.v1alpha1.CreateStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(); } @@ -1329,27 +1502,27 @@ public static com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1364,6 +1537,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java index 6aba752238de..0f53c4bbce39 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java @@ -1,80 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateStreamRequestOrBuilder extends +public interface CreateStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The streamId. */ java.lang.String getStreamId(); /** + * + * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for streamId. */ - com.google.protobuf.ByteString - getStreamIdBytes(); + com.google.protobuf.ByteString getStreamIdBytes(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** + * + * *
    * Required. The stream resource to create.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -90,10 +136,13 @@ public interface CreateStreamRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -109,28 +158,34 @@ public interface CreateStreamRequestOrBuilder extends
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the stream, but do not create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java index d80842c2a1bc..8a96cda39e35 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} - */ -public final class DeleteConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ +public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -22,38 +37,45 @@ private DeleteConnectionProfileRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +84,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,9 +117,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,6 +138,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -119,14 +147,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -142,16 +171,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -160,6 +188,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +200,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -202,17 +230,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = + (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,125 +261,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,14 +395,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + .getDefaultInstance(); } @java.lang.Override @@ -384,13 +418,17 @@ public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -404,46 +442,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteConnection public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -480,22 +523,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,22 +551,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,20 +580,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -550,28 +604,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -581,17 +646,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -601,6 +672,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -616,13 +689,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -631,6 +704,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -646,15 +721,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -662,6 +736,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -677,18 +753,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -704,6 +784,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -713,6 +794,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -728,21 +811,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,41 +837,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -798,9 +885,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java index 7a9b1e2dedee..c9765a1ba1c6 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteConnectionProfileRequestOrBuilder extends +public interface DeleteConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java index f0516e45ea0c..9100f76da997 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} - */ -public final class DeletePrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} */ +public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) DeletePrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePrivateConnectionRequest.newBuilder() to construct. - private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePrivateConnectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePrivateConnectionRequest() { name_ = ""; requestId_ = ""; @@ -22,38 +37,45 @@ private DeletePrivateConnectionRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +84,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,9 +117,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,6 +138,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -119,14 +147,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -142,16 +171,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -162,12 +190,15 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; private boolean force_ = false; /** + * + * *
    * Optional. If set to true, any child routes that belong to this PrivateConnection will
    * also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -176,6 +207,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -214,8 +245,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,19 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = + (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getForce() - != other.getForce()) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,133 +282,137 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -392,14 +424,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + .getDefaultInstance(); } @java.lang.Override @@ -413,13 +447,17 @@ public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -436,46 +474,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeletePrivateCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -515,27 +558,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - force_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + force_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -545,22 +592,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -569,20 +621,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -590,28 +645,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -621,17 +687,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -641,6 +713,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -656,13 +730,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -671,6 +745,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -686,15 +762,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -702,6 +777,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -717,18 +794,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -744,6 +825,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -753,6 +835,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -768,12 +852,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; @@ -781,14 +867,17 @@ public Builder setRequestIdBytes( return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -796,29 +885,35 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. If set to true, any child routes that belong to this PrivateConnection will
      * also be deleted.
      * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -827,9 +922,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -839,41 +934,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,9 +982,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java index 825736c91c37..0a01c32774d1 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeletePrivateConnectionRequestOrBuilder extends +public interface DeletePrivateConnectionRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeletePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,18 +92,21 @@ public interface DeletePrivateConnectionRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. If set to true, any child routes that belong to this PrivateConnection will
    * also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java index 1fbc359529ac..b62a4d7f229a 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * route deletion request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteRouteRequest} */ -public final class DeleteRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteRouteRequest) DeleteRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteRouteRequest.newBuilder() to construct. private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteRouteRequest() { name_ = ""; requestId_ = ""; @@ -26,38 +44,45 @@ private DeleteRouteRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -66,29 +91,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -97,9 +124,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -115,6 +145,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -123,14 +154,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -146,16 +178,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -164,6 +195,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +207,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,17 +237,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = + (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -238,129 +268,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * route deletion request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteRouteRequest) com.google.cloud.datastream.v1alpha1.DeleteRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -371,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; } @java.lang.Override @@ -392,8 +429,11 @@ public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest result = new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -412,38 +452,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteRouteReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -451,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -488,22 +530,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -513,22 +558,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -537,20 +587,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -558,28 +611,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -589,17 +653,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Route resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -609,6 +679,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -624,13 +696,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -639,6 +711,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -654,15 +728,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -670,6 +743,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -685,18 +760,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -712,6 +791,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -721,6 +801,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,21 +818,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -760,12 +844,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteRouteRequest) private static final com.google.cloud.datastream.v1alpha1.DeleteRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(); } @@ -774,27 +858,27 @@ public static com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -809,6 +893,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java index 88c05759608b..82e76db87306 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteRouteRequestOrBuilder extends +public interface DeleteRouteRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteRouteRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the Route resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteRouteRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java index f68c8a6c4024..5ed5652f6e2b 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} - */ -public final class DeleteStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} */ +public final class DeleteStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteStreamRequest) DeleteStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteStreamRequest.newBuilder() to construct. private DeleteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteStreamRequest() { name_ = ""; requestId_ = ""; @@ -22,38 +36,45 @@ private DeleteStreamRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -62,29 +83,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -93,9 +116,12 @@ public java.lang.String getName() { } public static final int REQUEST_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -111,6 +137,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -119,14 +146,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -142,16 +170,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -160,6 +187,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -202,17 +229,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = + (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -234,125 +260,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteStreamRequest) com.google.cloud.datastream.v1alpha1.DeleteStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,9 +392,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; } @java.lang.Override @@ -384,8 +413,11 @@ public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest result = new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -404,38 +436,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DeleteStreamRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -443,7 +476,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -480,22 +514,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,22 +542,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,20 +571,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -550,28 +595,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -581,17 +637,23 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -601,6 +663,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -616,13 +680,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -631,6 +695,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -646,15 +712,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -662,6 +727,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -677,18 +744,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -704,6 +775,7 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -713,6 +785,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -728,21 +802,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -752,12 +828,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DeleteStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DeleteStreamRequest) private static final com.google.cloud.datastream.v1alpha1.DeleteStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(); } @@ -766,27 +842,27 @@ public static com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -801,6 +877,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java index a13c99b2cc2c..b266e7a4331e 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteStreamRequestOrBuilder extends +public interface DeleteStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the stream resource to delete.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -43,10 +70,13 @@ public interface DeleteStreamRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -62,8 +92,8 @@ public interface DeleteStreamRequestOrBuilder extends
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java similarity index 63% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java index f75c3692a9cb..d027261a3da4 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java @@ -1,61 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * The configuration of the stream destination.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DestinationConfig} */ -public final class DestinationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DestinationConfig) DestinationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DestinationConfig.newBuilder() to construct. private DestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DestinationConfig() { destinationConnectionProfileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DestinationConfig.class, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.DestinationConfig.class, + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); } private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; + public enum DestinationStreamConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_DESTINATION_CONFIG(100), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; + private DestinationStreamConfigCase(int value) { this.value = value; } @@ -71,31 +93,38 @@ public static DestinationStreamConfigCase valueOf(int value) { public static DestinationStreamConfigCase forNumber(int value) { switch (value) { - case 100: return GCS_DESTINATION_CONFIG; - case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return GCS_DESTINATION_CONFIG; + case 0: + return DESTINATIONSTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationStreamConfigCase - getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber( - destinationStreamConfigCase_); + public DestinationStreamConfigCase getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); } public static final int DESTINATION_CONNECTION_PROFILE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object destinationConnectionProfileName_ = ""; /** + * + * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConnectionProfileName. */ @java.lang.Override @@ -104,29 +133,30 @@ public java.lang.String getDestinationConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfileName_ = s; return s; } } /** + * + * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for destinationConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -136,7 +166,9 @@ public java.lang.String getDestinationConnectionProfileName() { public static final int GCS_DESTINATION_CONFIG_FIELD_NUMBER = 100; /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -144,28 +176,33 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder + getGcsDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,13 +214,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationConnectionProfileName_); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + output.writeMessage( + 100, + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } getUnknownFields().writeTo(output); } @@ -195,11 +234,15 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationConnectionProfileName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize( + 1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -209,20 +252,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DestinationConfig other = (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.DestinationConfig other = + (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; - if (!getDestinationConnectionProfileName() - .equals(other.getDestinationConnectionProfileName())) return false; - if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) return false; + if (!getDestinationConnectionProfileName().equals(other.getDestinationConnectionProfileName())) + return false; + if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) + return false; switch (destinationStreamConfigCase_) { case 100: - if (!getGcsDestinationConfig() - .equals(other.getGcsDestinationConfig())) return false; + if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; break; case 0: default: @@ -254,129 +298,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DestinationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the stream destination.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DestinationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DestinationConfig) com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DestinationConfig.class, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.DestinationConfig.class, + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.DestinationConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; } @java.lang.Override @@ -412,8 +463,11 @@ public com.google.cloud.datastream.v1alpha1.DestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.DestinationConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.DestinationConfig result = new com.google.cloud.datastream.v1alpha1.DestinationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DestinationConfig result = + new com.google.cloud.datastream.v1alpha1.DestinationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -429,8 +483,7 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.DestinationConfi private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DestinationConfig result) { result.destinationStreamConfigCase_ = destinationStreamConfigCase_; result.destinationStreamConfig_ = this.destinationStreamConfig_; - if (destinationStreamConfigCase_ == 100 && - gcsDestinationConfigBuilder_ != null) { + if (destinationStreamConfigCase_ == 100 && gcsDestinationConfigBuilder_ != null) { result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); } } @@ -439,38 +492,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Destination public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DestinationConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.DestinationConfig) other); } else { super.mergeFrom(other); return this; @@ -478,20 +532,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DestinationConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) + return this; if (!other.getDestinationConnectionProfileName().isEmpty()) { destinationConnectionProfileName_ = other.destinationConnectionProfileName_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getDestinationStreamConfigCase()) { - case GCS_DESTINATION_CONFIG: { - mergeGcsDestinationConfig(other.getGcsDestinationConfig()); - break; - } - case DESTINATIONSTREAMCONFIG_NOT_SET: { - break; - } + case GCS_DESTINATION_CONFIG: + { + mergeGcsDestinationConfig(other.getGcsDestinationConfig()); + break; + } + case DESTINATIONSTREAMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -519,24 +576,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - destinationConnectionProfileName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: { - input.readMessage( - getGcsDestinationConfigFieldBuilder().getBuilder(), - extensionRegistry); - destinationStreamConfigCase_ = 100; - break; - } // case 802 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + destinationConnectionProfileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: + { + input.readMessage( + getGcsDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); + destinationStreamConfigCase_ = 100; + break; + } // case 802 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,12 +605,12 @@ public Builder mergeFrom( } // finally return this; } + private int destinationStreamConfigCase_ = 0; private java.lang.Object destinationStreamConfig_; - public DestinationStreamConfigCase - getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber( - destinationStreamConfigCase_); + + public DestinationStreamConfigCase getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); } public Builder clearDestinationStreamConfig() { @@ -565,18 +624,22 @@ public Builder clearDestinationStreamConfig() { private java.lang.Object destinationConnectionProfileName_ = ""; /** + * + * *
      * Required. Destination connection profile identifier.
      * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConnectionProfileName. */ public java.lang.String getDestinationConnectionProfileName() { java.lang.Object ref = destinationConnectionProfileName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfileName_ = s; return s; @@ -585,20 +648,23 @@ public java.lang.String getDestinationConnectionProfileName() { } } /** + * + * *
      * Required. Destination connection profile identifier.
      * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for destinationConnectionProfileName. */ - public com.google.protobuf.ByteString - getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -606,48 +672,66 @@ public java.lang.String getDestinationConnectionProfileName() { } } /** + * + * *
      * Required. Destination connection profile identifier.
      * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The destinationConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationConnectionProfileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationConnectionProfileName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Destination connection profile identifier.
      * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearDestinationConnectionProfileName() { - destinationConnectionProfileName_ = getDefaultInstance().getDestinationConnectionProfileName(); + destinationConnectionProfileName_ = + getDefaultInstance().getDestinationConnectionProfileName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** + * + * *
      * Required. Destination connection profile identifier.
      * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for destinationConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationConnectionProfileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationConnectionProfileName_ = value; bitField0_ |= 0x00000001; @@ -656,9 +740,14 @@ public Builder setDestinationConnectionProfileNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> gcsDestinationConfigBuilder_; + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> + gcsDestinationConfigBuilder_; /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -666,14 +755,17 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } else { @@ -684,9 +776,11 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinati } } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ - public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder setGcsDestinationConfig( + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,7 +794,8 @@ public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsD return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ public Builder setGcsDestinationConfig( com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder builderForValue) { @@ -714,14 +809,21 @@ public Builder setGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ - public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder mergeGcsDestinationConfig( + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 100 && - destinationStreamConfig_ != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_) - .mergeFrom(value).buildPartial(); + if (destinationStreamConfigCase_ == 100 + && destinationStreamConfig_ + != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder( + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { destinationStreamConfig_ = value; } @@ -737,7 +839,8 @@ public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.Gc return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ public Builder clearGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { @@ -756,38 +859,51 @@ public Builder clearGcsDestinationConfig() { return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder getGcsDestinationConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder + getGcsDestinationConfigBuilder() { return getGcsDestinationConfigFieldBuilder().getBuilder(); } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder + getGcsDestinationConfigOrBuilder() { if ((destinationStreamConfigCase_ == 100) && (gcsDestinationConfigBuilder_ != null)) { return gcsDestinationConfigBuilder_.getMessageOrBuilder(); } else { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder> getGcsDestinationConfigFieldBuilder() { if (gcsDestinationConfigBuilder_ == null) { if (!(destinationStreamConfigCase_ == 100)) { - destinationStreamConfig_ = com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); + destinationStreamConfig_ = + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } - gcsDestinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder>( - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_, + gcsDestinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder>( + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_, getParentForChildren(), isClean()); destinationStreamConfig_ = null; @@ -796,9 +912,9 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcs onChanged(); return gcsDestinationConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DestinationConfig) private static final com.google.cloud.datastream.v1alpha1.DestinationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DestinationConfig(); } @@ -822,27 +938,27 @@ public static com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +973,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java similarity index 55% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java index 7442f5463feb..82556d05594d 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java @@ -1,46 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface DestinationConfigOrBuilder extends +public interface DestinationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DestinationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConnectionProfileName. */ java.lang.String getDestinationConnectionProfileName(); /** + * + * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for destinationConnectionProfileName. */ - com.google.protobuf.ByteString - getDestinationConnectionProfileNameBytes(); + com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return Whether the gcsDestinationConfig field is set. */ boolean hasGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * + * * @return The gcsDestinationConfig. */ com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; + * */ - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder + getGcsDestinationConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase + getDestinationStreamConfigCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java index f727b7c5b525..22c7e8bf8365 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java @@ -1,62 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Request message for 'discover' ConnectionProfile request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest} */ -public final class DiscoverConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DiscoverConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) DiscoverConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileRequest.newBuilder() to construct. - private DiscoverConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DiscoverConnectionProfileRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); } private int targetCase_ = 0; private java.lang.Object target_; + public enum TargetCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CONNECTION_PROFILE(200), CONNECTION_PROFILE_NAME(201), TARGET_NOT_SET(0); private final int value; + private TargetCase(int value) { this.value = value; } @@ -72,32 +95,38 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 200: return CONNECTION_PROFILE; - case 201: return CONNECTION_PROFILE_NAME; - case 0: return TARGET_NOT_SET; - default: return null; + case 200: + return CONNECTION_PROFILE; + case 201: + return CONNECTION_PROFILE_NAME; + case 0: + return TARGET_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } private int depthCase_ = 0; private java.lang.Object depth_; + public enum DepthCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECURSIVE(3), RECURSION_DEPTH(4), DEPTH_NOT_SET(0); private final int value; + private DepthCase(int value) { this.value = value; } @@ -113,32 +142,38 @@ public static DepthCase valueOf(int value) { public static DepthCase forNumber(int value) { switch (value) { - case 3: return RECURSIVE; - case 4: return RECURSION_DEPTH; - case 0: return DEPTH_NOT_SET; - default: return null; + case 3: + return RECURSIVE; + case 4: + return RECURSION_DEPTH; + case 0: + return DEPTH_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DepthCase - getDepthCase() { - return DepthCase.forNumber( - depthCase_); + public DepthCase getDepthCase() { + return DepthCase.forNumber(depthCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; + public enum DataObjectCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -154,33 +189,42 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: return ORACLE_RDBMS; - case 101: return MYSQL_RDBMS; - case 0: return DATAOBJECT_NOT_SET; - default: return null; + case 100: + return ORACLE_RDBMS; + case 101: + return MYSQL_RDBMS; + case 0: + return DATAOBJECT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -189,30 +233,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -222,11 +268,14 @@ public java.lang.String getParent() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -234,21 +283,26 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -256,31 +310,38 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { @@ -291,8 +352,7 @@ public java.lang.String getConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -301,23 +361,24 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ - public com.google.protobuf.ByteString - getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -329,12 +390,15 @@ public java.lang.String getConnectionProfileName() { public static final int RECURSIVE_FIELD_NUMBER = 3; /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; + * * @return Whether the recursive field is set. */ @java.lang.Override @@ -342,12 +406,15 @@ public boolean hasRecursive() { return depthCase_ == 3; } /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; + * * @return The recursive. */ @java.lang.Override @@ -360,11 +427,14 @@ public boolean getRecursive() { public static final int RECURSION_DEPTH_FIELD_NUMBER = 4; /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; + * * @return Whether the recursionDepth field is set. */ @java.lang.Override @@ -372,11 +442,14 @@ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; + * * @return The recursionDepth. */ @java.lang.Override @@ -389,11 +462,14 @@ public int getRecursionDepth() { public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -401,21 +477,26 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -425,18 +506,21 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -444,21 +528,26 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -468,12 +557,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,18 +575,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (depthCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) depth_)); + output.writeBool(3, (boolean) ((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - output.writeInt32( - 4, (int)((java.lang.Integer) depth_)); + output.writeInt32(4, (int) ((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); @@ -523,26 +610,29 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (depthCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) depth_)); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, (boolean) ((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 4, (int)((java.lang.Integer) depth_)); + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 4, (int) ((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } if (targetCase_ == 200) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); @@ -555,24 +645,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; break; case 201: - if (!getConnectionProfileName() - .equals(other.getConnectionProfileName())) return false; + if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; break; case 0: default: @@ -580,12 +668,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDepthCase().equals(other.getDepthCase())) return false; switch (depthCase_) { case 3: - if (getRecursive() - != other.getRecursive()) return false; + if (getRecursive() != other.getRecursive()) return false; break; case 4: - if (getRecursionDepth() - != other.getRecursionDepth()) return false; + if (getRecursionDepth() != other.getRecursionDepth()) return false; break; case 0: default: @@ -593,12 +679,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms() - .equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms() - .equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -631,8 +715,7 @@ public int hashCode() { switch (depthCase_) { case 3: hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); break; case 4: hash = (37 * hash) + RECURSION_DEPTH_FIELD_NUMBER; @@ -659,129 +742,138 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for 'discover' ConnectionProfile request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -806,14 +898,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + .getDefaultInstance(); } @java.lang.Override @@ -827,37 +921,39 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest bui @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } } - private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result) { result.targetCase_ = targetCase_; result.target_ = this.target_; - if (targetCase_ == 200 && - connectionProfileBuilder_ != null) { + if (targetCase_ == 200 && connectionProfileBuilder_ != null) { result.target_ = connectionProfileBuilder_.build(); } result.depthCase_ = depthCase_; result.depth_ = this.depth_; result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && - oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && - mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } } @@ -866,91 +962,105 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getTargetCase()) { - case CONNECTION_PROFILE: { - mergeConnectionProfile(other.getConnectionProfile()); - break; - } - case CONNECTION_PROFILE_NAME: { - targetCase_ = 201; - target_ = other.target_; - onChanged(); - break; - } - case TARGET_NOT_SET: { - break; - } + case CONNECTION_PROFILE: + { + mergeConnectionProfile(other.getConnectionProfile()); + break; + } + case CONNECTION_PROFILE_NAME: + { + targetCase_ = 201; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: + { + break; + } } switch (other.getDepthCase()) { - case RECURSIVE: { - setRecursive(other.getRecursive()); - break; - } - case RECURSION_DEPTH: { - setRecursionDepth(other.getRecursionDepth()); - break; - } - case DEPTH_NOT_SET: { - break; - } + case RECURSIVE: + { + setRecursive(other.getRecursive()); + break; + } + case RECURSION_DEPTH: + { + setRecursionDepth(other.getRecursionDepth()); + break; + } + case DEPTH_NOT_SET: + { + break; + } } switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: { - break; - } + case ORACLE_RDBMS: + { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: + { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -978,54 +1088,57 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - depth_ = input.readBool(); - depthCase_ = 3; - break; - } // case 24 - case 32: { - depth_ = input.readInt32(); - depthCase_ = 4; - break; - } // case 32 - case 802: { - input.readMessage( - getOracleRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - case 1602: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - targetCase_ = 200; - break; - } // case 1602 - case 1610: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } // case 1610 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + depth_ = input.readBool(); + depthCase_ = 3; + break; + } // case 24 + case 32: + { + depth_ = input.readInt32(); + depthCase_ = 4; + break; + } // case 32 + case 802: + { + input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + case 1602: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + targetCase_ = 200; + break; + } // case 1602 + case 1610: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } // case 1610 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1035,12 +1148,12 @@ public Builder mergeFrom( } // finally return this; } + private int targetCase_ = 0; private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); } public Builder clearTarget() { @@ -1052,10 +1165,9 @@ public Builder clearTarget() { private int depthCase_ = 0; private java.lang.Object depth_; - public DepthCase - getDepthCase() { - return DepthCase.forNumber( - depthCase_); + + public DepthCase getDepthCase() { + return DepthCase.forNumber(depthCase_); } public Builder clearDepth() { @@ -1067,10 +1179,9 @@ public Builder clearDepth() { private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public Builder clearDataObject() { @@ -1084,19 +1195,23 @@ public Builder clearDataObject() { private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -1105,21 +1220,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -1127,30 +1245,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -1160,18 +1289,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -1180,13 +1315,19 @@ public Builder setParentBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -1194,11 +1335,14 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ @java.lang.Override @@ -1216,13 +1360,16 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1236,6 +1383,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.Connect return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1254,18 +1403,25 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (targetCase_ == 200 && - target_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { - target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) - .mergeFrom(value).buildPartial(); + if (targetCase_ == 200 + && target_ + != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + target_ = + com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder( + (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) + .mergeFrom(value) + .buildPartial(); } else { target_ = value; } @@ -1281,6 +1437,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.Conne return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1304,16 +1462,21 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + getConnectionProfileBuilder() { return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1321,7 +1484,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnect * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { @@ -1332,6 +1496,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec } } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1339,14 +1505,19 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_, getParentForChildren(), isClean()); @@ -1358,11 +1529,14 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1370,11 +1544,14 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ @java.lang.Override @@ -1384,8 +1561,7 @@ public java.lang.String getConnectionProfileName() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -1396,24 +1572,25 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString - getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -1423,28 +1600,35 @@ public java.lang.String getConnectionProfileName() { } } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @param value The connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } targetCase_ = 201; target_ = value; onChanged(); return this; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return This builder for chaining. */ public Builder clearConnectionProfileName() { @@ -1456,17 +1640,21 @@ public Builder clearConnectionProfileName() { return this; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @param value The bytes for connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; @@ -1475,24 +1663,30 @@ public Builder setConnectionProfileNameBytes( } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; + * * @return Whether the recursive field is set. */ public boolean hasRecursive() { return depthCase_ == 3; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; + * * @return The recursive. */ public boolean getRecursive() { @@ -1502,29 +1696,35 @@ public boolean getRecursive() { return false; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; + * * @param value The recursive to set. * @return This builder for chaining. */ public Builder setRecursive(boolean value) { - + depthCase_ = 3; depth_ = value; onChanged(); return this; } /** + * + * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; + * * @return This builder for chaining. */ public Builder clearRecursive() { @@ -1537,22 +1737,28 @@ public Builder clearRecursive() { } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; + * * @return Whether the recursionDepth field is set. */ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; + * * @return The recursionDepth. */ public int getRecursionDepth() { @@ -1562,27 +1768,33 @@ public int getRecursionDepth() { return 0; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; + * * @param value The recursionDepth to set. * @return This builder for chaining. */ public Builder setRecursionDepth(int value) { - + depthCase_ = 4; depth_ = value; onChanged(); return this; } /** + * + * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; + * * @return This builder for chaining. */ public Builder clearRecursionDepth() { @@ -1595,13 +1807,19 @@ public Builder clearRecursionDepth() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + oracleRdbmsBuilder_; /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -1609,11 +1827,14 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override @@ -1631,6 +1852,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1651,6 +1874,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1669,6 +1894,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1677,10 +1904,14 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 && - dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 100 + && dataObject_ + != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -1696,6 +1927,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1719,6 +1952,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1729,6 +1964,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1747,6 +1984,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1754,14 +1993,19 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1773,13 +2017,19 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + mysqlRdbmsBuilder_; /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -1787,11 +2037,14 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override @@ -1809,6 +2062,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1829,6 +2084,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1847,6 +2104,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1855,10 +2114,14 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 && - dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 101 + && dataObject_ + != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -1874,6 +2137,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1897,6 +2162,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1907,6 +2174,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1925,6 +2194,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1932,14 +2203,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -1949,9 +2225,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB onChanged(); return mysqlRdbmsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1961,41 +2237,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2007,9 +2285,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java index 6299da66e263..c01fc3ebdfba 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java @@ -1,53 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileRequestOrBuilder extends +public interface DiscoverConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; + * * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -57,93 +90,121 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ boolean hasConnectionProfileName(); /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ java.lang.String getConnectionProfileName(); /** + * + * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; + * * @return The bytes for connectionProfileName. */ - com.google.protobuf.ByteString - getConnectionProfileNameBytes(); + com.google.protobuf.ByteString getConnectionProfileNameBytes(); /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; + * * @return Whether the recursive field is set. */ boolean hasRecursive(); /** + * + * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; + * * @return The recursive. */ boolean getRecursive(); /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; + * * @return Whether the recursionDepth field is set. */ boolean hasRecursionDepth(); /** + * + * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; + * * @return The recursionDepth. */ int getRecursionDepth(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** + * + * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -153,24 +214,32 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** + * + * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -179,9 +248,12 @@ public interface DiscoverConnectionProfileRequestOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase + getTargetCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase getDepthCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase + getDepthCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase + getDataObjectCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java index 3715e63bf9b7..9b696a30b9da 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java @@ -1,57 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} - */ -public final class DiscoverConnectionProfileResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} */ +public final class DiscoverConnectionProfileResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) DiscoverConnectionProfileResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DiscoverConnectionProfileResponse.newBuilder() to construct. - private DiscoverConnectionProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DiscoverConnectionProfileResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DiscoverConnectionProfileResponse() { - } + + private DiscoverConnectionProfileResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DiscoverConnectionProfileResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; + public enum DataObjectCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -67,30 +85,36 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: return ORACLE_RDBMS; - case 101: return MYSQL_RDBMS; - case 0: return DATAOBJECT_NOT_SET; - default: return null; + case 100: + return ORACLE_RDBMS; + case 101: + return MYSQL_RDBMS; + case 0: + return DATAOBJECT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -98,21 +122,26 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
@@ -122,18 +151,21 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -141,21 +173,26 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
@@ -165,12 +202,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,8 +220,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } @@ -200,12 +237,14 @@ public int getSerializedSize() { size = 0; if (dataObjectCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,22 +254,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms() - .equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms() - .equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -264,125 +302,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -399,19 +442,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse build() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = buildPartial(); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -420,26 +466,29 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse bu @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = + new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { int from_bitField0_ = bitField0_; } - private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result) { result.dataObjectCase_ = dataObjectCase_; result.dataObject_ = this.dataObject_; - if (dataObjectCase_ == 100 && - oracleRdbmsBuilder_ != null) { + if (dataObjectCase_ == 100 && oracleRdbmsBuilder_ != null) { result.dataObject_ = oracleRdbmsBuilder_.build(); } - if (dataObjectCase_ == 101 && - mysqlRdbmsBuilder_ != null) { + if (dataObjectCase_ == 101 && mysqlRdbmsBuilder_ != null) { result.dataObject_ = mysqlRdbmsBuilder_.build(); } } @@ -448,58 +497,66 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.DiscoverCon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other) { + if (other + == com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + .getDefaultInstance()) return this; switch (other.getDataObjectCase()) { - case ORACLE_RDBMS: { - mergeOracleRdbms(other.getOracleRdbms()); - break; - } - case MYSQL_RDBMS: { - mergeMysqlRdbms(other.getMysqlRdbms()); - break; - } - case DATAOBJECT_NOT_SET: { - break; - } + case ORACLE_RDBMS: + { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: + { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -527,26 +584,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 802: { - input.readMessage( - getOracleRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlRdbmsFieldBuilder().getBuilder(), - extensionRegistry); - dataObjectCase_ = 101; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 802: + { + input.readMessage(getOracleRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getMysqlRdbmsFieldBuilder().getBuilder(), extensionRegistry); + dataObjectCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -556,12 +612,12 @@ public Builder mergeFrom( } // finally return this; } + private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public DataObjectCase - getDataObjectCase() { - return DataObjectCase.forNumber( - dataObjectCase_); + + public DataObjectCase getDataObjectCase() { + return DataObjectCase.forNumber(dataObjectCase_); } public Builder clearDataObject() { @@ -574,13 +630,19 @@ public Builder clearDataObject() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + oracleRdbmsBuilder_; /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -588,11 +650,14 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ @java.lang.Override @@ -610,6 +675,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -630,6 +697,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -648,6 +717,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -656,10 +727,14 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 && - dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 100 + && dataObject_ + != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -675,6 +750,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -698,6 +775,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -708,6 +787,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -726,6 +807,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -733,14 +816,19 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleRdbmsFieldBuilder() { if (oracleRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 100)) { dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_, getParentForChildren(), isClean()); @@ -752,13 +840,19 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + mysqlRdbmsBuilder_; /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -766,11 +860,14 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ @java.lang.Override @@ -788,6 +885,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -808,6 +907,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -826,6 +927,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -834,10 +937,14 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 && - dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value).buildPartial(); + if (dataObjectCase_ == 101 + && dataObject_ + != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = + com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value) + .buildPartial(); } else { dataObject_ = value; } @@ -853,6 +960,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -876,6 +985,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -886,6 +997,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -904,6 +1017,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -911,14 +1026,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlRdbmsFieldBuilder() { if (mysqlRdbmsBuilder_ == null) { if (!(dataObjectCase_ == 101)) { dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlRdbmsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlRdbmsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_, getParentForChildren(), isClean()); @@ -928,9 +1048,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB onChanged(); return mysqlRdbmsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -940,41 +1060,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) - private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DiscoverConnectionProfileResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscoverConnectionProfileResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,9 +1108,8 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java index 4e610ac978cb..0e0ef1e0e7da 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileResponseOrBuilder extends +public interface DiscoverConnectionProfileResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; + * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** + * + * *
    * Enriched Oracle RDBMS object.
    * 
@@ -35,24 +59,32 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; + * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** + * + * *
    * Enriched MySQL RDBMS object.
    * 
@@ -61,5 +93,6 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase + getDataObjectCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java index 8bba1717fbee..4cd854d6ba13 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Represent a user-facing Error.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Error} */ -public final class Error extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Error extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Error) ErrorOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Error() { reason_ = ""; errorUuid_ = ""; @@ -27,50 +45,54 @@ private Error() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Error(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Error.class, com.google.cloud.datastream.v1alpha1.Error.Builder.class); + com.google.cloud.datastream.v1alpha1.Error.class, + com.google.cloud.datastream.v1alpha1.Error.Builder.class); } public static final int REASON_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object reason_ = ""; /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ @java.lang.Override @@ -79,29 +101,29 @@ public java.lang.String getReason() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; } } /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The bytes for reason. */ @java.lang.Override - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -110,15 +132,19 @@ public java.lang.String getReason() { } public static final int ERROR_UUID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object errorUuid_ = ""; /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The errorUuid. */ @java.lang.Override @@ -127,30 +153,30 @@ public java.lang.String getErrorUuid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; } } /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ @java.lang.Override - public com.google.protobuf.ByteString - getErrorUuidBytes() { + public com.google.protobuf.ByteString getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -159,14 +185,18 @@ public java.lang.String getErrorUuid() { } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The message. */ @java.lang.Override @@ -175,29 +205,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -208,11 +238,14 @@ public java.lang.String getMessage() { public static final int ERROR_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp errorTime_; /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ @java.lang.Override @@ -220,11 +253,14 @@ public boolean hasErrorTime() { return errorTime_ != null; } /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ @java.lang.Override @@ -232,6 +268,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -244,32 +282,34 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { } public static final int DETAILS_FIELD_NUMBER = 5; + private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } + public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -277,20 +317,21 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -302,6 +343,8 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -309,17 +352,19 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getDetailsOrDefault( + public /* nullable */ java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional information about the error.
    * 
@@ -327,11 +372,11 @@ java.lang.String getDetailsOrDefault( * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -339,6 +384,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -350,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } @@ -364,12 +409,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (errorTime_ != null) { output.writeMessage(4, getErrorTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDetails(), - DetailsDefaultEntryHolder.defaultEntry, - 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 5); getUnknownFields().writeTo(output); } @@ -389,18 +430,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (errorTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getErrorTime()); - } - for (java.util.Map.Entry entry - : internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry - details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, details__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorTime()); + } + for (java.util.Map.Entry entry : + internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry details__ = + DetailsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, details__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -410,26 +450,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Error)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Error other = (com.google.cloud.datastream.v1alpha1.Error) obj; + com.google.cloud.datastream.v1alpha1.Error other = + (com.google.cloud.datastream.v1alpha1.Error) obj; - if (!getReason() - .equals(other.getReason())) return false; - if (!getErrorUuid() - .equals(other.getErrorUuid())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getReason().equals(other.getReason())) return false; + if (!getErrorUuid().equals(other.getErrorUuid())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (hasErrorTime() != other.hasErrorTime()) return false; if (hasErrorTime()) { - if (!getErrorTime() - .equals(other.getErrorTime())) return false; + if (!getErrorTime().equals(other.getErrorTime())) return false; } - if (!internalGetDetails().equals( - other.internalGetDetails())) return false; + if (!internalGetDetails().equals(other.internalGetDetails())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,152 +496,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Error parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Error parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Error parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Error prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represent a user-facing Error.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Error} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Error) com.google.cloud.datastream.v1alpha1.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 5: return internalGetDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 5: return internalGetMutableDetails(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Error.class, com.google.cloud.datastream.v1alpha1.Error.Builder.class); + com.google.cloud.datastream.v1alpha1.Error.class, + com.google.cloud.datastream.v1alpha1.Error.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Error.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -623,9 +663,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; } @java.lang.Override @@ -644,8 +684,11 @@ public com.google.cloud.datastream.v1alpha1.Error build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error buildPartial() { - com.google.cloud.datastream.v1alpha1.Error result = new com.google.cloud.datastream.v1alpha1.Error(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.Error result = + new com.google.cloud.datastream.v1alpha1.Error(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -662,9 +705,7 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Error result) { result.message_ = message_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.errorTime_ = errorTimeBuilder_ == null - ? errorTime_ - : errorTimeBuilder_.build(); + result.errorTime_ = errorTimeBuilder_ == null ? errorTime_ : errorTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { result.details_ = internalGetDetails(); @@ -676,38 +717,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Error result) { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Error) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Error)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Error) other); } else { super.mergeFrom(other); return this; @@ -734,8 +776,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Error other) { if (other.hasErrorTime()) { mergeErrorTime(other.getErrorTime()); } - internalGetMutableDetails().mergeFrom( - other.internalGetDetails()); + internalGetMutableDetails().mergeFrom(other.internalGetDetails()); bitField0_ |= 0x00000010; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -763,43 +804,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - reason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - errorUuid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getErrorTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - com.google.protobuf.MapEntry - details__ = input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableDetails().getMutableMap().put( - details__.getKey(), details__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + errorUuid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getErrorTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableDetails() + .getMutableMap() + .put(details__.getKey(), details__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -809,22 +856,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object reason_ = ""; /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return The reason. */ public java.lang.String getReason() { java.lang.Object ref = reason_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); reason_ = s; return s; @@ -833,20 +883,21 @@ public java.lang.String getReason() { } } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return The bytes for reason. */ - public com.google.protobuf.ByteString - getReasonBytes() { + public com.google.protobuf.ByteString getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); reason_ = b; return b; } else { @@ -854,28 +905,35 @@ public java.lang.String getReason() { } } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } reason_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return This builder for chaining. */ public Builder clearReason() { @@ -885,17 +943,21 @@ public Builder clearReason() { return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @param value The bytes for reason to set. * @return This builder for chaining. */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setReasonBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); reason_ = value; bitField0_ |= 0x00000001; @@ -905,19 +967,21 @@ public Builder setReasonBytes( private java.lang.Object errorUuid_ = ""; /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return The errorUuid. */ public java.lang.String getErrorUuid() { java.lang.Object ref = errorUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; @@ -926,21 +990,22 @@ public java.lang.String getErrorUuid() { } } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ - public com.google.protobuf.ByteString - getErrorUuidBytes() { + public com.google.protobuf.ByteString getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -948,30 +1013,37 @@ public java.lang.String getErrorUuid() { } } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @param value The errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuid( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorUuid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } errorUuid_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @return This builder for chaining. */ public Builder clearErrorUuid() { @@ -981,18 +1053,22 @@ public Builder clearErrorUuid() { return this; } /** + * + * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; + * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); errorUuid_ = value; bitField0_ |= 0x00000002; @@ -1002,18 +1078,20 @@ public Builder setErrorUuidBytes( private java.lang.Object message_ = ""; /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1022,20 +1100,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -1043,28 +1122,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -1074,17 +1160,21 @@ public Builder clearMessage() { return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000004; @@ -1094,24 +1184,33 @@ public Builder setMessageBytes( private com.google.protobuf.Timestamp errorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + errorTimeBuilder_; /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ public boolean hasErrorTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1122,6 +1221,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1142,14 +1243,15 @@ public Builder setErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; */ - public Builder setErrorTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (errorTimeBuilder_ == null) { errorTime_ = builderForValue.build(); } else { @@ -1160,6 +1262,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1168,9 +1272,9 @@ public Builder setErrorTime( */ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - errorTime_ != null && - errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && errorTime_ != null + && errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getErrorTimeBuilder().mergeFrom(value); } else { errorTime_ = value; @@ -1183,6 +1287,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1200,6 +1306,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1212,6 +1320,8 @@ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { return getErrorTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1222,11 +1332,12 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { if (errorTimeBuilder_ != null) { return errorTimeBuilder_.getMessageOrBuilder(); } else { - return errorTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1234,34 +1345,35 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { * .google.protobuf.Timestamp error_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getErrorTimeFieldBuilder() { if (errorTimeBuilder_ == null) { - errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getErrorTime(), - getParentForChildren(), - isClean()); + errorTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getErrorTime(), getParentForChildren(), isClean()); errorTime_ = null; } return errorTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> details_; - private com.google.protobuf.MapField - internalGetDetails() { + private com.google.protobuf.MapField details_; + + private com.google.protobuf.MapField internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); } return details_; } + private com.google.protobuf.MapField internalGetMutableDetails() { if (details_ == null) { - details_ = com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); + details_ = com.google.protobuf.MapField.newMapField(DetailsDefaultEntryHolder.defaultEntry); } if (!details_.isMutable()) { details_ = details_.copy(); @@ -1270,10 +1382,13 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { onChanged(); return details_; } + public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1281,20 +1396,21 @@ public int getDetailsCount() { * map<string, string> details = 5; */ @java.lang.Override - public boolean containsDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetDetails().getMap().containsKey(key); } - /** - * Use {@link #getDetailsMap()} instead. - */ + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getDetails() { return getDetailsMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1306,6 +1422,8 @@ public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1313,17 +1431,19 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public /* nullable */ -java.lang.String getDetailsOrDefault( + public /* nullable */ java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional information about the error.
      * 
@@ -1331,79 +1451,81 @@ java.lang.String getDetailsOrDefault( * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearDetails() { bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableDetails().getMutableMap() - .clear(); + internalGetMutableDetails().getMutableMap().clear(); return this; } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder removeDetails( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableDetails().getMutableMap() - .remove(key); + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableDetails().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableDetails() { + public java.util.Map getMutableDetails() { bitField0_ |= 0x00000010; return internalGetMutableDetails().getMutableMap(); } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putDetails( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableDetails().getMutableMap() - .put(key, value); + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableDetails().getMutableMap().put(key, value); bitField0_ |= 0x00000010; return this; } /** + * + * *
      * Additional information about the error.
      * 
* * map<string, string> details = 5; */ - public Builder putAllDetails( - java.util.Map values) { - internalGetMutableDetails().getMutableMap() - .putAll(values); + public Builder putAllDetails(java.util.Map values) { + internalGetMutableDetails().getMutableMap().putAll(values); bitField0_ |= 0x00000010; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1413,12 +1535,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Error) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Error) private static final com.google.cloud.datastream.v1alpha1.Error DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Error(); } @@ -1427,27 +1549,27 @@ public static com.google.cloud.datastream.v1alpha1.Error getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Error parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1462,6 +1584,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java index f0bbd90b71b8..3472a753896b 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java @@ -1,93 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ErrorOrBuilder extends +public interface ErrorOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Error) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ java.lang.String getReason(); /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The bytes for reason. */ - com.google.protobuf.ByteString - getReasonBytes(); + com.google.protobuf.ByteString getReasonBytes(); /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The errorUuid. */ java.lang.String getErrorUuid(); /** + * + * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; + * * @return The bytes for errorUuid. */ - com.google.protobuf.ByteString - getErrorUuidBytes(); + com.google.protobuf.ByteString getErrorUuidBytes(); /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return Whether the errorTime field is set. */ boolean hasErrorTime(); /** + * + * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ com.google.protobuf.Timestamp getErrorTime(); /** + * + * *
    * The time when the error occurred.
    * 
@@ -97,6 +136,8 @@ public interface ErrorOrBuilder extends com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); /** + * + * *
    * Additional information about the error.
    * 
@@ -105,30 +146,31 @@ public interface ErrorOrBuilder extends */ int getDetailsCount(); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - boolean containsDetails( - java.lang.String key); - /** - * Use {@link #getDetailsMap()} instead. - */ + boolean containsDetails(java.lang.String key); + /** Use {@link #getDetailsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getDetails(); + java.util.Map getDetails(); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.util.Map - getDetailsMap(); + java.util.Map getDetailsMap(); /** + * + * *
    * Additional information about the error.
    * 
@@ -136,17 +178,18 @@ boolean containsDetails( * map<string, string> details = 5; */ /* nullable */ -java.lang.String getDetailsOrDefault( + java.lang.String getDetailsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.lang.String getDetailsOrThrow( - java.lang.String key); + java.lang.String getDetailsOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java index 85d89aaa2db2..5a9526c04374 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java @@ -1,62 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Request message for 'FetchErrors' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsRequest} */ -public final class FetchErrorsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchErrorsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchErrorsRequest) FetchErrorsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchErrorsRequest.newBuilder() to construct. private FetchErrorsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchErrorsRequest() { stream_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchErrorsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); } public static final int STREAM_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object stream_ = ""; /** + * + * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The stream. */ @java.lang.Override @@ -65,29 +88,29 @@ public java.lang.String getStream() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stream_ = s; return s; } } /** + * + * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for stream. */ @java.lang.Override - public com.google.protobuf.ByteString - getStreamBytes() { + public com.google.protobuf.ByteString getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stream_ = b; return b; } else { @@ -96,6 +119,7 @@ public java.lang.String getStream() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +131,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stream_); } @@ -132,15 +155,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other = (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) obj; + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other = + (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) obj; - if (!getStream() - .equals(other.getStream())) return false; + if (!getStream().equals(other.getStream())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +183,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for 'FetchErrors' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchErrorsRequest) com.google.cloud.datastream.v1alpha1.FetchErrorsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +322,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; } @java.lang.Override @@ -313,8 +343,11 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest result = new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest result = + new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +363,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchErrorsReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +403,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) + return this; if (!other.getStream().isEmpty()) { stream_ = other.stream_; bitField0_ |= 0x00000001; @@ -401,17 +436,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - stream_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + stream_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +458,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object stream_ = ""; /** + * + * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The stream. */ public java.lang.String getStream() { java.lang.Object ref = stream_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); stream_ = s; return s; @@ -445,20 +485,21 @@ public java.lang.String getStream() { } } /** + * + * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for stream. */ - public com.google.protobuf.ByteString - getStreamBytes() { + public com.google.protobuf.ByteString getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); stream_ = b; return b; } else { @@ -466,28 +507,35 @@ public java.lang.String getStream() { } } /** + * + * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @param value The stream to set. * @return This builder for chaining. */ - public Builder setStream( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStream(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } stream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return This builder for chaining. */ public Builder clearStream() { @@ -497,26 +545,30 @@ public Builder clearStream() { return this; } /** + * + * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @param value The bytes for stream to set. * @return This builder for chaining. */ - public Builder setStreamBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStreamBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); stream_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchErrorsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchErrorsRequest) private static final com.google.cloud.datastream.v1alpha1.FetchErrorsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(); } @@ -540,27 +592,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchErrorsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchErrorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +627,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java index c082309dc86a..5467845c6e17 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsRequestOrBuilder extends +public interface FetchErrorsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The stream. */ java.lang.String getStream(); /** + * + * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } + * * @return The bytes for stream. */ - com.google.protobuf.ByteString - getStreamBytes(); + com.google.protobuf.ByteString getStreamBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java index a0459471f290..733cc68b94b1 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Response message for a 'FetchErrors' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsResponse} */ -public final class FetchErrorsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchErrorsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchErrorsResponse) FetchErrorsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchErrorsResponse.newBuilder() to construct. private FetchErrorsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchErrorsResponse() { errors_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchErrorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); } public static final int ERRORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -63,6 +85,8 @@ public java.util.List getErrorsList( return errors_; } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -70,11 +94,13 @@ public java.util.List getErrorsList( * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -86,6 +112,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -104,12 +134,12 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +151,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -136,8 +165,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +175,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other = (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) obj; + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other = + (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) obj; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,129 +205,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for a 'FetchErrors' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchErrorsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchErrorsResponse) com.google.cloud.datastream.v1alpha1.FetchErrorsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.class, + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; } @java.lang.Override @@ -336,14 +371,18 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result = new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(this); + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result = + new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.FetchErrorsResponse result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -363,38 +402,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchErrorsRespo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) other); } else { super.mergeFrom(other); return this; @@ -402,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) + return this; if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { @@ -421,9 +462,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRespons errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -455,25 +497,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.Error m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.Error m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,21 +526,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorsBuilder_; + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -512,6 +562,8 @@ public java.util.List getErrorsList( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -526,6 +578,8 @@ public int getErrorsCount() { } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -540,14 +594,15 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -561,6 +616,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -579,6 +636,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -599,14 +658,15 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,14 +680,15 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors( - com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -638,6 +699,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -656,6 +719,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -666,8 +731,7 @@ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -675,6 +739,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -692,6 +758,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -709,39 +777,44 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +822,8 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -756,49 +831,55 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** + * + * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +889,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchErrorsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchErrorsResponse) private static final com.google.cloud.datastream.v1alpha1.FetchErrorsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchErrorsResponse(); } @@ -822,27 +903,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchErrorsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchErrorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +938,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java index 5278eb0604ac..5a82be318050 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsResponseOrBuilder extends +public interface FetchErrorsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -25,6 +44,8 @@ public interface FetchErrorsResponseOrBuilder extends */ com.google.cloud.datastream.v1alpha1.Error getErrors(int index); /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -33,21 +54,24 @@ public interface FetchErrorsResponseOrBuilder extends */ int getErrorsCount(); /** + * + * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java index 05fd2029364a..42ac53eb65eb 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Request message for 'FetchStaticIps' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsRequest} */ -public final class FetchStaticIpsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) FetchStaticIpsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchStaticIpsRequest.newBuilder() to construct. private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchStaticIpsRequest() { name_ = ""; pageToken_ = ""; @@ -26,39 +44,46 @@ private FetchStaticIpsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchStaticIpsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -67,30 +92,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -101,11 +128,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,15 +144,19 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,30 +165,30 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -163,6 +197,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,8 +209,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,8 +232,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -212,19 +245,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = + (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,129 +279,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for 'FetchStaticIps' request.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +420,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; } @java.lang.Override @@ -403,8 +441,11 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest result = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest result = + new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -426,38 +467,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) other); } else { super.mergeFrom(other); return this; @@ -465,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -505,27 +548,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -535,23 +582,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -560,21 +612,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -582,30 +637,41 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -615,18 +681,24 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -634,13 +706,16 @@ public Builder setNameBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -648,27 +723,33 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of Ips to return, will likely not be specified.
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -680,19 +761,21 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -701,21 +784,22 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -723,30 +807,37 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -756,27 +847,31 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -786,12 +881,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) private static final com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(); } @@ -800,27 +895,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -835,6 +930,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java index 945f81603fd0..841fd4dbdaea 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java @@ -1,63 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsRequestOrBuilder extends +public interface FetchStaticIpsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java index 734435b81310..2b5a84beaa4a 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Response message for a 'FetchStaticIps' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsResponse} */ -public final class FetchStaticIpsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) FetchStaticIpsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use FetchStaticIpsResponse.newBuilder() to construct. private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private FetchStaticIpsResponse() { staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -26,61 +44,71 @@ private FetchStaticIpsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new FetchStaticIpsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); } public static final int STATIC_IPS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList staticIps_; /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList - getStaticIpsList() { + public com.google.protobuf.ProtocolStringList getStaticIpsList() { return staticIps_; } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -88,29 +116,35 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString - getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -119,30 +153,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -151,6 +185,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +197,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < staticIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); } @@ -198,17 +232,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = + (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; - if (!getStaticIpsList() - .equals(other.getStaticIpsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -232,129 +265,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for a 'FetchStaticIps' response.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -366,9 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; } @java.lang.Override @@ -387,14 +427,18 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(this); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result = + new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse result) { if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -413,38 +457,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) other); } else { super.mergeFrom(other); return this; @@ -452,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) + return this; if (!other.staticIps_.isEmpty()) { if (staticIps_.isEmpty()) { staticIps_ = other.staticIps_; @@ -494,23 +540,26 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureStaticIpsIsMutable(); - staticIps_.add(s); - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStaticIpsIsMutable(); + staticIps_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -520,44 +569,55 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList staticIps_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStaticIpsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { staticIps_ = new com.google.protobuf.LazyStringArrayList(staticIps_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - public com.google.protobuf.ProtocolStringList - getStaticIpsList() { + public com.google.protobuf.ProtocolStringList getStaticIpsList() { return staticIps_.getUnmodifiableView(); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ public int getStaticIpsCount() { return staticIps_.size(); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ @@ -565,76 +625,90 @@ public java.lang.String getStaticIps(int index) { return staticIps_.get(index); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - public com.google.protobuf.ByteString - getStaticIpsBytes(int index) { + public com.google.protobuf.ByteString getStaticIpsBytes(int index) { return staticIps_.getByteString(index); } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param index The index to set the value at. * @param value The staticIps to set. * @return This builder for chaining. */ - public Builder setStaticIps( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStaticIps(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStaticIpsIsMutable(); staticIps_.set(index, value); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param value The staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIps( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStaticIps(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param values The staticIps to add. * @return This builder for chaining. */ - public Builder addAllStaticIps( - java.lang.Iterable values) { + public Builder addAllStaticIps(java.lang.Iterable values) { ensureStaticIpsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, staticIps_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, staticIps_); onChanged(); return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @return This builder for chaining. */ public Builder clearStaticIps() { @@ -644,17 +718,21 @@ public Builder clearStaticIps() { return this; } /** + * + * *
      * list of static ips by account
      * 
* * repeated string static_ips = 1; + * * @param value The bytes of the staticIps to add. * @return This builder for chaining. */ - public Builder addStaticIpsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); @@ -664,19 +742,21 @@ public Builder addStaticIpsBytes( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -685,21 +765,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -707,30 +788,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -740,27 +828,31 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -770,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) private static final com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse(); } @@ -784,27 +876,27 @@ public static com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchStaticIpsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchStaticIpsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -819,6 +911,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java index 33bd0c524679..b9ab94f98d92 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java @@ -1,72 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsResponseOrBuilder extends +public interface FetchStaticIpsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return A list containing the staticIps. */ - java.util.List - getStaticIpsList(); + java.util.List getStaticIpsList(); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @return The count of staticIps. */ int getStaticIpsCount(); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the element to return. * @return The staticIps at the given index. */ java.lang.String getStaticIps(int index); /** + * + * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; + * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - com.google.protobuf.ByteString - getStaticIpsBytes(int index); + com.google.protobuf.ByteString getStaticIpsBytes(int index); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java index 995158016741..c6eab3f60f80 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Forward SSH Tunnel connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity} */ -public final class ForwardSshTunnelConnectivity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) ForwardSshTunnelConnectivityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ForwardSshTunnelConnectivity.newBuilder() to construct. private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ForwardSshTunnelConnectivity() { hostname_ = ""; username_ = ""; @@ -26,38 +44,42 @@ private ForwardSshTunnelConnectivity() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ForwardSshTunnelConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); } private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; + public enum AuthenticationMethodCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PASSWORD(100), PRIVATE_KEY(101), AUTHENTICATIONMETHOD_NOT_SET(0); private final int value; + private AuthenticationMethodCase(int value) { this.value = value; } @@ -73,32 +95,39 @@ public static AuthenticationMethodCase valueOf(int value) { public static AuthenticationMethodCase forNumber(int value) { switch (value) { - case 100: return PASSWORD; - case 101: return PRIVATE_KEY; - case 0: return AUTHENTICATIONMETHOD_NOT_SET; - default: return null; + case 100: + return PASSWORD; + case 101: + return PRIVATE_KEY; + case 0: + return AUTHENTICATIONMETHOD_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -107,29 +136,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -138,14 +167,18 @@ public java.lang.String getHostname() { } public static final int USERNAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -154,29 +187,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -187,11 +220,14 @@ public java.lang.String getUsername() { public static final int PORT_FIELD_NUMBER = 3; private int port_ = 0; /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -201,22 +237,28 @@ public int getPort() { public static final int PASSWORD_FIELD_NUMBER = 100; /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ public java.lang.String getPassword() { @@ -227,8 +269,7 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -237,23 +278,24 @@ public java.lang.String getPassword() { } } /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -265,22 +307,28 @@ public java.lang.String getPassword() { public static final int PRIVATE_KEY_FIELD_NUMBER = 101; /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ public java.lang.String getPrivateKey() { @@ -291,8 +339,7 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -301,23 +348,24 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -328,6 +376,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +388,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -372,8 +420,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); } if (authenticationMethodCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); @@ -389,28 +436,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = + (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; - if (!getHostname() - .equals(other.getHostname())) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (getPort() - != other.getPort()) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (getPort() != other.getPort()) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 100: - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getPassword().equals(other.getPassword())) return false; break; case 101: - if (!getPrivateKey() - .equals(other.getPrivateKey())) return false; + if (!getPrivateKey().equals(other.getPrivateKey())) return false; break; case 0: default: @@ -450,129 +493,138 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Forward SSH Tunnel connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.class, + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -586,13 +638,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } @@ -607,14 +660,18 @@ public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result = new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result = + new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.hostname_ = hostname_; @@ -627,7 +684,8 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ForwardSshTunnel } } - private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result) { result.authenticationMethodCase_ = authenticationMethodCase_; result.authenticationMethod_ = this.authenticationMethod_; } @@ -636,46 +694,50 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.ForwardSshT public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other) { - if (other == com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other) { + if (other + == com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) + return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -690,21 +752,24 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelCo setPort(other.getPort()); } switch (other.getAuthenticationMethodCase()) { - case PASSWORD: { - authenticationMethodCase_ = 100; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case PRIVATE_KEY: { - authenticationMethodCase_ = 101; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: { - break; - } + case PASSWORD: + { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: + { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -732,39 +797,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - port_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } // case 802 - case 810: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } // case 802 + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -774,12 +845,12 @@ public Builder mergeFrom( } // finally return this; } + private int authenticationMethodCase_ = 0; private java.lang.Object authenticationMethod_; - public AuthenticationMethodCase - getAuthenticationMethodCase() { - return AuthenticationMethodCase.forNumber( - authenticationMethodCase_); + + public AuthenticationMethodCase getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber(authenticationMethodCase_); } public Builder clearAuthenticationMethod() { @@ -793,18 +864,20 @@ public Builder clearAuthenticationMethod() { private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -813,20 +886,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -834,28 +908,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -865,17 +946,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -885,18 +970,20 @@ public Builder setHostnameBytes( private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -905,20 +992,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -926,28 +1014,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -957,17 +1052,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000002; @@ -975,13 +1074,16 @@ public Builder setUsernameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -989,27 +1091,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -1020,11 +1128,14 @@ public Builder clearPort() { } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ @java.lang.Override @@ -1032,11 +1143,14 @@ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ @java.lang.Override @@ -1046,8 +1160,7 @@ public java.lang.String getPassword() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -1058,24 +1171,25 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -1085,28 +1199,35 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1118,17 +1239,21 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; @@ -1137,11 +1262,14 @@ public Builder setPasswordBytes( } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ @java.lang.Override @@ -1149,11 +1277,14 @@ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ @java.lang.Override @@ -1163,8 +1294,7 @@ public java.lang.String getPrivateKey() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -1175,24 +1305,25 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateKeyBytes() { + public com.google.protobuf.ByteString getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -1202,28 +1333,35 @@ public java.lang.String getPrivateKey() { } } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPrivateKey() { @@ -1235,26 +1373,30 @@ public Builder clearPrivateKey() { return this; } /** + * + * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); authenticationMethodCase_ = 101; authenticationMethod_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,41 +1406,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) - private static final com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(); } - public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ForwardSshTunnelConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardSshTunnelConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1310,9 +1454,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java index 0e90d3b7e89c..8765fad1d8e6 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java @@ -1,119 +1,165 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ForwardSshTunnelConnectivityOrBuilder extends +public interface ForwardSshTunnelConnectivityOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ int getPort(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ boolean hasPassword(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the privateKey field is set. */ boolean hasPrivateKey(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The privateKey. */ java.lang.String getPrivateKey(); /** + * + * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString - getPrivateKeyBytes(); + com.google.protobuf.ByteString getPrivateKeyBytes(); - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase(); + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase + getAuthenticationMethodCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java index e3a78892c698..a36eb15fd780 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Google Cloud Storage destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsDestinationConfig} */ -public final class GcsDestinationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsDestinationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsDestinationConfig) GcsDestinationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsDestinationConfig.newBuilder() to construct. private GcsDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsDestinationConfig() { path_ = ""; gcsFileFormat_ = 0; @@ -26,38 +44,42 @@ private GcsDestinationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsDestinationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); } private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; + public enum FileFormatCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { AVRO_FILE_FORMAT(100), JSON_FILE_FORMAT(101), FILEFORMAT_NOT_SET(0); private final int value; + private FileFormatCase(int value) { this.value = value; } @@ -73,32 +95,39 @@ public static FileFormatCase valueOf(int value) { public static FileFormatCase forNumber(int value) { switch (value) { - case 100: return AVRO_FILE_FORMAT; - case 101: return JSON_FILE_FORMAT; - case 0: return FILEFORMAT_NOT_SET; - default: return null; + case 100: + return AVRO_FILE_FORMAT; + case 101: + return JSON_FILE_FORMAT; + case 0: + return FILEFORMAT_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public FileFormatCase - getFileFormatCase() { - return FileFormatCase.forNumber( - fileFormatCase_); + public FileFormatCase getFileFormatCase() { + return FileFormatCase.forNumber(fileFormatCase_); } public static final int PATH_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object path_ = ""; /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The path. */ @java.lang.Override @@ -107,29 +136,29 @@ public java.lang.String getPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; } } /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -140,43 +169,61 @@ public java.lang.String getPath() { public static final int GCS_FILE_FORMAT_FIELD_NUMBER = 2; private int gcsFileFormat_ = 0; /** + * + * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Override @java.lang.Deprecated public int getGcsFileFormatValue() { + @java.lang.Override + @java.lang.Deprecated + public int getGcsFileFormatValue() { return gcsFileFormat_; } /** + * + * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ - @java.lang.Override @java.lang.Deprecated public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = + com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); + return result == null + ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED + : result; } public static final int FILE_ROTATION_MB_FIELD_NUMBER = 3; private int fileRotationMb_ = 0; /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 3; + * * @return The fileRotationMb. */ @java.lang.Override @@ -187,12 +234,15 @@ public int getFileRotationMb() { public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER = 4; private com.google.protobuf.Duration fileRotationInterval_; /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -200,19 +250,26 @@ public boolean hasFileRotationInterval() { return fileRotationInterval_ != null; } /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return The fileRotationInterval. */ @java.lang.Override public com.google.protobuf.Duration getFileRotationInterval() { - return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; + return fileRotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fileRotationInterval_; } /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
@@ -222,16 +279,21 @@ public com.google.protobuf.Duration getFileRotationInterval() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() {
-    return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
+    return fileRotationInterval_ == null
+        ? com.google.protobuf.Duration.getDefaultInstance()
+        : fileRotationInterval_;
   }
 
   public static final int AVRO_FILE_FORMAT_FIELD_NUMBER = 100;
   /**
+   *
+   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -239,21 +301,26 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** + * + * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } /** + * + * *
    * AVRO file format configuration.
    * 
@@ -263,18 +330,21 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } public static final int JSON_FILE_FORMAT_FIELD_NUMBER = 101; /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -282,21 +352,26 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } /** + * + * *
    * JSON file format configuration.
    * 
@@ -306,12 +381,13 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -323,12 +399,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } - if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { + if (gcsFileFormat_ + != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { @@ -355,25 +432,27 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } - if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gcsFileFormat_); + if (gcsFileFormat_ + != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, fileRotationMb_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, fileRotationMb_); } if (fileRotationInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFileRotationInterval()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFileRotationInterval()); } if (fileFormatCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); } if (fileFormatCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -383,32 +462,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsDestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; - if (!getPath() - .equals(other.getPath())) return false; + if (!getPath().equals(other.getPath())) return false; if (gcsFileFormat_ != other.gcsFileFormat_) return false; - if (getFileRotationMb() - != other.getFileRotationMb()) return false; + if (getFileRotationMb() != other.getFileRotationMb()) return false; if (hasFileRotationInterval() != other.hasFileRotationInterval()) return false; if (hasFileRotationInterval()) { - if (!getFileRotationInterval() - .equals(other.getFileRotationInterval())) return false; + if (!getFileRotationInterval().equals(other.getFileRotationInterval())) return false; } if (!getFileFormatCase().equals(other.getFileFormatCase())) return false; switch (fileFormatCase_) { case 100: - if (!getAvroFileFormat() - .equals(other.getAvroFileFormat())) return false; + if (!getAvroFileFormat().equals(other.getAvroFileFormat())) return false; break; case 101: - if (!getJsonFileFormat() - .equals(other.getJsonFileFormat())) return false; + if (!getJsonFileFormat().equals(other.getJsonFileFormat())) return false; break; case 0: default: @@ -452,129 +527,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Google Cloud Storage destination configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsDestinationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GcsDestinationConfig) com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.class, + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -599,9 +681,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; } @java.lang.Override @@ -620,8 +702,11 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result = new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result = + new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -639,21 +724,21 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GcsDestinationCo result.fileRotationMb_ = fileRotationMb_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.fileRotationInterval_ = fileRotationIntervalBuilder_ == null - ? fileRotationInterval_ - : fileRotationIntervalBuilder_.build(); + result.fileRotationInterval_ = + fileRotationIntervalBuilder_ == null + ? fileRotationInterval_ + : fileRotationIntervalBuilder_.build(); } } - private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result) { + private void buildPartialOneofs( + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result) { result.fileFormatCase_ = fileFormatCase_; result.fileFormat_ = this.fileFormat_; - if (fileFormatCase_ == 100 && - avroFileFormatBuilder_ != null) { + if (fileFormatCase_ == 100 && avroFileFormatBuilder_ != null) { result.fileFormat_ = avroFileFormatBuilder_.build(); } - if (fileFormatCase_ == 101 && - jsonFileFormatBuilder_ != null) { + if (fileFormatCase_ == 101 && jsonFileFormatBuilder_ != null) { result.fileFormat_ = jsonFileFormatBuilder_.build(); } } @@ -662,38 +747,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.GcsDestinat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) other); } else { super.mergeFrom(other); return this; @@ -701,7 +787,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) + return this; if (!other.getPath().isEmpty()) { path_ = other.path_; bitField0_ |= 0x00000001; @@ -717,17 +804,20 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConf mergeFileRotationInterval(other.getFileRotationInterval()); } switch (other.getFileFormatCase()) { - case AVRO_FILE_FORMAT: { - mergeAvroFileFormat(other.getAvroFileFormat()); - break; - } - case JSON_FILE_FORMAT: { - mergeJsonFileFormat(other.getJsonFileFormat()); - break; - } - case FILEFORMAT_NOT_SET: { - break; - } + case AVRO_FILE_FORMAT: + { + mergeAvroFileFormat(other.getAvroFileFormat()); + break; + } + case JSON_FILE_FORMAT: + { + mergeJsonFileFormat(other.getJsonFileFormat()); + break; + } + case FILEFORMAT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -755,48 +845,50 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - path_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - gcsFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - fileRotationMb_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - input.readMessage( - getFileRotationIntervalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 802: { - input.readMessage( - getAvroFileFormatFieldBuilder().getBuilder(), - extensionRegistry); - fileFormatCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getJsonFileFormatFieldBuilder().getBuilder(), - extensionRegistry); - fileFormatCase_ = 101; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + gcsFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + fileRotationMb_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getFileRotationIntervalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 802: + { + input.readMessage(getAvroFileFormatFieldBuilder().getBuilder(), extensionRegistry); + fileFormatCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage(getJsonFileFormatFieldBuilder().getBuilder(), extensionRegistry); + fileFormatCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -806,12 +898,12 @@ public Builder mergeFrom( } // finally return this; } + private int fileFormatCase_ = 0; private java.lang.Object fileFormat_; - public FileFormatCase - getFileFormatCase() { - return FileFormatCase.forNumber( - fileFormatCase_); + + public FileFormatCase getFileFormatCase() { + return FileFormatCase.forNumber(fileFormatCase_); } public Builder clearFileFormat() { @@ -825,18 +917,20 @@ public Builder clearFileFormat() { private java.lang.Object path_ = ""; /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); path_ = s; return s; @@ -845,20 +939,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); path_ = b; return b; } else { @@ -866,28 +961,35 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } path_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { @@ -897,17 +999,21 @@ public Builder clearPath() { return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); path_ = value; bitField0_ |= 0x00000001; @@ -917,66 +1023,94 @@ public Builder setPathBytes( private int gcsFileFormat_ = 0; /** + * + * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Override @java.lang.Deprecated public int getGcsFileFormatValue() { + @java.lang.Override + @java.lang.Deprecated + public int getGcsFileFormatValue() { return gcsFileFormat_; } /** + * + * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The enum numeric value on the wire for gcsFileFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setGcsFileFormatValue(int value) { + @java.lang.Deprecated + public Builder setGcsFileFormatValue(int value) { gcsFileFormat_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; + @java.lang.Deprecated + public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = + com.google.cloud.datastream.v1alpha1.GcsFileFormat.forNumber(gcsFileFormat_); + return result == null + ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED + : result; } /** + * + * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @param value The gcsFileFormat to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileFormat value) { + @java.lang.Deprecated + public Builder setGcsFileFormat(com.google.cloud.datastream.v1alpha1.GcsFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -986,30 +1120,39 @@ public Builder setPathBytes( return this; } /** + * + * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearGcsFileFormat() { + @java.lang.Deprecated + public Builder clearGcsFileFormat() { bitField0_ = (bitField0_ & ~0x00000002); gcsFileFormat_ = 0; onChanged(); return this; } - private int fileRotationMb_ ; + private int fileRotationMb_; /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; + * * @return The fileRotationMb. */ @java.lang.Override @@ -1017,27 +1160,33 @@ public int getFileRotationMb() { return fileRotationMb_; } /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; + * * @param value The fileRotationMb to set. * @return This builder for chaining. */ public Builder setFileRotationMb(int value) { - + fileRotationMb_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * The maximum file size to be saved in the bucket.
      * 
* * int32 file_rotation_mb = 3; + * * @return This builder for chaining. */ public Builder clearFileRotationMb() { @@ -1049,36 +1198,49 @@ public Builder clearFileRotationMb() { private com.google.protobuf.Duration fileRotationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileRotationIntervalBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + fileRotationIntervalBuilder_; /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
      * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
      * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return The fileRotationInterval. */ public com.google.protobuf.Duration getFileRotationInterval() { if (fileRotationIntervalBuilder_ == null) { - return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; + return fileRotationInterval_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : fileRotationInterval_; } else { return fileRotationIntervalBuilder_.getMessage(); } } /** + * + * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1100,6 +1262,8 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1107,8 +1271,7 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
-    public Builder setFileRotationInterval(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue) {
       if (fileRotationIntervalBuilder_ == null) {
         fileRotationInterval_ = builderForValue.build();
       } else {
@@ -1119,6 +1282,8 @@ public Builder setFileRotationInterval(
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1128,9 +1293,9 @@ public Builder setFileRotationInterval(
      */
     public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       if (fileRotationIntervalBuilder_ == null) {
-        if (((bitField0_ & 0x00000008) != 0) &&
-          fileRotationInterval_ != null &&
-          fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
+        if (((bitField0_ & 0x00000008) != 0)
+            && fileRotationInterval_ != null
+            && fileRotationInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
           getFileRotationIntervalBuilder().mergeFrom(value);
         } else {
           fileRotationInterval_ = value;
@@ -1143,6 +1308,8 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1161,6 +1328,8 @@ public Builder clearFileRotationInterval() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1174,6 +1343,8 @@ public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() {
       return getFileRotationIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1185,11 +1356,14 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
       if (fileRotationIntervalBuilder_ != null) {
         return fileRotationIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return fileRotationInterval_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
+        return fileRotationInterval_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : fileRotationInterval_;
       }
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1198,27 +1372,36 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getFileRotationIntervalFieldBuilder() {
       if (fileRotationIntervalBuilder_ == null) {
-        fileRotationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getFileRotationInterval(),
-                getParentForChildren(),
-                isClean());
+        fileRotationIntervalBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getFileRotationInterval(), getParentForChildren(), isClean());
         fileRotationInterval_ = null;
       }
       return fileRotationIntervalBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> avroFileFormatBuilder_;
+            com.google.cloud.datastream.v1alpha1.AvroFileFormat,
+            com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder,
+            com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>
+        avroFileFormatBuilder_;
     /**
+     *
+     *
      * 
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -1226,11 +1409,14 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** + * + * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ @java.lang.Override @@ -1248,6 +1434,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1268,6 +1456,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFo return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1286,6 +1476,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1294,10 +1486,14 @@ public Builder setAvroFileFormat( */ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFormat value) { if (avroFileFormatBuilder_ == null) { - if (fileFormatCase_ == 100 && - fileFormat_ != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { - fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) - .mergeFrom(value).buildPartial(); + if (fileFormatCase_ == 100 + && fileFormat_ + != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { + fileFormat_ = + com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder( + (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) + .mergeFrom(value) + .buildPartial(); } else { fileFormat_ = value; } @@ -1313,6 +1509,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFile return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1336,6 +1534,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1346,6 +1546,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1353,7 +1555,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder + getAvroFileFormatOrBuilder() { if ((fileFormatCase_ == 100) && (avroFileFormatBuilder_ != null)) { return avroFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1364,6 +1567,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileF } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1371,14 +1576,19 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileF * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.AvroFileFormat, + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, + com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> getAvroFileFormatFieldBuilder() { if (avroFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 100)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } - avroFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( + avroFileFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.AvroFileFormat, + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, + com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1390,13 +1600,19 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileF } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> jsonFileFormatBuilder_; + com.google.cloud.datastream.v1alpha1.JsonFileFormat, + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> + jsonFileFormatBuilder_; /** + * + * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -1404,11 +1620,14 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** + * + * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ @java.lang.Override @@ -1426,6 +1645,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1446,6 +1667,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFo return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1464,6 +1687,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1472,10 +1697,14 @@ public Builder setJsonFileFormat( */ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFormat value) { if (jsonFileFormatBuilder_ == null) { - if (fileFormatCase_ == 101 && - fileFormat_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { - fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) - .mergeFrom(value).buildPartial(); + if (fileFormatCase_ == 101 + && fileFormat_ + != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { + fileFormat_ = + com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder( + (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) + .mergeFrom(value) + .buildPartial(); } else { fileFormat_ = value; } @@ -1491,6 +1720,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFile return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1514,6 +1745,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1524,6 +1757,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1531,7 +1766,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder + getJsonFileFormatOrBuilder() { if ((fileFormatCase_ == 101) && (jsonFileFormatBuilder_ != null)) { return jsonFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1542,6 +1778,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileF } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1549,14 +1787,19 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileF * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.JsonFileFormat, + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> getJsonFileFormatFieldBuilder() { if (jsonFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 101)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } - jsonFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( + jsonFileFormatBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.JsonFileFormat, + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, + com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_, getParentForChildren(), isClean()); @@ -1566,9 +1809,9 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileF onChanged(); return jsonFileFormatBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1578,12 +1821,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GcsDestinationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GcsDestinationConfig) private static final com.google.cloud.datastream.v1alpha1.GcsDestinationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(); } @@ -1592,27 +1835,27 @@ public static com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsDestinationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsDestinationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1627,6 +1870,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java index 03e30860852f..806c5787eaf0 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java @@ -1,88 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface GcsDestinationConfigOrBuilder extends +public interface GcsDestinationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GcsDestinationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Path inside the Cloud Storage bucket to write data to.
    * 
* * string path = 1; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); /** + * + * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The enum numeric value on the wire for gcsFileFormat. */ - @java.lang.Deprecated int getGcsFileFormatValue(); + @java.lang.Deprecated + int getGcsFileFormatValue(); /** + * + * *
    * File format that data should be written in.
    * Deprecated field - use file_format instead.
    * 
* - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is deprecated. - * See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.datastream.v1alpha1.GcsDestinationConfig.gcs_file_format is + * deprecated. See google/cloud/datastream/v1alpha1/datastream_resources.proto;l=476 * @return The gcsFileFormat. */ - @java.lang.Deprecated com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat(); + @java.lang.Deprecated + com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat(); /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 3; + * * @return The fileRotationMb. */ int getFileRotationMb(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return Whether the fileRotationInterval field is set. */ boolean hasFileRotationInterval(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; + * * @return The fileRotationInterval. */ com.google.protobuf.Duration getFileRotationInterval(); /** + * + * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
@@ -93,24 +135,32 @@ public interface GcsDestinationConfigOrBuilder extends
   com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder();
 
   /**
+   *
+   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return Whether the avroFileFormat field is set. */ boolean hasAvroFileFormat(); /** + * + * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; + * * @return The avroFileFormat. */ com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat(); /** + * + * *
    * AVRO file format configuration.
    * 
@@ -120,24 +170,32 @@ public interface GcsDestinationConfigOrBuilder extends com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder(); /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return Whether the jsonFileFormat field is set. */ boolean hasJsonFileFormat(); /** + * + * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; + * * @return The jsonFileFormat. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat(); /** + * + * *
    * JSON file format configuration.
    * 
@@ -146,5 +204,6 @@ public interface GcsDestinationConfigOrBuilder extends */ com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder(); - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase getFileFormatCase(); + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase + getFileFormatCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java similarity index 63% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java index ef27761a592c..054cf6b25ddf 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java @@ -1,18 +1,37 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * File format in Cloud Storage.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.GcsFileFormat} */ -@java.lang.Deprecated public enum GcsFileFormat - implements com.google.protobuf.ProtocolMessageEnum { +@java.lang.Deprecated +public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified Cloud Storage file format.
    * 
@@ -21,6 +40,8 @@ */ GCS_FILE_FORMAT_UNSPECIFIED(0), /** + * + * *
    * Avro file format
    * 
@@ -32,6 +53,8 @@ ; /** + * + * *
    * Unspecified Cloud Storage file format.
    * 
@@ -40,6 +63,8 @@ */ public static final int GCS_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Avro file format
    * 
@@ -48,7 +73,6 @@ */ public static final int AVRO_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -73,48 +97,49 @@ public static GcsFileFormat valueOf(int value) { */ public static GcsFileFormat forNumber(int value) { switch (value) { - case 0: return GCS_FILE_FORMAT_UNSPECIFIED; - case 1: return AVRO; - default: return null; + case 0: + return GCS_FILE_FORMAT_UNSPECIFIED; + case 1: + return AVRO; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - GcsFileFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GcsFileFormat findValueByNumber(int number) { - return GcsFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GcsFileFormat findValueByNumber(int number) { + return GcsFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final GcsFileFormat[] VALUES = values(); - public static GcsFileFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static GcsFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -130,4 +155,3 @@ private GcsFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.GcsFileFormat) } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java index 871b2fbdfb63..b4f451819a95 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Cloud Storage bucket profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsProfile} */ -public final class GcsProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsProfile) GcsProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsProfile.newBuilder() to construct. private GcsProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsProfile() { bucketName_ = ""; rootPath_ = ""; @@ -26,39 +44,44 @@ private GcsProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsProfile.class, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsProfile.class, + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); } public static final int BUCKET_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object bucketName_ = ""; /** + * + * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketName. */ @java.lang.Override @@ -67,30 +90,30 @@ public java.lang.String getBucketName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; } } /** + * + * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketName. */ @java.lang.Override - public com.google.protobuf.ByteString - getBucketNameBytes() { + public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketName_ = b; return b; } else { @@ -99,14 +122,18 @@ public java.lang.String getBucketName() { } public static final int ROOT_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rootPath_ = ""; /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ @java.lang.Override @@ -115,29 +142,29 @@ public java.lang.String getRootPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; } } /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getRootPathBytes() { + public com.google.protobuf.ByteString getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPath_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getRootPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); } @@ -188,17 +215,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsProfile other = (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; + com.google.cloud.datastream.v1alpha1.GcsProfile other = + (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; - if (!getBucketName() - .equals(other.getBucketName())) return false; - if (!getRootPath() - .equals(other.getRootPath())) return false; + if (!getBucketName().equals(other.getBucketName())) return false; + if (!getRootPath().equals(other.getRootPath())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -219,130 +245,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GcsProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GcsProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Cloud Storage bucket profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GcsProfile) com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GcsProfile.class, com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.GcsProfile.class, + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +385,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; } @java.lang.Override @@ -374,8 +406,11 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.GcsProfile result = new com.google.cloud.datastream.v1alpha1.GcsProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GcsProfile result = + new com.google.cloud.datastream.v1alpha1.GcsProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -394,38 +429,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GcsProfile resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GcsProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile) other); } else { super.mergeFrom(other); return this; @@ -433,7 +469,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) + return this; if (!other.getBucketName().isEmpty()) { bucketName_ = other.bucketName_; bitField0_ |= 0x00000001; @@ -470,22 +507,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - bucketName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - rootPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + bucketName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rootPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -495,23 +535,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object bucketName_ = ""; /** + * + * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketName. */ public java.lang.String getBucketName() { java.lang.Object ref = bucketName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketName_ = s; return s; @@ -520,21 +563,22 @@ public java.lang.String getBucketName() { } } /** + * + * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketName. */ - public com.google.protobuf.ByteString - getBucketNameBytes() { + public com.google.protobuf.ByteString getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketName_ = b; return b; } else { @@ -542,30 +586,37 @@ public java.lang.String getBucketName() { } } /** + * + * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bucketName to set. * @return This builder for chaining. */ - public Builder setBucketName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } bucketName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketName() { @@ -575,18 +626,22 @@ public Builder clearBucketName() { return this; } /** + * + * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for bucketName to set. * @return This builder for chaining. */ - public Builder setBucketNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); bucketName_ = value; bitField0_ |= 0x00000001; @@ -596,18 +651,20 @@ public Builder setBucketNameBytes( private java.lang.Object rootPath_ = ""; /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return The rootPath. */ public java.lang.String getRootPath() { java.lang.Object ref = rootPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; @@ -616,20 +673,21 @@ public java.lang.String getRootPath() { } } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ - public com.google.protobuf.ByteString - getRootPathBytes() { + public com.google.protobuf.ByteString getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rootPath_ = b; return b; } else { @@ -637,28 +695,35 @@ public java.lang.String getRootPath() { } } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @param value The rootPath to set. * @return This builder for chaining. */ - public Builder setRootPath( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRootPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return This builder for chaining. */ public Builder clearRootPath() { @@ -668,26 +733,30 @@ public Builder clearRootPath() { return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @param value The bytes for rootPath to set. * @return This builder for chaining. */ - public Builder setRootPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRootPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rootPath_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -697,12 +766,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GcsProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GcsProfile) private static final com.google.cloud.datastream.v1alpha1.GcsProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GcsProfile(); } @@ -711,27 +780,27 @@ public static com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -746,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java similarity index 60% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java index f4e088925863..887ce584c9bb 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface GcsProfileOrBuilder extends +public interface GcsProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GcsProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketName. */ java.lang.String getBucketName(); /** + * + * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketName. */ - com.google.protobuf.ByteString - getBucketNameBytes(); + com.google.protobuf.ByteString getBucketNameBytes(); /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ java.lang.String getRootPath(); /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The bytes for rootPath. */ - com.google.protobuf.ByteString - getRootPathBytes(); + com.google.protobuf.ByteString getRootPathBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java similarity index 59% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java index f1b678414927..d92d7d5ab015 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java @@ -1,58 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} - */ -public final class GetConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} */ +public final class GetConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) GetConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetConnectionProfileRequest.newBuilder() to construct. private GetConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetConnectionProfileRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the connection profile resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,29 +82,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the connection profile resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other = + (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,125 +179,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetConnectionProfileRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -284,13 +310,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance(); } @@ -305,13 +332,17 @@ public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -322,46 +353,50 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetConnectionPro public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -393,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,22 +450,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -437,20 +479,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -458,28 +503,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -489,26 +545,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the connection profile resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -518,41 +580,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -564,9 +628,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 000000000000..0f795d4a54d1 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetConnectionProfileRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java similarity index 59% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java index 43bbf0f54212..9ebf8377974f 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java @@ -1,58 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} - */ -public final class GetPrivateConnectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} */ +public final class GetPrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) GetPrivateConnectionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPrivateConnectionRequest.newBuilder() to construct. private GetPrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPrivateConnectionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPrivateConnectionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,29 +82,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other = + (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,125 +179,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -284,13 +310,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest + getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance(); } @@ -305,13 +332,17 @@ public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result = new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -322,46 +353,50 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetPrivateConnec public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -393,17 +428,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,22 +450,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -437,20 +479,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -458,28 +503,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -489,26 +545,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -518,41 +580,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) - private static final com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(); } - public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPrivateConnectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPrivateConnectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -564,9 +628,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 000000000000..65bfd55549a3 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetPrivateConnectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java similarity index 63% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java index 4e0532a962e4..85ad53b0b23d 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java @@ -1,62 +1,87 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * route get request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GetRouteRequest} */ -public final class GetRouteRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetRouteRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetRouteRequest) GetRouteRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetRouteRequest.newBuilder() to construct. private GetRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetRouteRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetRouteRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, + com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the Route resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -65,29 +90,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the Route resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -96,6 +123,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -107,8 +135,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -132,15 +159,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetRouteRequest other = (com.google.cloud.datastream.v1alpha1.GetRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.GetRouteRequest other = + (com.google.cloud.datastream.v1alpha1.GetRouteRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,129 +187,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetRouteRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetRouteRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * route get request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GetRouteRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetRouteRequest) com.google.cloud.datastream.v1alpha1.GetRouteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, + com.google.cloud.datastream.v1alpha1.GetRouteRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetRouteRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +325,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; } @java.lang.Override @@ -313,8 +346,11 @@ public com.google.cloud.datastream.v1alpha1.GetRouteRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetRouteRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetRouteRequest result = new com.google.cloud.datastream.v1alpha1.GetRouteRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GetRouteRequest result = + new com.google.cloud.datastream.v1alpha1.GetRouteRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -330,38 +366,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetRouteRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetRouteRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetRouteRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetRouteRequest) other); } else { super.mergeFrom(other); return this; @@ -369,7 +406,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -401,17 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -421,22 +461,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -445,20 +490,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -466,28 +514,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -497,26 +556,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the Route resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -526,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetRouteRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetRouteRequest) private static final com.google.cloud.datastream.v1alpha1.GetRouteRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetRouteRequest(); } @@ -540,27 +605,27 @@ public static com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRouteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRouteRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -575,6 +640,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java new file mode 100644 index 000000000000..6d0de9d48f68 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetRouteRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java similarity index 61% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java index c03064e894e7..c918a7be167f 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java @@ -1,58 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} - */ -public final class GetStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} */ +public final class GetStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GetStreamRequest) GetStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetStreamRequest.newBuilder() to construct. private GetStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetStreamRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, + com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. The name of the stream resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -61,29 +82,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the stream resource to get.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -92,6 +115,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -103,8 +127,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -128,15 +151,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GetStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GetStreamRequest other = (com.google.cloud.datastream.v1alpha1.GetStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.GetStreamRequest other = + (com.google.cloud.datastream.v1alpha1.GetStreamRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -156,125 +179,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.GetStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.GetStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.GetStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.GetStreamRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.GetStreamRequest) com.google.cloud.datastream.v1alpha1.GetStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, + com.google.cloud.datastream.v1alpha1.GetStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.GetStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -284,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; } @java.lang.Override @@ -305,8 +331,11 @@ public com.google.cloud.datastream.v1alpha1.GetStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GetStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.GetStreamRequest result = new com.google.cloud.datastream.v1alpha1.GetStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.GetStreamRequest result = + new com.google.cloud.datastream.v1alpha1.GetStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,38 +351,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.GetStreamRequest public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.GetStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.GetStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.GetStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -361,7 +391,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -393,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,22 +446,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -437,20 +475,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -458,28 +499,39 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { @@ -489,26 +541,32 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. The name of the stream resource to get.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -518,12 +576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.GetStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.GetStreamRequest) private static final com.google.cloud.datastream.v1alpha1.GetStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.GetStreamRequest(); } @@ -532,27 +590,27 @@ public static com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -567,6 +625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java new file mode 100644 index 000000000000..af6e5e3a43aa --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java index 3fb9dc226af0..6984cbf79155 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * JSON file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.JsonFileFormat} */ -public final class JsonFileFormat extends - com.google.protobuf.GeneratedMessageV3 implements +public final class JsonFileFormat extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.JsonFileFormat) JsonFileFormatOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use JsonFileFormat.newBuilder() to construct. private JsonFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private JsonFileFormat() { schemaFileFormat_ = 0; compression_ = 0; @@ -26,39 +44,43 @@ private JsonFileFormat() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new JsonFileFormat(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); } /** + * + * *
    * Json file compression.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression} */ - public enum JsonCompression - implements com.google.protobuf.ProtocolMessageEnum { + public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified json file compression.
      * 
@@ -67,6 +89,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -75,6 +99,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -86,6 +112,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -94,6 +122,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -102,6 +132,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -110,7 +142,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -135,40 +166,45 @@ public static JsonCompression valueOf(int value) { */ public static JsonCompression forNumber(int value) { switch (value) { - case 0: return JSON_COMPRESSION_UNSPECIFIED; - case 1: return NO_COMPRESSION; - case 2: return GZIP; - default: return null; + case 0: + return JSON_COMPRESSION_UNSPECIFIED; + case 1: + return NO_COMPRESSION; + case 2: + return GZIP; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - JsonCompression> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JsonCompression findValueByNumber(int number) { - return JsonCompression.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JsonCompression findValueByNumber(int number) { + return JsonCompression.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor() + .getEnumTypes() + .get(0); } private static final JsonCompression[] VALUES = values(); @@ -176,8 +212,7 @@ public JsonCompression findValueByNumber(int number) { public static JsonCompression valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -197,56 +232,79 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int schemaFileFormat_ = 0; /** + * + * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override public int getSchemaFileFormatValue() { + @java.lang.Override + public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** + * + * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The schemaFileFormat. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { + com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = + com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED + : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_ = 0; /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override public int getCompressionValue() { + @java.lang.Override + public int getCompressionValue() { return compression_; } /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * * @return The compression. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); + return result == null + ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,12 +316,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (schemaFileFormat_ + != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED + .getNumber()) { output.writeEnum(1, schemaFileFormat_); } - if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + if (compression_ + != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression + .JSON_COMPRESSION_UNSPECIFIED + .getNumber()) { output.writeEnum(2, compression_); } getUnknownFields().writeTo(output); @@ -275,13 +337,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, schemaFileFormat_); + if (schemaFileFormat_ + != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, schemaFileFormat_); } - if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, compression_); + if (compression_ + != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression + .JSON_COMPRESSION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compression_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -291,12 +356,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.JsonFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.JsonFileFormat other = (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; + com.google.cloud.datastream.v1alpha1.JsonFileFormat other = + (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; if (schemaFileFormat_ != other.schemaFileFormat_) return false; if (compression_ != other.compression_) return false; @@ -321,129 +387,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.JsonFileFormat parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.JsonFileFormat prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * JSON file format configuration.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.JsonFileFormat} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.JsonFileFormat) com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); + com.google.cloud.datastream.v1alpha1.JsonFileFormat.class, + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; } @java.lang.Override @@ -475,8 +547,11 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat buildPartial() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat result = new com.google.cloud.datastream.v1alpha1.JsonFileFormat(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.JsonFileFormat result = + new com.google.cloud.datastream.v1alpha1.JsonFileFormat(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -495,38 +570,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.JsonFileFormat r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.JsonFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.JsonFileFormat)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.JsonFileFormat) other); } else { super.mergeFrom(other); return this; @@ -534,7 +610,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.JsonFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) + return this; if (other.schemaFileFormat_ != 0) { setSchemaFileFormatValue(other.getSchemaFileFormatValue()); } @@ -567,22 +644,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: { - schemaFileFormat_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - compression_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 8: + { + schemaFileFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + compression_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -592,26 +672,34 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private int schemaFileFormat_ = 0; /** + * + * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The enum numeric value on the wire for schemaFileFormat. */ - @java.lang.Override public int getSchemaFileFormatValue() { + @java.lang.Override + public int getSchemaFileFormatValue() { return schemaFileFormat_; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @param value The enum numeric value on the wire for schemaFileFormat to set. * @return This builder for chaining. */ @@ -622,28 +710,38 @@ public Builder setSchemaFileFormatValue(int value) { return this; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The schemaFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = + com.google.cloud.datastream.v1alpha1.SchemaFileFormat.forNumber(schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED + : result; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @param value The schemaFileFormat to set. * @return This builder for chaining. */ - public Builder setSchemaFileFormat(com.google.cloud.datastream.v1alpha1.SchemaFileFormat value) { + public Builder setSchemaFileFormat( + com.google.cloud.datastream.v1alpha1.SchemaFileFormat value) { if (value == null) { throw new NullPointerException(); } @@ -653,11 +751,14 @@ public Builder setSchemaFileFormat(com.google.cloud.datastream.v1alpha1.SchemaFi return this; } /** + * + * *
      * The schema file format along JSON data files.
      * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return This builder for chaining. */ public Builder clearSchemaFileFormat() { @@ -669,22 +770,31 @@ public Builder clearSchemaFileFormat() { private int compression_ = 0; /** + * + * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * + * * @return The enum numeric value on the wire for compression. */ - @java.lang.Override public int getCompressionValue() { + @java.lang.Override + public int getCompressionValue() { return compression_; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * + * * @param value The enum numeric value on the wire for compression to set. * @return This builder for chaining. */ @@ -695,28 +805,41 @@ public Builder setCompressionValue(int value) { return this; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * + * * @return The compression. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber(compression_); - return result == null ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.forNumber( + compression_); + return result == null + ? com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.UNRECOGNIZED + : result; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * + * * @param value The compression to set. * @return This builder for chaining. */ - public Builder setCompression(com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression value) { + public Builder setCompression( + com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression value) { if (value == null) { throw new NullPointerException(); } @@ -726,11 +849,15 @@ public Builder setCompression(com.google.cloud.datastream.v1alpha1.JsonFileForma return this; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* - * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * + * * @return This builder for chaining. */ public Builder clearCompression() { @@ -739,9 +866,9 @@ public Builder clearCompression() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -751,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.JsonFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.JsonFileFormat) private static final com.google.cloud.datastream.v1alpha1.JsonFileFormat DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.JsonFileFormat(); } @@ -765,27 +892,27 @@ public static com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JsonFileFormat parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JsonFileFormat parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -800,6 +927,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java index 695c2e7417b0..ec2d9fa339e7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java @@ -1,46 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface JsonFileFormatOrBuilder extends +public interface JsonFileFormatOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.JsonFileFormat) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The enum numeric value on the wire for schemaFileFormat. */ int getSchemaFileFormatValue(); /** + * + * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; + * * @return The schemaFileFormat. */ com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat(); /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** + * + * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; + * * @return The compression. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java index b651859dabe6..6b0a2d62baf3 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} - */ -public final class ListConnectionProfilesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ +public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -24,38 +38,45 @@ private ListConnectionProfilesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,6 +120,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -104,6 +129,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +138,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -123,6 +152,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +161,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -147,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -165,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -181,29 +215,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -212,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -228,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -259,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -320,23 +357,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,125 +397,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,14 +534,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + .getDefaultInstance(); } @java.lang.Override @@ -517,13 +557,17 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest build( @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result = + new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -546,46 +590,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionPr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +684,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +730,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +759,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -720,28 +783,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -751,17 +825,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,8 +849,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -778,6 +860,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -785,6 +868,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -792,17 +877,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -810,6 +898,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -821,6 +910,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -829,13 +920,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -844,6 +935,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -852,15 +945,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -868,6 +960,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -876,18 +970,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -896,6 +994,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,6 +1004,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -913,12 +1014,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -928,18 +1031,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -948,20 +1053,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -969,28 +1075,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1000,17 +1113,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1020,18 +1137,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1040,20 +1159,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1061,28 +1181,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1092,26 +1219,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,41 +1252,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) - private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1167,9 +1300,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java index da42c046b818..d565450169f7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesRequestOrBuilder extends +public interface ListConnectionProfilesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -35,11 +62,14 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -60,48 +93,58 @@ public interface ListConnectionProfilesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java index ac91203bcf1f..0f74056c31af 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} - */ -public final class ListConnectionProfilesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} */ +public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -23,100 +38,123 @@ private ListConnectionProfilesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionProfilesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); } public static final int CONNECTION_PROFILES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List connectionProfiles_; + private java.util.List + connectionProfiles_; /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ @java.lang.Override - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { return connectionProfiles_; } /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getConnectionProfilesOrBuilderList() { return connectionProfiles_; } /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ @java.lang.Override public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index) { return connectionProfiles_.get(index); } /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfilesOrBuilder(int index) { return connectionProfiles_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -195,20 +242,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -241,8 +290,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connectionProfiles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connectionProfiles_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectionProfiles_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -263,19 +312,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList() - .equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,125 +350,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,14 +492,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + .getDefaultInstance(); } @java.lang.Override @@ -461,14 +515,18 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse build @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(this); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result = + new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -485,7 +543,8 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -496,46 +555,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListConnectionPr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other) { + if (other + == com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + .getDefaultInstance()) return this; if (connectionProfilesBuilder_ == null) { if (!other.connectionProfiles_.isEmpty()) { if (connectionProfiles_.isEmpty()) { @@ -554,9 +618,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListConnectionProf connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectionProfilesFieldBuilder() : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectionProfilesFieldBuilder() + : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -603,36 +668,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.ConnectionProfile m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), - extensionRegistry); - if (connectionProfilesBuilder_ == null) { - ensureConnectionProfilesIsMutable(); - connectionProfiles_.add(m); - } else { - connectionProfilesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.ConnectionProfile m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry); + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(m); + } else { + connectionProfilesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,28 +711,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List connectionProfiles_ = - java.util.Collections.emptyList(); + private java.util.List + connectionProfiles_ = java.util.Collections.emptyList(); + private void ensureConnectionProfilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(connectionProfiles_); + connectionProfiles_ = + new java.util.ArrayList( + connectionProfiles_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfilesBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + connectionProfilesBuilder_; /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public java.util.List getConnectionProfilesList() { + public java.util.List + getConnectionProfilesList() { if (connectionProfilesBuilder_ == null) { return java.util.Collections.unmodifiableList(connectionProfiles_); } else { @@ -671,11 +751,14 @@ public java.util.List ge } } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public int getConnectionProfilesCount() { if (connectionProfilesBuilder_ == null) { @@ -685,11 +768,14 @@ public int getConnectionProfilesCount() { } } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -699,11 +785,14 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -720,11 +809,14 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -738,13 +830,17 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public Builder addConnectionProfiles(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder addConnectionProfiles( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,11 +854,14 @@ public Builder addConnectionProfiles(com.google.cloud.datastream.v1alpha1.Connec return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -779,11 +878,14 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder addConnectionProfiles( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -797,11 +899,14 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -815,18 +920,21 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder addAllConnectionProfiles( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -834,11 +942,14 @@ public Builder addAllConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder clearConnectionProfiles() { if (connectionProfilesBuilder_ == null) { @@ -851,11 +962,14 @@ public Builder clearConnectionProfiles() { return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ public Builder removeConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -868,39 +982,49 @@ public Builder removeConnectionProfiles(int index) { return this; } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfilesBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + getConnectionProfilesBuilder(int index) { return getConnectionProfilesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfilesOrBuilder(int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); } else { + return connectionProfiles_.get(index); + } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -908,45 +1032,62 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec } } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + addConnectionProfilesBuilder() { + return getConnectionProfilesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder( - int index) { - return getConnectionProfilesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + addConnectionProfilesBuilder(int index) { + return getConnectionProfilesFieldBuilder() + .addBuilder( + index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** + * + * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -958,19 +1099,21 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnect private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -979,21 +1122,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1001,30 +1145,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,18 +1185,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1053,42 +1208,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1096,76 +1261,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1175,26 +1354,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,41 +1387,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) - private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse(); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionProfilesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionProfilesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,9 +1435,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java index bb524cd9a04b..e95e734c542a 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesResponseOrBuilder extends +public interface ListConnectionProfilesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - java.util.List + java.util.List getConnectionProfilesList(); /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index); /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ int getConnectionProfilesCount(); /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** + * + * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; + * */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java index b9570428354c..ead165dad457 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} - */ -public final class ListPrivateConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ +public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) ListPrivateConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsRequest.newBuilder() to construct. private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPrivateConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -24,38 +38,45 @@ private ListPrivateConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPrivateConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,6 +120,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -105,6 +130,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -113,9 +139,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -125,6 +154,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -133,14 +163,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -150,16 +181,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -168,14 +198,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -184,29 +218,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -215,14 +249,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -231,29 +269,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -262,6 +300,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +312,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -303,8 +341,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -323,23 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -367,125 +400,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -499,14 +537,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + .getDefaultInstance(); } @java.lang.Override @@ -520,13 +560,17 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest build( @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result = + new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -549,46 +593,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConne public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -638,37 +687,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -678,22 +733,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -702,20 +762,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -723,28 +786,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -754,17 +828,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -772,8 +852,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -782,6 +864,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -789,6 +872,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -797,17 +882,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -816,6 +904,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -827,6 +916,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -836,13 +927,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -851,6 +942,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -860,15 +953,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -876,6 +968,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -885,18 +979,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -906,6 +1004,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -915,6 +1014,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -924,12 +1025,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -939,18 +1042,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -959,20 +1064,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -980,28 +1086,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1011,17 +1124,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1031,18 +1148,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1051,20 +1170,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1072,28 +1192,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1103,26 +1230,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1132,41 +1263,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) - private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1178,9 +1311,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java index 398e192725e9..723a51d328db 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsRequestOrBuilder extends +public interface ListPrivateConnectionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -36,11 +63,14 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -63,48 +96,58 @@ public interface ListPrivateConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java index 7cc523310881..4d0d3fc1ba44 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java @@ -1,20 +1,35 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} - */ -public final class ListPrivateConnectionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} */ +public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) ListPrivateConnectionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsResponse.newBuilder() to construct. - private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPrivateConnectionsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPrivateConnectionsResponse() { privateConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -23,100 +38,123 @@ private ListPrivateConnectionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPrivateConnectionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); } public static final int PRIVATE_CONNECTIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") - private java.util.List privateConnections_; + private java.util.List + privateConnections_; /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ @java.lang.Override - public java.util.List getPrivateConnectionsList() { + public java.util.List + getPrivateConnectionsList() { return privateConnections_; } /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getPrivateConnectionsOrBuilderList() { return privateConnections_; } /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ @java.lang.Override public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index) { return privateConnections_.get(index); } /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder + getPrivateConnectionsOrBuilder(int index) { return privateConnections_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +163,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,37 +195,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -195,20 +242,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +270,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < privateConnections_.size(); i++) { output.writeMessage(1, privateConnections_.get(i)); } @@ -241,8 +290,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < privateConnections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, privateConnections_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, privateConnections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -263,19 +312,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; - if (!getPrivateConnectionsList() - .equals(other.getPrivateConnectionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,125 +350,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,14 +492,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + .getDefaultInstance(); } @java.lang.Override @@ -461,14 +515,18 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse build @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(this); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result = + new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -485,7 +543,8 @@ private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.Lis result.unreachable_ = unreachable_; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -496,46 +555,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListPrivateConne public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other) { + if (other + == com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + .getDefaultInstance()) return this; if (privateConnectionsBuilder_ == null) { if (!other.privateConnections_.isEmpty()) { if (privateConnections_.isEmpty()) { @@ -554,9 +618,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListPrivateConnect privateConnectionsBuilder_ = null; privateConnections_ = other.privateConnections_; bitField0_ = (bitField0_ & ~0x00000001); - privateConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPrivateConnectionsFieldBuilder() : null; + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPrivateConnectionsFieldBuilder() + : null; } else { privateConnectionsBuilder_.addAllMessages(other.privateConnections_); } @@ -603,36 +668,40 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.PrivateConnection m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), - extensionRegistry); - if (privateConnectionsBuilder_ == null) { - ensurePrivateConnectionsIsMutable(); - privateConnections_.add(m); - } else { - privateConnectionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.PrivateConnection m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), + extensionRegistry); + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(m); + } else { + privateConnectionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,28 +711,39 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private java.util.List privateConnections_ = - java.util.Collections.emptyList(); + private java.util.List + privateConnections_ = java.util.Collections.emptyList(); + private void ensurePrivateConnectionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - privateConnections_ = new java.util.ArrayList(privateConnections_); + privateConnections_ = + new java.util.ArrayList( + privateConnections_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> privateConnectionsBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + privateConnectionsBuilder_; /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public java.util.List getPrivateConnectionsList() { + public java.util.List + getPrivateConnectionsList() { if (privateConnectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(privateConnections_); } else { @@ -671,11 +751,14 @@ public java.util.List ge } } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public int getPrivateConnectionsCount() { if (privateConnectionsBuilder_ == null) { @@ -685,11 +768,14 @@ public int getPrivateConnectionsCount() { } } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -699,11 +785,14 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti } } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -720,11 +809,14 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -738,13 +830,17 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public Builder addPrivateConnections(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder addPrivateConnections( + com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -758,11 +854,14 @@ public Builder addPrivateConnections(com.google.cloud.datastream.v1alpha1.Privat return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -779,11 +878,14 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder addPrivateConnections( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -797,11 +899,14 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -815,18 +920,21 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder addAllPrivateConnections( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (privateConnectionsBuilder_ == null) { ensurePrivateConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, privateConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); onChanged(); } else { privateConnectionsBuilder_.addAllMessages(values); @@ -834,11 +942,14 @@ public Builder addAllPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder clearPrivateConnections() { if (privateConnectionsBuilder_ == null) { @@ -851,11 +962,14 @@ public Builder clearPrivateConnections() { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ public Builder removePrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -868,39 +982,49 @@ public Builder removePrivateConnections(int index) { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionsBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder + getPrivateConnectionsBuilder(int index) { return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder + getPrivateConnectionsOrBuilder(int index) { if (privateConnectionsBuilder_ == null) { - return privateConnections_.get(index); } else { + return privateConnections_.get(index); + } else { return privateConnectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public java.util.List - getPrivateConnectionsOrBuilderList() { + public java.util.List + getPrivateConnectionsOrBuilderList() { if (privateConnectionsBuilder_ != null) { return privateConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -908,45 +1032,62 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat } } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder() { - return getPrivateConnectionsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder + addPrivateConnectionsBuilder() { + return getPrivateConnectionsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder( - int index) { - return getPrivateConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder + addPrivateConnectionsBuilder(int index) { + return getPrivateConnectionsFieldBuilder() + .addBuilder( + index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** + * + * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - public java.util.List - getPrivateConnectionsBuilderList() { + public java.util.List + getPrivateConnectionsBuilderList() { return getPrivateConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> getPrivateConnectionsFieldBuilder() { if (privateConnectionsBuilder_ == null) { - privateConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( + privateConnectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnection, + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, + com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( privateConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -958,19 +1099,21 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivate private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -979,21 +1122,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1001,30 +1145,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,18 +1185,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1053,42 +1208,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1096,76 +1261,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1175,26 +1354,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,41 +1387,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) - private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse(); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPrivateConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPrivateConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1250,9 +1435,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java index 170ace8266a0..98cb0470d9f0 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java @@ -1,116 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsResponseOrBuilder extends +public interface ListPrivateConnectionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - java.util.List + java.util.List getPrivateConnectionsList(); /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index); /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ int getPrivateConnectionsCount(); /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ - java.util.List + java.util.List getPrivateConnectionsOrBuilderList(); /** + * + * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; + * */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java index eb45fbbc1724..4ee1825e8b73 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * route list request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesRequest} */ -public final class ListRoutesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRoutesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesRequest) ListRoutesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRoutesRequest.newBuilder() to construct. private ListRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -28,38 +46,45 @@ private ListRoutesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRoutesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -68,29 +93,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -101,6 +128,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -109,6 +138,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -117,9 +147,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -129,6 +162,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,14 +171,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -154,16 +189,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -172,14 +206,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -188,29 +226,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -219,14 +257,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -235,29 +277,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -266,6 +308,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +320,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -307,8 +349,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -327,23 +368,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = + (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -371,129 +408,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListRoutesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListRoutesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * route list request
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListRoutesRequest) com.google.cloud.datastream.v1alpha1.ListRoutesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, + com.google.cloud.datastream.v1alpha1.ListRoutesRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListRoutesRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -507,9 +551,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; } @java.lang.Override @@ -528,8 +572,11 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListRoutesRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListRoutesRequest result = new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ListRoutesRequest result = + new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -557,38 +604,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListRoutesReques public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListRoutesRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesRequest) other); } else { super.mergeFrom(other); return this; @@ -596,7 +644,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -646,37 +695,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -686,22 +741,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -710,20 +770,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -731,28 +794,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -762,17 +836,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -780,8 +860,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -790,6 +872,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -797,6 +880,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -805,17 +890,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -824,6 +912,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -835,6 +924,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -844,13 +935,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -859,6 +950,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -868,15 +961,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -884,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -893,18 +987,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -914,6 +1012,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -923,6 +1022,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -932,12 +1033,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -947,18 +1050,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -967,20 +1072,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -988,28 +1094,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1019,17 +1132,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1039,18 +1156,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1059,20 +1178,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1080,28 +1200,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1111,26 +1238,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1140,12 +1271,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListRoutesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListRoutesRequest) private static final com.google.cloud.datastream.v1alpha1.ListRoutesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(); } @@ -1154,27 +1285,27 @@ public static com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,6 +1320,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java index 992784abb2fb..0e5b922bfe95 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesRequestOrBuilder extends +public interface ListRoutesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -36,11 +63,14 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -63,48 +96,58 @@ public interface ListRoutesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java index c49f73030006..5f1087e8b0cc 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * route list response
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesResponse} */ -public final class ListRoutesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListRoutesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesResponse) ListRoutesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListRoutesResponse.newBuilder() to construct. private ListRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListRoutesResponse() { routes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,33 +45,37 @@ private ListRoutesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListRoutesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); } public static final int ROUTES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List routes_; /** + * + * *
    * List of Routes.
    * 
@@ -65,6 +87,8 @@ public java.util.List getRoutesList( return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -72,11 +96,13 @@ public java.util.List getRoutesList( * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -88,6 +114,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -99,6 +127,8 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -106,21 +136,24 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index) { return routes_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -129,30 +162,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -161,37 +194,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -199,20 +241,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -245,8 +289,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -267,19 +310,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = + (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; - if (!getRoutesList() - .equals(other.getRoutesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getRoutesList().equals(other.getRoutesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,129 +348,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListRoutesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListRoutesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * route list response
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListRoutesResponse) com.google.cloud.datastream.v1alpha1.ListRoutesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListRoutesResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +496,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; } @java.lang.Override @@ -469,14 +517,18 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListRoutesResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListRoutesResponse result = new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(this); + com.google.cloud.datastream.v1alpha1.ListRoutesResponse result = + new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListRoutesResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.ListRoutesResponse result) { if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -504,38 +556,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListRoutesRespon public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListRoutesResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesResponse)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListRoutesResponse) other); } else { super.mergeFrom(other); return this; @@ -543,7 +596,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) + return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -562,9 +616,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRoutesFieldBuilder() : null; + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRoutesFieldBuilder() + : null; } else { routesBuilder_.addAllMessages(other.routes_); } @@ -611,36 +666,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.Route m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Route.parser(), - extensionRegistry); - if (routesBuilder_ == null) { - ensureRoutesIsMutable(); - routes_.add(m); - } else { - routesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.Route m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry); + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(m); + } else { + routesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -650,21 +708,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List routes_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureRoutesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { routes_ = new java.util.ArrayList(routes_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> routesBuilder_; + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + routesBuilder_; /** + * + * *
      * List of Routes.
      * 
@@ -679,6 +744,8 @@ public java.util.List getRoutesList( } } /** + * + * *
      * List of Routes.
      * 
@@ -693,6 +760,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -707,14 +776,15 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { } } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder setRoutes( - int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder setRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -728,6 +798,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -746,6 +818,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -766,14 +840,15 @@ public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes( - int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder addRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +862,15 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes( - com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -805,6 +881,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -823,6 +901,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -833,8 +913,7 @@ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, routes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); @@ -842,6 +921,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -859,6 +940,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -876,39 +959,44 @@ public Builder removeRoutes(int index) { return this; } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder(int index) { return getRoutesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index) { if (routesBuilder_ == null) { - return routes_.get(index); } else { + return routes_.get(index); + } else { return routesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesOrBuilderList() { + public java.util.List + getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { @@ -916,6 +1004,8 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -923,42 +1013,48 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + return getRoutesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder( - int index) { - return getRoutesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder(int index) { + return getRoutesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** + * + * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesBuilderList() { + public java.util.List + getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { - routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( - routes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + routesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Route, + com.google.cloud.datastream.v1alpha1.Route.Builder, + com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( + routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); routes_ = null; } return routesBuilder_; @@ -966,19 +1062,21 @@ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -987,21 +1085,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1009,30 +1108,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1042,18 +1148,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1061,42 +1171,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1104,76 +1224,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1183,26 +1317,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1212,12 +1350,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListRoutesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListRoutesResponse) private static final com.google.cloud.datastream.v1alpha1.ListRoutesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListRoutesResponse(); } @@ -1226,27 +1364,27 @@ public static com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRoutesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRoutesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,6 +1399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java index 159ae49cda6c..60a9d2d0ebde 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesResponseOrBuilder extends +public interface ListRoutesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List - getRoutesList(); + java.util.List getRoutesList(); /** + * + * *
    * List of Routes.
    * 
@@ -25,6 +44,8 @@ public interface ListRoutesResponseOrBuilder extends */ com.google.cloud.datastream.v1alpha1.Route getRoutes(int index); /** + * + * *
    * List of Routes.
    * 
@@ -33,84 +54,102 @@ public interface ListRoutesResponseOrBuilder extends */ int getRoutesCount(); /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List + java.util.List getRoutesOrBuilderList(); /** + * + * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java index cf1cc2afc422..ce4fcb43f512 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} - */ -public final class ListStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} */ +public final class ListStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsRequest) ListStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamsRequest.newBuilder() to construct. private ListStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamsRequest() { parent_ = ""; pageToken_ = ""; @@ -24,38 +38,45 @@ private ListStreamsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -64,29 +85,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -97,6 +120,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -104,6 +129,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -112,9 +138,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -123,6 +152,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -131,14 +161,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -147,16 +178,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -165,14 +195,18 @@ public java.lang.String getPageToken() { } public static final int FILTER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -181,29 +215,29 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -212,14 +246,18 @@ public java.lang.String getFilter() { } public static final int ORDER_BY_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object orderBy_ = ""; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -228,29 +266,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -259,6 +297,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +338,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -320,23 +357,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = + (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,125 +397,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListStreamsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListStreamsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListStreamsRequest) com.google.cloud.datastream.v1alpha1.ListStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, + com.google.cloud.datastream.v1alpha1.ListStreamsRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListStreamsRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +532,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; } @java.lang.Override @@ -517,8 +553,11 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListStreamsRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.ListStreamsRequest result = new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ListStreamsRequest result = + new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -546,38 +585,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListStreamsReque public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListStreamsRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsRequest) other); } else { super.mergeFrom(other); return this; @@ -585,7 +625,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -635,37 +676,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -675,22 +722,27 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -699,20 +751,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -720,28 +775,39 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { @@ -751,17 +817,23 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent that owns the collection of streams.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -769,8 +841,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -778,6 +852,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -785,6 +860,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -792,17 +869,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -810,6 +890,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -821,6 +902,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -829,13 +912,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -844,6 +927,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -852,15 +937,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -868,6 +952,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -876,18 +962,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -896,6 +986,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,6 +996,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -913,12 +1006,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -928,18 +1023,20 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -948,20 +1045,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -969,28 +1067,35 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } filter_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { @@ -1000,17 +1105,21 @@ public Builder clearFilter() { return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); filter_ = value; bitField0_ |= 0x00000008; @@ -1020,18 +1129,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1040,20 +1151,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1061,28 +1173,35 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { @@ -1092,26 +1211,30 @@ public Builder clearOrderBy() { return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); orderBy_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +1244,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListStreamsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListStreamsRequest) private static final com.google.cloud.datastream.v1alpha1.ListStreamsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(); } @@ -1135,27 +1258,27 @@ public static com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1170,6 +1293,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java index a4c32d0969eb..f6d4220d5ec5 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsRequestOrBuilder extends +public interface ListStreamsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent that owns the collection of streams.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -35,11 +62,14 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -60,48 +93,58 @@ public interface ListStreamsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java index 75292376feb1..b624888139bb 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} - */ -public final class ListStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} */ +public final class ListStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsResponse) ListStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListStreamsResponse.newBuilder() to construct. private ListStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListStreamsResponse() { streams_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -23,33 +37,37 @@ private ListStreamsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListStreamsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); } public static final int STREAMS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List streams_; /** + * + * *
    * List of streams
    * 
@@ -61,6 +79,8 @@ public java.util.List getStreamsLis return streams_; } /** + * + * *
    * List of streams
    * 
@@ -68,11 +88,13 @@ public java.util.List getStreamsLis * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** + * + * *
    * List of streams
    * 
@@ -84,6 +106,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -95,6 +119,8 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -102,21 +128,24 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index) { return streams_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -125,30 +154,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -157,37 +186,46 @@ public java.lang.String getNextPageToken() { } public static final int UNREACHABLE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -195,20 +233,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -241,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -263,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = + (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; - if (!getStreamsList() - .equals(other.getStreamsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getStreamsList().equals(other.getStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,125 +340,128 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListStreamsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ListStreamsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListStreamsResponse) com.google.cloud.datastream.v1alpha1.ListStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, + com.google.cloud.datastream.v1alpha1.ListStreamsResponse.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ListStreamsResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -440,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; } @java.lang.Override @@ -461,14 +501,18 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsResponse build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ListStreamsResponse buildPartial() { - com.google.cloud.datastream.v1alpha1.ListStreamsResponse result = new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(this); + com.google.cloud.datastream.v1alpha1.ListStreamsResponse result = + new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ListStreamsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.ListStreamsResponse result) { if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -496,38 +540,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ListStreamsRespo public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ListStreamsResponse) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsResponse)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ListStreamsResponse) other); } else { super.mergeFrom(other); return this; @@ -535,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) + return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -554,9 +600,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRespons streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStreamsFieldBuilder() : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStreamsFieldBuilder() + : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -603,36 +650,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.Stream m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Stream.parser(), - extensionRegistry); - if (streamsBuilder_ == null) { - ensureStreamsIsMutable(); - streams_.add(m); - } else { - streamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.Stream m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(m); + } else { + streamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -642,21 +692,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List streams_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureStreamsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { streams_ = new java.util.ArrayList(streams_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamsBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + streamsBuilder_; /** + * + * *
      * List of streams
      * 
@@ -671,6 +728,8 @@ public java.util.List getStreamsLis } } /** + * + * *
      * List of streams
      * 
@@ -685,6 +744,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -699,14 +760,15 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { } } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder setStreams( - int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder setStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -720,6 +782,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -738,6 +802,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -758,14 +824,15 @@ public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams( - int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder addStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,14 +846,15 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams( - com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(builderForValue.build()); @@ -797,6 +865,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -815,6 +885,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -825,8 +897,7 @@ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -834,6 +905,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -851,6 +924,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -868,39 +943,44 @@ public Builder removeStreams(int index) { return this; } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder(int index) { return getStreamsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index) { if (streamsBuilder_ == null) { - return streams_.get(index); } else { + return streams_.get(index); + } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -908,6 +988,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -915,42 +997,48 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + return getStreamsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder( - int index) { - return getStreamsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder(int index) { + return getStreamsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** + * + * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - streams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + streamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); streams_ = null; } return streamsBuilder_; @@ -958,19 +1046,21 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -979,21 +1069,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1001,30 +1092,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1034,18 +1132,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1053,42 +1155,52 @@ public Builder setNextPageTokenBytes( return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000004; - } + } } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1096,76 +1208,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1175,26 +1301,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached.
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1204,12 +1334,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ListStreamsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ListStreamsResponse) private static final com.google.cloud.datastream.v1alpha1.ListStreamsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ListStreamsResponse(); } @@ -1218,27 +1348,27 @@ public static com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1253,6 +1383,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java index ce3acb89aaa1..00f820f81aa4 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsResponseOrBuilder extends +public interface ListStreamsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List - getStreamsList(); + java.util.List getStreamsList(); /** + * + * *
    * List of streams
    * 
@@ -25,6 +44,8 @@ public interface ListStreamsResponseOrBuilder extends */ com.google.cloud.datastream.v1alpha1.Stream getStreams(int index); /** + * + * *
    * List of streams
    * 
@@ -33,84 +54,102 @@ public interface ListStreamsResponseOrBuilder extends */ int getStreamsCount(); /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** + * + * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java index 4aad4ba28cda..062b08347727 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlColumn} */ -public final class MysqlColumn extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlColumn extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlColumn) MysqlColumnOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlColumn.newBuilder() to construct. private MysqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlColumn() { columnName_ = ""; dataType_ = ""; @@ -27,38 +45,43 @@ private MysqlColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlColumn.class, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlColumn.class, + com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object columnName_ = ""; /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getColumnName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } } /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The bytes for columnName. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnNameBytes() { + public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnName_ = b; return b; } else { @@ -98,15 +121,19 @@ public java.lang.String getColumnName() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -115,30 +142,30 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -149,11 +176,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -162,14 +192,18 @@ public int getLength() { } public static final int COLLATION_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object collation_ = ""; /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ @java.lang.Override @@ -178,29 +212,29 @@ public java.lang.String getCollation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; } } /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The bytes for collation. */ @java.lang.Override - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -211,11 +245,14 @@ public java.lang.String getCollation() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_ = false; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -226,11 +263,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_ = false; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -241,11 +281,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_ = 0; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -254,6 +297,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,8 +309,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -304,23 +347,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, primaryKey_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, nullable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -330,27 +369,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlColumn other = (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; - - if (!getColumnName() - .equals(other.getColumnName())) return false; - if (!getDataType() - .equals(other.getDataType())) return false; - if (getLength() - != other.getLength()) return false; - if (!getCollation() - .equals(other.getCollation())) return false; - if (getPrimaryKey() - != other.getPrimaryKey()) return false; - if (getNullable() - != other.getNullable()) return false; - if (getOrdinalPosition() - != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.MysqlColumn other = + (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; + + if (!getColumnName().equals(other.getColumnName())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (!getCollation().equals(other.getCollation())) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -371,11 +404,9 @@ public int hashCode() { hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -383,130 +414,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlColumn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlColumn) com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlColumn.class, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlColumn.class, + com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlColumn.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -522,9 +559,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; } @java.lang.Override @@ -543,8 +580,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlColumn buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlColumn result = new com.google.cloud.datastream.v1alpha1.MysqlColumn(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.MysqlColumn result = + new com.google.cloud.datastream.v1alpha1.MysqlColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -578,38 +618,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlColumn resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlColumn) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlColumn)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlColumn) other); } else { super.mergeFrom(other); return this; @@ -617,7 +658,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) + return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; bitField0_ |= 0x00000001; @@ -671,47 +713,55 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - columnName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - collation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - nullable_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + columnName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + collation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -721,22 +771,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object columnName_ = ""; /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return The columnName. */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; @@ -745,20 +798,21 @@ public java.lang.String getColumnName() { } } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString - getColumnNameBytes() { + public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnName_ = b; return b; } else { @@ -766,28 +820,35 @@ public java.lang.String getColumnName() { } } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } columnName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return This builder for chaining. */ public Builder clearColumnName() { @@ -797,17 +858,21 @@ public Builder clearColumnName() { return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @param value The bytes for columnName to set. * @return This builder for chaining. */ - public Builder setColumnNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); columnName_ = value; bitField0_ |= 0x00000001; @@ -817,19 +882,21 @@ public Builder setColumnNameBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -838,21 +905,22 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -860,30 +928,37 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { @@ -893,18 +968,22 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -912,13 +991,16 @@ public Builder setDataTypeBytes( return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -926,27 +1008,33 @@ public int getLength() { return length_; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -958,18 +1046,20 @@ public Builder clearLength() { private java.lang.Object collation_ = ""; /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -978,20 +1068,21 @@ public java.lang.String getCollation() { } } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return The bytes for collation. */ - public com.google.protobuf.ByteString - getCollationBytes() { + public com.google.protobuf.ByteString getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); collation_ = b; return b; } else { @@ -999,28 +1090,35 @@ public java.lang.String getCollation() { } } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } collation_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return This builder for chaining. */ public Builder clearCollation() { @@ -1030,17 +1128,21 @@ public Builder clearCollation() { return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @param value The bytes for collation to set. * @return This builder for chaining. */ - public Builder setCollationBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCollationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); collation_ = value; bitField0_ |= 0x00000008; @@ -1048,13 +1150,16 @@ public Builder setCollationBytes( return this; } - private boolean primaryKey_ ; + private boolean primaryKey_; /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -1062,27 +1167,33 @@ public boolean getPrimaryKey() { return primaryKey_; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1092,13 +1203,16 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -1106,27 +1220,33 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1136,13 +1256,16 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_ ; + private int ordinalPosition_; /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -1150,27 +1273,33 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1179,9 +1308,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1191,12 +1320,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlColumn) private static final com.google.cloud.datastream.v1alpha1.MysqlColumn DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlColumn(); } @@ -1205,27 +1334,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1240,6 +1369,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java index 28517c044bdf..eb736dee3c31 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java @@ -1,110 +1,153 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlColumnOrBuilder extends +public interface MysqlColumnOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlColumn) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ java.lang.String getColumnName(); /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The bytes for columnName. */ - com.google.protobuf.ByteString - getColumnNameBytes(); + com.google.protobuf.ByteString getColumnNameBytes(); /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The dataType. */ java.lang.String getDataType(); /** + * + * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - com.google.protobuf.ByteString - getDataTypeBytes(); + com.google.protobuf.ByteString getDataTypeBytes(); /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ int getLength(); /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ java.lang.String getCollation(); /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The bytes for collation. */ - com.google.protobuf.ByteString - getCollationBytes(); + com.google.protobuf.ByteString getCollationBytes(); /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ boolean getPrimaryKey(); /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ boolean getNullable(); /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java index 3e06d55b5594..f6b1926cce36 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL database.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlDatabase} */ -public final class MysqlDatabase extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlDatabase extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlDatabase) MysqlDatabaseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlDatabase.newBuilder() to construct. private MysqlDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlDatabase() { databaseName_ = ""; mysqlTables_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private MysqlDatabase() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlDatabase(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, + com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); } public static final int DATABASE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object databaseName_ = ""; /** + * + * *
    * Database name.
    * 
* * string database_name = 1; + * * @return The databaseName. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getDatabaseName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; } } /** + * + * *
    * Database name.
    * 
* * string database_name = 1; + * * @return The bytes for databaseName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseNameBytes() { + public com.google.protobuf.ByteString getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseName_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getDatabaseName() { } public static final int MYSQL_TABLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -111,6 +137,8 @@ public java.util.List getMysqlT return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -118,11 +146,13 @@ public java.util.List getMysqlT * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlTablesOrBuilderList() { return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -134,6 +164,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -145,6 +177,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -158,6 +192,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } @@ -190,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, databaseName_); } for (int i = 0; i < mysqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, mysqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlDatabase)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlDatabase other = (com.google.cloud.datastream.v1alpha1.MysqlDatabase) obj; + com.google.cloud.datastream.v1alpha1.MysqlDatabase other = + (com.google.cloud.datastream.v1alpha1.MysqlDatabase) obj; - if (!getDatabaseName() - .equals(other.getDatabaseName())) return false; - if (!getMysqlTablesList() - .equals(other.getMysqlTablesList())) return false; + if (!getDatabaseName().equals(other.getDatabaseName())) return false; + if (!getMysqlTablesList().equals(other.getMysqlTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +267,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlDatabase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlDatabase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlDatabase} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlDatabase) com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlDatabase.class, + com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlDatabase.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; } @java.lang.Override @@ -395,14 +433,18 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlDatabase buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlDatabase result = new com.google.cloud.datastream.v1alpha1.MysqlDatabase(this); + com.google.cloud.datastream.v1alpha1.MysqlDatabase result = + new com.google.cloud.datastream.v1alpha1.MysqlDatabase(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlDatabase result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.MysqlDatabase result) { if (mysqlTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); @@ -425,38 +467,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlDatabase re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlDatabase) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlDatabase)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlDatabase) other); } else { super.mergeFrom(other); return this; @@ -464,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) + return this; if (!other.getDatabaseName().isEmpty()) { databaseName_ = other.databaseName_; bitField0_ |= 0x00000001; @@ -488,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase othe mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlTablesFieldBuilder() : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlTablesFieldBuilder() + : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -522,30 +567,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - databaseName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1alpha1.MysqlTable m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), - extensionRegistry); - if (mysqlTablesBuilder_ == null) { - ensureMysqlTablesIsMutable(); - mysqlTables_.add(m); - } else { - mysqlTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + databaseName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1alpha1.MysqlTable m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), + extensionRegistry); + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(m); + } else { + mysqlTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,22 +603,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object databaseName_ = ""; /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @return The databaseName. */ public java.lang.String getDatabaseName() { java.lang.Object ref = databaseName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseName_ = s; return s; @@ -579,20 +630,21 @@ public java.lang.String getDatabaseName() { } } /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @return The bytes for databaseName. */ - public com.google.protobuf.ByteString - getDatabaseNameBytes() { + public com.google.protobuf.ByteString getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseName_ = b; return b; } else { @@ -600,28 +652,35 @@ public java.lang.String getDatabaseName() { } } /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @param value The databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } databaseName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @return This builder for chaining. */ public Builder clearDatabaseName() { @@ -631,17 +690,21 @@ public Builder clearDatabaseName() { return this; } /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @param value The bytes for databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); databaseName_ = value; bitField0_ |= 0x00000001; @@ -650,18 +713,25 @@ public Builder setDatabaseNameBytes( } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlTables_ = new java.util.ArrayList(mysqlTables_); + mysqlTables_ = + new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> mysqlTablesBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlTable, + com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> + mysqlTablesBuilder_; /** + * + * *
      * Tables in the database.
      * 
@@ -676,6 +746,8 @@ public java.util.List getMysqlT } } /** + * + * *
      * Tables in the database.
      * 
@@ -690,6 +762,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -704,6 +778,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) } } /** + * + * *
      * Tables in the database.
      * 
@@ -725,6 +801,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -743,6 +821,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -763,6 +843,8 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1alpha1.MysqlTable va return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -784,6 +866,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -802,6 +886,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -820,6 +906,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -830,8 +918,7 @@ public Builder addAllMysqlTables( java.lang.Iterable values) { if (mysqlTablesBuilder_ == null) { ensureMysqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mysqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlTables_); onChanged(); } else { mysqlTablesBuilder_.addAllMessages(values); @@ -839,6 +926,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -856,6 +945,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -873,6 +964,8 @@ public Builder removeMysqlTables(int index) { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -884,6 +977,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui return getMysqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the database.
      * 
@@ -893,19 +988,22 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( int index) { if (mysqlTablesBuilder_ == null) { - return mysqlTables_.get(index); } else { + return mysqlTables_.get(index); + } else { return mysqlTablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesOrBuilderList() { + public java.util.List + getMysqlTablesOrBuilderList() { if (mysqlTablesBuilder_ != null) { return mysqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -913,6 +1011,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } } /** + * + * *
      * Tables in the database.
      * 
@@ -920,10 +1020,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder() { - return getMysqlTablesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the database.
      * 
@@ -932,37 +1034,42 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBui */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder( int index) { - return getMysqlTablesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** + * + * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesBuilderList() { + public java.util.List + getMysqlTablesBuilderList() { return getMysqlTablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlTable, + com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> getMysqlTablesFieldBuilder() { if (mysqlTablesBuilder_ == null) { - mysqlTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder>( - mysqlTables_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + mysqlTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlTable, + com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder>( + mysqlTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); mysqlTables_ = null; } return mysqlTablesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1079,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlDatabase) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlDatabase) private static final com.google.cloud.datastream.v1alpha1.MysqlDatabase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlDatabase(); } @@ -986,27 +1093,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlDatabase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlDatabase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java index a40566827204..8e8acb30e976 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlDatabaseOrBuilder extends +public interface MysqlDatabaseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlDatabase) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Database name.
    * 
* * string database_name = 1; + * * @return The databaseName. */ java.lang.String getDatabaseName(); /** + * + * *
    * Database name.
    * 
* * string database_name = 1; + * * @return The bytes for databaseName. */ - com.google.protobuf.ByteString - getDatabaseNameBytes(); + com.google.protobuf.ByteString getDatabaseNameBytes(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List - getMysqlTablesList(); + java.util.List getMysqlTablesList(); /** + * + * *
    * Tables in the database.
    * 
@@ -45,6 +69,8 @@ public interface MysqlDatabaseOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index); /** + * + * *
    * Tables in the database.
    * 
@@ -53,21 +79,24 @@ public interface MysqlDatabaseOrBuilder extends */ int getMysqlTablesCount(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List + java.util.List getMysqlTablesOrBuilderList(); /** + * + * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java index db3b1b1d5afd..724e78ceee11 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlProfile} */ -public final class MysqlProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlProfile) MysqlProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlProfile.newBuilder() to construct. private MysqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlProfile() { hostname_ = ""; username_ = ""; @@ -27,38 +45,43 @@ private MysqlProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlProfile.class, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlProfile.class, + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -100,11 +123,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -113,14 +139,18 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -129,29 +159,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -160,14 +190,20 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ @java.lang.Override @@ -176,29 +212,31 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -209,11 +247,14 @@ public java.lang.String getPassword() { public static final int SSL_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -221,18 +262,25 @@ public boolean hasSslConfig() { return sslConfig_ != null; } /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { - return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
@@ -241,10 +289,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { - return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,8 +307,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -286,8 +336,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -296,8 +345,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (sslConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSslConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSslConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -307,25 +355,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlProfile other = (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; + com.google.cloud.datastream.v1alpha1.MysqlProfile other = + (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; - if (!getHostname() - .equals(other.getHostname())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; if (hasSslConfig() != other.hasSslConfig()) return false; if (hasSslConfig()) { - if (!getSslConfig() - .equals(other.getSslConfig())) return false; + if (!getSslConfig().equals(other.getSslConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -356,129 +400,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlProfile) com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlProfile.class, com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlProfile.class, + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -496,9 +546,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; } @java.lang.Override @@ -517,8 +567,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlProfile result = new com.google.cloud.datastream.v1alpha1.MysqlProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.MysqlProfile result = + new com.google.cloud.datastream.v1alpha1.MysqlProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -538,9 +591,7 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlProfile res result.password_ = password_; } if (((from_bitField0_ & 0x00000010) != 0)) { - result.sslConfig_ = sslConfigBuilder_ == null - ? sslConfig_ - : sslConfigBuilder_.build(); + result.sslConfig_ = sslConfigBuilder_ == null ? sslConfig_ : sslConfigBuilder_.build(); } } @@ -548,38 +599,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlProfile res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile) other); } else { super.mergeFrom(other); return this; @@ -587,7 +639,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) + return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -635,39 +688,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getSslConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getSslConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -677,22 +734,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -701,20 +761,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -722,28 +783,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -753,17 +821,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -771,13 +843,16 @@ public Builder setHostnameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -785,27 +860,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -817,18 +898,20 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -837,20 +920,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -858,28 +942,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -889,17 +980,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -909,18 +1004,22 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -929,20 +1028,23 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -950,28 +1052,39 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -981,17 +1094,23 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1001,34 +1120,47 @@ public Builder setPasswordBytes( private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> sslConfigBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> + sslConfigBuilder_; /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ public boolean hasSslConfig() { return ((bitField0_ & 0x00000010) != 0); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { if (sslConfigBuilder_ == null) { - return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } else { return sslConfigBuilder_.getMessage(); } } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1049,6 +1181,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1067,6 +1201,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1075,9 +1211,10 @@ public Builder setSslConfig( */ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig value) { if (sslConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - sslConfig_ != null && - sslConfig_ != com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000010) != 0) + && sslConfig_ != null + && sslConfig_ + != com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) { getSslConfigBuilder().mergeFrom(value); } else { sslConfig_ = value; @@ -1090,6 +1227,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1107,6 +1246,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1119,6 +1260,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder getSslConfigB return getSslConfigFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1129,11 +1272,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig if (sslConfigBuilder_ != null) { return sslConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null ? - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + return sslConfig_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() + : sslConfig_; } } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1141,21 +1287,24 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> getSslConfigFieldBuilder() { if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( - getSslConfig(), - getParentForChildren(), - isClean()); + sslConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( + getSslConfig(), getParentForChildren(), isClean()); sslConfig_ = null; } return sslConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1165,12 +1314,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlProfile) private static final com.google.cloud.datastream.v1alpha1.MysqlProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlProfile(); } @@ -1179,27 +1328,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1214,6 +1363,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java index e84fd0e1ab31..71fc05343c77 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java @@ -1,101 +1,147 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlProfileOrBuilder extends +public interface MysqlProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return Whether the sslConfig field is set. */ boolean hasSslConfig(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; + * * @return The sslConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig(); /** + * + * *
    * SSL configuration for the MySQL connection.
    * 
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java index 26113feeec34..c6e399e1a099 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL database structure
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlRdbms} */ -public final class MysqlRdbms extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlRdbms extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlRdbms) MysqlRdbmsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlRdbms.newBuilder() to construct. private MysqlRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlRdbms() { mysqlDatabases_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); } public static final int MYSQL_DATABASES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List mysqlDatabases_; /** + * + * *
    * Mysql databases on the server
    * 
@@ -59,10 +81,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List getMysqlDatabasesList() { + public java.util.List + getMysqlDatabasesList() { return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -70,11 +95,13 @@ public java.util.List getMys * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlDatabasesOrBuilderList() { return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -86,6 +113,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -97,6 +126,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -110,6 +141,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +153,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -136,8 +167,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mysqlDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, mysqlDatabases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mysqlDatabases_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +177,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlRdbms other = (com.google.cloud.datastream.v1alpha1.MysqlRdbms) obj; + com.google.cloud.datastream.v1alpha1.MysqlRdbms other = + (com.google.cloud.datastream.v1alpha1.MysqlRdbms) obj; - if (!getMysqlDatabasesList() - .equals(other.getMysqlDatabasesList())) return false; + if (!getMysqlDatabasesList().equals(other.getMysqlDatabasesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,130 +206,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL database structure
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlRdbms} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlRdbms) com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.class, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; } @java.lang.Override @@ -336,14 +372,18 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlRdbms result = new com.google.cloud.datastream.v1alpha1.MysqlRdbms(this); + com.google.cloud.datastream.v1alpha1.MysqlRdbms result = + new com.google.cloud.datastream.v1alpha1.MysqlRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlRdbms result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.MysqlRdbms result) { if (mysqlDatabasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); @@ -363,38 +403,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlRdbms resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlRdbms) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) other); } else { super.mergeFrom(other); return this; @@ -402,7 +443,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) + return this; if (mysqlDatabasesBuilder_ == null) { if (!other.mysqlDatabases_.isEmpty()) { if (mysqlDatabases_.isEmpty()) { @@ -421,9 +463,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) mysqlDatabasesBuilder_ = null; mysqlDatabases_ = other.mysqlDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlDatabasesFieldBuilder() : null; + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlDatabasesFieldBuilder() + : null; } else { mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); } @@ -455,25 +498,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.MysqlDatabase m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), - extensionRegistry); - if (mysqlDatabasesBuilder_ == null) { - ensureMysqlDatabasesIsMutable(); - mysqlDatabases_.add(m); - } else { - mysqlDatabasesBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.MysqlDatabase m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), + extensionRegistry); + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(m); + } else { + mysqlDatabasesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,28 +528,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List mysqlDatabases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlDatabasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = new java.util.ArrayList(mysqlDatabases_); + mysqlDatabases_ = + new java.util.ArrayList( + mysqlDatabases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> mysqlDatabasesBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlDatabase, + com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> + mysqlDatabasesBuilder_; /** + * + * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List getMysqlDatabasesList() { + public java.util.List + getMysqlDatabasesList() { if (mysqlDatabasesBuilder_ == null) { return java.util.Collections.unmodifiableList(mysqlDatabases_); } else { @@ -512,6 +567,8 @@ public java.util.List getMys } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -526,6 +583,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -540,6 +599,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -561,6 +622,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -579,6 +642,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -599,6 +664,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1alpha1.MysqlDatab return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -620,6 +687,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -638,6 +707,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -656,6 +727,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -666,8 +739,7 @@ public Builder addAllMysqlDatabases( java.lang.Iterable values) { if (mysqlDatabasesBuilder_ == null) { ensureMysqlDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, mysqlDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlDatabases_); onChanged(); } else { mysqlDatabasesBuilder_.addAllMessages(values); @@ -675,6 +747,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -692,6 +766,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -709,6 +785,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -720,6 +798,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -729,19 +809,22 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( int index) { if (mysqlDatabasesBuilder_ == null) { - return mysqlDatabases_.get(index); } else { + return mysqlDatabases_.get(index); + } else { return mysqlDatabasesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesOrBuilderList() { + public java.util.List + getMysqlDatabasesOrBuilderList() { if (mysqlDatabasesBuilder_ != null) { return mysqlDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +832,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -756,10 +841,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder() { - return getMysqlDatabasesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -768,26 +855,35 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDataba */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder( int index) { - return getMysqlDatabasesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder() + .addBuilder( + index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** + * + * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesBuilderList() { + public java.util.List + getMysqlDatabasesBuilderList() { return getMysqlDatabasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlDatabase, + com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> getMysqlDatabasesFieldBuilder() { if (mysqlDatabasesBuilder_ == null) { - mysqlDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( + mysqlDatabasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlDatabase, + com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( mysqlDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -796,9 +892,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDataba } return mysqlDatabasesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +904,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlRdbms) private static final com.google.cloud.datastream.v1alpha1.MysqlRdbms DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlRdbms(); } @@ -822,27 +918,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java index a66f896a8c8c..57ea7c1afc30 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlRdbmsOrBuilder extends +public interface MysqlRdbmsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlRdbms) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List - getMysqlDatabasesList(); + java.util.List getMysqlDatabasesList(); /** + * + * *
    * Mysql databases on the server
    * 
@@ -25,6 +44,8 @@ public interface MysqlRdbmsOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int index); /** + * + * *
    * Mysql databases on the server
    * 
@@ -33,21 +54,24 @@ public interface MysqlRdbmsOrBuilder extends */ int getMysqlDatabasesCount(); /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List + java.util.List getMysqlDatabasesOrBuilderList(); /** + * + * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java index ebfd960e9e4e..94fe82ebe64e 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSourceConfig} */ -public final class MysqlSourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlSourceConfig) MysqlSourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlSourceConfig.newBuilder() to construct. private MysqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlSourceConfig() { - } + + private MysqlSourceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); } public static final int ALLOWLIST_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1alpha1.MysqlRdbms allowlist_; /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : allowlist_; } /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
@@ -82,17 +110,22 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBuilder() { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : allowlist_; } public static final int REJECTLIST_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist_; /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ @java.lang.Override @@ -100,18 +133,25 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : rejectlist_; } /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
@@ -120,10 +160,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrBuilder() { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : rejectlist_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -153,12 +195,10 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +208,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = + (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist() - .equals(other.getAllowlist())) return false; + if (!getAllowlist().equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist() - .equals(other.getRejectlist())) return false; + if (!getRejectlist().equals(other.getRejectlist())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,129 +249,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlSourceConfig) com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.class, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; } @java.lang.Override @@ -372,8 +418,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result = new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result = + new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +430,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowlist_ = allowlistBuilder_ == null - ? allowlist_ - : allowlistBuilder_.build(); + result.allowlist_ = allowlistBuilder_ == null ? allowlist_ : allowlistBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rejectlist_ = rejectlistBuilder_ == null - ? rejectlist_ - : rejectlistBuilder_.build(); + result.rejectlist_ = rejectlistBuilder_ == null ? rejectlist_ : rejectlistBuilder_.build(); } } @@ -396,38 +441,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSourceConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) other); } else { super.mergeFrom(other); return this; @@ -435,7 +481,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) + return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -468,26 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAllowlistFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRejectlistFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAllowlistFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRejectlistFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,38 +543,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1alpha1.MysqlRdbms allowlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> allowlistBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + allowlistBuilder_; /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ public boolean hasAllowlist() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return The allowlist. */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { if (allowlistBuilder_ == null) { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : allowlist_; } else { return allowlistBuilder_.getMessage(); } } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -549,6 +609,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms valu return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -567,6 +629,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -575,9 +639,9 @@ public Builder setAllowlist( */ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (allowlistBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - allowlist_ != null && - allowlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && allowlist_ != null + && allowlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { getAllowlistBuilder().mergeFrom(value); } else { allowlist_ = value; @@ -590,6 +654,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -607,6 +673,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -619,6 +687,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getAllowlistBuild return getAllowlistFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -629,11 +699,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null ? - com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : allowlist_; } } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -641,14 +714,17 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getAllowlist(), - getParentForChildren(), - isClean()); + allowlistBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getAllowlist(), getParentForChildren(), isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -656,34 +732,47 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu private com.google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + rejectlistBuilder_; /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return The rejectlist. */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { if (rejectlistBuilder_ == null) { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : rejectlist_; } else { return rejectlistBuilder_.getMessage(); } } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -704,6 +793,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -722,6 +813,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -730,9 +823,10 @@ public Builder setRejectlist( */ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (rejectlistBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - rejectlist_ != null && - rejectlist_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && rejectlist_ != null + && rejectlist_ + != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { getRejectlistBuilder().mergeFrom(value); } else { rejectlist_ = value; @@ -745,6 +839,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -762,6 +858,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -774,6 +872,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getRejectlistBuil return getRejectlistFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -784,11 +884,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null ? - com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() + : rejectlist_; } } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -796,21 +899,24 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getRejectlist(), - getParentForChildren(), - isClean()); + rejectlistBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getRejectlist(), getParentForChildren(), isClean()); rejectlist_ = null; } return rejectlistBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -820,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlSourceConfig) private static final com.google.cloud.datastream.v1alpha1.MysqlSourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(); } @@ -834,27 +940,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +975,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java index c8c8491a76f5..f1a3bb820631 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSourceConfigOrBuilder extends +public interface MysqlSourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; + * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist(); /** + * + * *
    * MySQL objects to retrieve from the source.
    * 
@@ -35,24 +59,32 @@ public interface MysqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBuilder(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; + * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist(); /** + * + * *
    * MySQL objects to exclude from the stream.
    * 
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java similarity index 74% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java index 8462dbcaca78..64680bd7c7cf 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSslConfig} */ -public final class MysqlSslConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlSslConfig) MysqlSslConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlSslConfig.newBuilder() to construct. private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlSslConfig() { clientKey_ = ""; clientCertificate_ = ""; @@ -27,33 +45,37 @@ private MysqlSslConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlSslConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); } public static final int CLIENT_KEY_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object clientKey_ = ""; /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -61,6 +83,7 @@ protected java.lang.Object newInstance(
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -69,14 +92,15 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -84,16 +108,15 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -104,11 +127,14 @@ public java.lang.String getClientKey() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 12; private boolean clientKeySet_ = false; /** + * + * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ @java.lang.Override @@ -117,9 +143,12 @@ public boolean getClientKeySet() { } public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 13; + @SuppressWarnings("serial") private volatile java.lang.Object clientCertificate_ = ""; /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -127,6 +156,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -135,14 +165,15 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -150,16 +181,15 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -170,11 +200,14 @@ public java.lang.String getClientCertificate() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 14; private boolean clientCertificateSet_ = false; /** + * + * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ @java.lang.Override @@ -183,15 +216,19 @@ public boolean getClientCertificateSet() { } public static final int CA_CERTIFICATE_FIELD_NUMBER = 15; + @SuppressWarnings("serial") private volatile java.lang.Object caCertificate_ = ""; /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ @java.lang.Override @@ -200,30 +237,30 @@ public java.lang.String getCaCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; } } /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -234,11 +271,14 @@ public java.lang.String getCaCertificate() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 16; private boolean caCertificateSet_ = false; /** + * + * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ @java.lang.Override @@ -247,6 +287,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,8 +299,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clientKey_); } @@ -291,22 +331,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clientKey_); } if (clientKeySet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, clientKeySet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, clientKeySet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clientCertificate_); } if (clientCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, clientCertificateSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, clientCertificateSet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, caCertificate_); } if (caCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, caCertificateSet_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, caCertificateSet_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -316,25 +353,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSslConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; - - if (!getClientKey() - .equals(other.getClientKey())) return false; - if (getClientKeySet() - != other.getClientKeySet()) return false; - if (!getClientCertificate() - .equals(other.getClientCertificate())) return false; - if (getClientCertificateSet() - != other.getClientCertificateSet()) return false; - if (!getCaCertificate() - .equals(other.getCaCertificate())) return false; - if (getCaCertificateSet() - != other.getCaCertificateSet()) return false; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = + (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; + + if (!getClientKey().equals(other.getClientKey())) return false; + if (getClientKeySet() != other.getClientKeySet()) return false; + if (!getClientCertificate().equals(other.getClientCertificate())) return false; + if (getClientCertificateSet() != other.getClientCertificateSet()) return false; + if (!getCaCertificate().equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() != other.getCaCertificateSet()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,147 +381,150 @@ public int hashCode() { hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER; hash = (53 * hash) + getClientKey().hashCode(); hash = (37 * hash) + CLIENT_KEY_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientKeySet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientKeySet()); hash = (37 * hash) + CLIENT_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getClientCertificate().hashCode(); hash = (37 * hash) + CLIENT_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getClientCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getClientCertificateSet()); hash = (37 * hash) + CA_CERTIFICATE_FIELD_NUMBER; hash = (53 * hash) + getCaCertificate().hashCode(); hash = (37 * hash) + CA_CERTIFICATE_SET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaCertificateSet()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaCertificateSet()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlSslConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * MySQL SSL configuration information.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSslConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlSslConfig) com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.class, + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlSslConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -504,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; } @java.lang.Override @@ -525,8 +560,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlSslConfig result = new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.MysqlSslConfig result = + new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -557,38 +595,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlSslConfig r public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlSslConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSslConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSslConfig) other); } else { super.mergeFrom(other); return this; @@ -596,7 +635,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSslConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) + return this; if (!other.getClientKey().isEmpty()) { clientKey_ = other.clientKey_; bitField0_ |= 0x00000001; @@ -647,42 +687,49 @@ public Builder mergeFrom( case 0: done = true; break; - case 90: { - clientKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 90 - case 96: { - clientKeySet_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 96 - case 106: { - clientCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 106 - case 112: { - clientCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 112 - case 122: { - caCertificate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 122 - case 128: { - caCertificateSet_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 128 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 90: + { + clientKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 90 + case 96: + { + clientKeySet_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 96 + case 106: + { + clientCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 106 + case 112: + { + clientCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 112 + case 122: + { + caCertificate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 122 + case 128: + { + caCertificateSet_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 128 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -692,10 +739,13 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object clientKey_ = ""; /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -703,13 +753,13 @@ public Builder mergeFrom(
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; @@ -718,6 +768,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -725,15 +777,14 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString - getClientKeyBytes() { + public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientKey_ = b; return b; } else { @@ -741,6 +792,8 @@ public java.lang.String getClientKey() { } } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -748,18 +801,22 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientKey_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -767,6 +824,7 @@ public Builder setClientKey(
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKey() { @@ -776,6 +834,8 @@ public Builder clearClientKey() { return this; } /** + * + * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -783,12 +843,14 @@ public Builder clearClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientKey to set. * @return This builder for chaining. */ - public Builder setClientKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientKey_ = value; bitField0_ |= 0x00000001; @@ -796,13 +858,16 @@ public Builder setClientKeyBytes( return this; } - private boolean clientKeySet_ ; + private boolean clientKeySet_; /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ @java.lang.Override @@ -810,27 +875,33 @@ public boolean getClientKeySet() { return clientKeySet_; } /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clientKeySet to set. * @return This builder for chaining. */ public Builder setClientKeySet(boolean value) { - + clientKeySet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the client_key field is set.
      * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKeySet() { @@ -842,6 +913,8 @@ public Builder clearClientKeySet() { private java.lang.Object clientCertificate_ = ""; /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -849,13 +922,13 @@ public Builder clearClientKeySet() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; @@ -864,6 +937,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -871,15 +946,14 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString - getClientCertificateBytes() { + public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -887,6 +961,8 @@ public java.lang.String getClientCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -894,18 +970,22 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } clientCertificate_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -913,6 +993,7 @@ public Builder setClientCertificate(
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificate() { @@ -922,6 +1003,8 @@ public Builder clearClientCertificate() { return this; } /** + * + * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -929,12 +1012,14 @@ public Builder clearClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); clientCertificate_ = value; bitField0_ |= 0x00000004; @@ -942,13 +1027,16 @@ public Builder setClientCertificateBytes( return this; } - private boolean clientCertificateSet_ ; + private boolean clientCertificateSet_; /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ @java.lang.Override @@ -956,27 +1044,33 @@ public boolean getClientCertificateSet() { return clientCertificateSet_; } /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The clientCertificateSet to set. * @return This builder for chaining. */ public Builder setClientCertificateSet(boolean value) { - + clientCertificateSet_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the client_certificate field is set.
      * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificateSet() { @@ -988,19 +1082,21 @@ public Builder clearClientCertificateSet() { private java.lang.Object caCertificate_ = ""; /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1009,21 +1105,22 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString - getCaCertificateBytes() { + public com.google.protobuf.ByteString getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1031,30 +1128,37 @@ public java.lang.String getCaCertificate() { } } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCaCertificate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } caCertificate_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCaCertificate() { @@ -1064,18 +1168,22 @@ public Builder clearCaCertificate() { return this; } /** + * + * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); caCertificate_ = value; bitField0_ |= 0x00000010; @@ -1083,13 +1191,16 @@ public Builder setCaCertificateBytes( return this; } - private boolean caCertificateSet_ ; + private boolean caCertificateSet_; /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ @java.lang.Override @@ -1097,27 +1208,33 @@ public boolean getCaCertificateSet() { return caCertificateSet_; } /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The caCertificateSet to set. * @return This builder for chaining. */ public Builder setCaCertificateSet(boolean value) { - + caCertificateSet_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Indicates whether the ca_certificate field is set.
      * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearCaCertificateSet() { @@ -1126,9 +1243,9 @@ public Builder clearCaCertificateSet() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1138,12 +1255,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlSslConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlSslConfig) private static final com.google.cloud.datastream.v1alpha1.MysqlSslConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(); } @@ -1152,27 +1269,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MysqlSslConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MysqlSslConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1187,6 +1304,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java index 3cdea7e380a2..2a4721faf0ab 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSslConfigOrBuilder extends +public interface MysqlSslConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSslConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -15,10 +33,13 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ java.lang.String getClientKey(); /** + * + * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -26,22 +47,27 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString - getClientKeyBytes(); + com.google.protobuf.ByteString getClientKeyBytes(); /** + * + * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientKeySet. */ boolean getClientKeySet(); /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -49,10 +75,13 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** + * + * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -60,49 +89,60 @@ public interface MysqlSslConfigOrBuilder extends
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString - getClientCertificateBytes(); + com.google.protobuf.ByteString getClientCertificateBytes(); /** + * + * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The clientCertificateSet. */ boolean getClientCertificateSet(); /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** + * + * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString - getCaCertificateBytes(); + com.google.protobuf.ByteString getCaCertificateBytes(); /** + * + * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The caCertificateSet. */ boolean getCaCertificateSet(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java similarity index 74% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java index fd40faa1952f..bfc73930825c 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * MySQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlTable} */ -public final class MysqlTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class MysqlTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlTable) MysqlTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use MysqlTable.newBuilder() to construct. private MysqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private MysqlTable() { tableName_ = ""; mysqlColumns_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private MysqlTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MysqlTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlTable.class, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlTable.class, + com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); } public static final int TABLE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object tableName_ = ""; /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getTableName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; } } /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The bytes for tableName. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableNameBytes() { + public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableName_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTableName() { } public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List mysqlColumns_; /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -113,6 +139,8 @@ public java.util.List getMysql
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -122,11 +150,13 @@ public java.util.List getMysql
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getMysqlColumnsOrBuilderList() {
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -140,6 +170,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -153,6 +185,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
     return mysqlColumns_.get(index);
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -168,6 +202,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -179,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -200,8 +234,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < mysqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, mysqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,17 +244,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.MysqlTable other = (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
+    com.google.cloud.datastream.v1alpha1.MysqlTable other =
+        (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
 
-    if (!getTableName()
-        .equals(other.getTableName())) return false;
-    if (!getMysqlColumnsList()
-        .equals(other.getMysqlColumnsList())) return false;
+    if (!getTableName().equals(other.getTableName())) return false;
+    if (!getMysqlColumnsList().equals(other.getMysqlColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -244,130 +276,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.MysqlTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.MysqlTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * MySQL table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlTable} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.MysqlTable) com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.MysqlTable.class, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); + com.google.cloud.datastream.v1alpha1.MysqlTable.class, + com.google.cloud.datastream.v1alpha1.MysqlTable.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.MysqlTable.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; } @java.lang.Override @@ -405,14 +443,18 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlTable buildPartial() { - com.google.cloud.datastream.v1alpha1.MysqlTable result = new com.google.cloud.datastream.v1alpha1.MysqlTable(this); + com.google.cloud.datastream.v1alpha1.MysqlTable result = + new com.google.cloud.datastream.v1alpha1.MysqlTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.MysqlTable result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.MysqlTable result) { if (mysqlColumnsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); @@ -435,38 +477,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.MysqlTable resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.MysqlTable) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlTable)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlTable) other); } else { super.mergeFrom(other); return this; @@ -474,7 +517,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) + return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; bitField0_ |= 0x00000001; @@ -498,9 +542,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000002); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlColumnsFieldBuilder() : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlColumnsFieldBuilder() + : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -532,30 +577,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - tableName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1alpha1.MysqlColumn m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), - extensionRegistry); - if (mysqlColumnsBuilder_ == null) { - ensureMysqlColumnsIsMutable(); - mysqlColumns_.add(m); - } else { - mysqlColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1alpha1.MysqlColumn m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), + extensionRegistry); + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(m); + } else { + mysqlColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,22 +613,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object tableName_ = ""; /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return The tableName. */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; @@ -589,20 +640,21 @@ public java.lang.String getTableName() { } } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString - getTableNameBytes() { + public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableName_ = b; return b; } else { @@ -610,28 +662,35 @@ public java.lang.String getTableName() { } } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tableName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return This builder for chaining. */ public Builder clearTableName() { @@ -641,17 +700,21 @@ public Builder clearTableName() { return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @param value The bytes for tableName to set. * @return This builder for chaining. */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tableName_ = value; bitField0_ |= 0x00000001; @@ -660,18 +723,26 @@ public Builder setTableNameBytes( } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); + mysqlColumns_ = + new java.util.ArrayList( + mysqlColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> mysqlColumnsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlColumn, + com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, + com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> + mysqlColumnsBuilder_; /** + * + * *
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -688,6 +759,8 @@ public java.util.List getMysql
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -704,6 +777,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -720,6 +795,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -743,6 +820,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -763,6 +842,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -785,6 +866,8 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1alpha1.MysqlColumn
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -808,6 +891,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -828,6 +913,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -848,6 +935,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -860,8 +949,7 @@ public Builder addAllMysqlColumns(
         java.lang.Iterable values) {
       if (mysqlColumnsBuilder_ == null) {
         ensureMysqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, mysqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlColumns_);
         onChanged();
       } else {
         mysqlColumnsBuilder_.addAllMessages(values);
@@ -869,6 +957,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -888,6 +978,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -907,6 +999,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -920,6 +1014,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
       return getMysqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -931,11 +1027,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
     public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
         int index) {
       if (mysqlColumnsBuilder_ == null) {
-        return mysqlColumns_.get(index);  } else {
+        return mysqlColumns_.get(index);
+      } else {
         return mysqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -944,8 +1043,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
      *
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List 
-         getMysqlColumnsOrBuilderList() {
+    public java.util.List
+        getMysqlColumnsOrBuilderList() {
       if (mysqlColumnsBuilder_ != null) {
         return mysqlColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -953,6 +1052,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -962,10 +1063,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder() {
-      return getMysqlColumnsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -976,10 +1079,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder(
         int index) {
-      return getMysqlColumnsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -988,27 +1093,30 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      *
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List 
-         getMysqlColumnsBuilderList() {
+    public java.util.List
+        getMysqlColumnsBuilderList() {
       return getMysqlColumnsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> 
+            com.google.cloud.datastream.v1alpha1.MysqlColumn,
+            com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
+            com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>
         getMysqlColumnsFieldBuilder() {
       if (mysqlColumnsBuilder_ == null) {
-        mysqlColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>(
-                mysqlColumns_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        mysqlColumnsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1alpha1.MysqlColumn,
+                com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
+                com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>(
+                mysqlColumns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         mysqlColumns_ = null;
       }
       return mysqlColumnsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1018,12 +1126,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.MysqlTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.MysqlTable)
   private static final com.google.cloud.datastream.v1alpha1.MysqlTable DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.MysqlTable();
   }
@@ -1032,27 +1140,27 @@ public static com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstance
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public MysqlTable parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public MysqlTable parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1067,6 +1175,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
index e597ddda4838..e8ed3fe41239 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface MysqlTableOrBuilder extends
+public interface MysqlTableOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ java.lang.String getTableName(); /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The bytes for tableName. */ - com.google.protobuf.ByteString - getTableNameBytes(); + com.google.protobuf.ByteString getTableNameBytes(); /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -36,9 +59,10 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List 
-      getMysqlColumnsList();
+  java.util.List getMysqlColumnsList();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -49,6 +73,8 @@ public interface MysqlTableOrBuilder extends
    */
   com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int index);
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -59,6 +85,8 @@ public interface MysqlTableOrBuilder extends
    */
   int getMysqlColumnsCount();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -67,9 +95,11 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List 
+  java.util.List
       getMysqlColumnsOrBuilderList();
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -78,6 +108,5 @@ public interface MysqlTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
similarity index 63%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
index 1588dda42808..9e0f13dadc44 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
@@ -1,53 +1,72 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
+ *
+ *
  * 
  * No connectivity settings.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.NoConnectivitySettings} */ -public final class NoConnectivitySettings extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NoConnectivitySettings extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.NoConnectivitySettings) NoConnectivitySettingsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NoConnectivitySettings.newBuilder() to construct. private NoConnectivitySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NoConnectivitySettings() { - } + + private NoConnectivitySettings() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new NoConnectivitySettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = + (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * No connectivity settings.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.NoConnectivitySettings} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.NoConnectivitySettings) com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.class, + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,9 +258,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; } @java.lang.Override @@ -253,7 +279,8 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial() { - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = + new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); onBuilt(); return result; } @@ -262,38 +289,39 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) other); } else { super.mergeFrom(other); return this; @@ -301,7 +329,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other) { - if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +357,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +373,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,12 +385,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.NoConnectivitySettings) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.NoConnectivitySettings) private static final com.google.cloud.datastream.v1alpha1.NoConnectivitySettings DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(); } @@ -369,27 +399,27 @@ public static com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NoConnectivitySettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NoConnectivitySettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -404,6 +434,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java new file mode 100644 index 000000000000..cceee8acdc72 --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface NoConnectivitySettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java index 1c22769728ea..6fc08ce0949b 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperationMetadata() { target_ = ""; verb_ = ""; @@ -28,37 +46,42 @@ private OperationMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OperationMetadata.class, com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1alpha1.OperationMetadata.class, + com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); } public static final int CREATE_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -66,11 +89,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -78,11 +105,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -92,11 +122,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -104,11 +138,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -116,11 +154,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -128,14 +169,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { } public static final int TARGET_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object target_ = ""; /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ @java.lang.Override @@ -144,29 +189,29 @@ public java.lang.String getTarget() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; } } /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -175,14 +220,18 @@ public java.lang.String getTarget() { } public static final int VERB_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object verb_ = ""; /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ @java.lang.Override @@ -191,29 +240,29 @@ public java.lang.String getVerb() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; } } /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -222,14 +271,18 @@ public java.lang.String getVerb() { } public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object statusMessage_ = ""; /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ @java.lang.Override @@ -238,29 +291,29 @@ public java.lang.String getStatusMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; } } /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -271,6 +324,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_ = false; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -279,6 +334,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -287,14 +343,18 @@ public boolean getRequestedCancellation() { } public static final int API_VERSION_FIELD_NUMBER = 7; + @SuppressWarnings("serial") private volatile java.lang.Object apiVersion_ = ""; /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ @java.lang.Override @@ -303,29 +363,29 @@ public java.lang.String getApiVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; } } /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -336,11 +396,16 @@ public java.lang.String getApiVersion() { public static final int VALIDATION_RESULT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ @java.lang.Override @@ -348,30 +413,45 @@ public boolean hasValidationResult() { return validationResult_ != null; } /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult() { - return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() + : validationResult_; } /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder() { - return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder + getValidationResultOrBuilder() { + return validationResult_ == null + ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() + : validationResult_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,8 +463,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -419,12 +498,10 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -436,15 +513,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (validationResult_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getValidationResult()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValidationResult()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -454,37 +529,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OperationMetadata other = (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; + com.google.cloud.datastream.v1alpha1.OperationMetadata other = + (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; if (hasValidationResult() != other.hasValidationResult()) return false; if (hasValidationResult()) { - if (!getValidationResult() - .equals(other.getValidationResult())) return false; + if (!getValidationResult().equals(other.getValidationResult())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -512,8 +580,7 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasValidationResult()) { @@ -526,129 +593,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.OperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represents the metadata of the long-running operation.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OperationMetadata) com.google.cloud.datastream.v1alpha1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OperationMetadata.class, com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); + com.google.cloud.datastream.v1alpha1.OperationMetadata.class, + com.google.cloud.datastream.v1alpha1.OperationMetadata.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OperationMetadata.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -677,9 +751,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; } @java.lang.Override @@ -698,8 +772,11 @@ public com.google.cloud.datastream.v1alpha1.OperationMetadata build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OperationMetadata buildPartial() { - com.google.cloud.datastream.v1alpha1.OperationMetadata result = new com.google.cloud.datastream.v1alpha1.OperationMetadata(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.OperationMetadata result = + new com.google.cloud.datastream.v1alpha1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -707,14 +784,10 @@ public com.google.cloud.datastream.v1alpha1.OperationMetadata buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.endTime_ = endTimeBuilder_ == null - ? endTime_ - : endTimeBuilder_.build(); + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.target_ = target_; @@ -732,9 +805,8 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadat result.apiVersion_ = apiVersion_; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.validationResult_ = validationResultBuilder_ == null - ? validationResult_ - : validationResultBuilder_.build(); + result.validationResult_ = + validationResultBuilder_ == null ? validationResult_ : validationResultBuilder_.build(); } } @@ -742,38 +814,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OperationMetadat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OperationMetadata) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OperationMetadata)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OperationMetadata) other); } else { super.mergeFrom(other); return this; @@ -781,7 +854,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) + return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -840,58 +914,62 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEndTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - target_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - verb_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - statusMessage_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - requestedCancellation_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: { - apiVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getValidationResultFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getValidationResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -901,43 +979,63 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -953,14 +1051,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -971,17 +1072,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -994,11 +1099,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000001); @@ -1011,11 +1120,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000001; @@ -1023,36 +1136,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The time the operation was created.
      * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1060,24 +1185,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1088,11 +1224,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1108,14 +1247,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); } else { @@ -1126,17 +1267,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - endTime_ != null && - endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; @@ -1149,11 +1293,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1166,11 +1313,14 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { bitField0_ |= 0x00000002; @@ -1178,36 +1328,44 @@ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -1215,18 +1373,20 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1235,20 +1395,21 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - public com.google.protobuf.ByteString - getTargetBytes() { + public com.google.protobuf.ByteString getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); target_ = b; return b; } else { @@ -1256,28 +1417,35 @@ public java.lang.String getTarget() { } } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } target_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearTarget() { @@ -1287,17 +1455,21 @@ public Builder clearTarget() { return this; } /** + * + * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for target to set. * @return This builder for chaining. */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); target_ = value; bitField0_ |= 0x00000004; @@ -1307,18 +1479,20 @@ public Builder setTargetBytes( private java.lang.Object verb_ = ""; /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1327,20 +1501,21 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - public com.google.protobuf.ByteString - getVerbBytes() { + public com.google.protobuf.ByteString getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); verb_ = b; return b; } else { @@ -1348,28 +1523,35 @@ public java.lang.String getVerb() { } } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } verb_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearVerb() { @@ -1379,17 +1561,21 @@ public Builder clearVerb() { return this; } /** + * + * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for verb to set. * @return This builder for chaining. */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); verb_ = value; bitField0_ |= 0x00000008; @@ -1399,18 +1585,20 @@ public Builder setVerbBytes( private java.lang.Object statusMessage_ = ""; /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1419,20 +1607,21 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { + public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1440,28 +1629,35 @@ public java.lang.String getStatusMessage() { } } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } statusMessage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -1471,17 +1667,21 @@ public Builder clearStatusMessage() { return this; } /** + * + * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); statusMessage_ = value; bitField0_ |= 0x00000010; @@ -1489,8 +1689,10 @@ public Builder setStatusMessageBytes( return this; } - private boolean requestedCancellation_ ; + private boolean requestedCancellation_; /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1499,6 +1701,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1506,6 +1709,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1514,17 +1719,20 @@ public boolean getRequestedCancellation() {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The requestedCancellation to set. * @return This builder for chaining. */ public Builder setRequestedCancellation(boolean value) { - + requestedCancellation_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1533,6 +1741,7 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { @@ -1544,18 +1753,20 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1564,20 +1775,21 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString - getApiVersionBytes() { + public com.google.protobuf.ByteString getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1585,28 +1797,35 @@ public java.lang.String getApiVersion() { } } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } apiVersion_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearApiVersion() { @@ -1616,17 +1835,21 @@ public Builder clearApiVersion() { return this; } /** + * + * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); apiVersion_ = value; bitField0_ |= 0x00000040; @@ -1636,41 +1859,61 @@ public Builder setApiVersionBytes( private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> validationResultBuilder_; + com.google.cloud.datastream.v1alpha1.ValidationResult, + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, + com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> + validationResultBuilder_; /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ public boolean hasValidationResult() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ public com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult() { if (validationResultBuilder_ == null) { - return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() + : validationResult_; } else { return validationResultBuilder_.getMessage(); } } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setValidationResult(com.google.cloud.datastream.v1alpha1.ValidationResult value) { + public Builder setValidationResult( + com.google.cloud.datastream.v1alpha1.ValidationResult value) { if (validationResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1684,11 +1927,15 @@ public Builder setValidationResult(com.google.cloud.datastream.v1alpha1.Validati return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setValidationResult( com.google.cloud.datastream.v1alpha1.ValidationResult.Builder builderForValue) { @@ -1702,17 +1949,23 @@ public Builder setValidationResult( return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeValidationResult(com.google.cloud.datastream.v1alpha1.ValidationResult value) { + public Builder mergeValidationResult( + com.google.cloud.datastream.v1alpha1.ValidationResult value) { if (validationResultBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - validationResult_ != null && - validationResult_ != com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && validationResult_ != null + && validationResult_ + != com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) { getValidationResultBuilder().mergeFrom(value); } else { validationResult_ = value; @@ -1725,11 +1978,15 @@ public Builder mergeValidationResult(com.google.cloud.datastream.v1alpha1.Valida return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearValidationResult() { bitField0_ = (bitField0_ & ~0x00000080); @@ -1742,55 +1999,73 @@ public Builder clearValidationResult() { return this; } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder getValidationResultBuilder() { + public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder + getValidationResultBuilder() { bitField0_ |= 0x00000080; onChanged(); return getValidationResultFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder + getValidationResultOrBuilder() { if (validationResultBuilder_ != null) { return validationResultBuilder_.getMessageOrBuilder(); } else { - return validationResult_ == null ? - com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; + return validationResult_ == null + ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() + : validationResult_; } } /** + * + * *
      * Output only. Results of executed validations if there are any.
      * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> + com.google.cloud.datastream.v1alpha1.ValidationResult, + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, + com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> getValidationResultFieldBuilder() { if (validationResultBuilder_ == null) { - validationResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder>( - getValidationResult(), - getParentForChildren(), - isClean()); + validationResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ValidationResult, + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, + com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder>( + getValidationResult(), getParentForChildren(), isClean()); validationResult_ = null; } return validationResultBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1800,12 +2075,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OperationMetadata) private static final com.google.cloud.datastream.v1alpha1.OperationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OperationMetadata(); } @@ -1814,27 +2089,27 @@ public static com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1849,6 +2124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java index af0667416d8e..8edd85534536 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java @@ -1,127 +1,182 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface OperationMetadataOrBuilder extends +public interface OperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The target. */ java.lang.String getTarget(); /** + * + * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for target. */ - com.google.protobuf.ByteString - getTargetBytes(); + com.google.protobuf.ByteString getTargetBytes(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The verb. */ java.lang.String getVerb(); /** + * + * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for verb. */ - com.google.protobuf.ByteString - getVerbBytes(); + com.google.protobuf.ByteString getVerbBytes(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** + * + * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString - getStatusMessageBytes(); + com.google.protobuf.ByteString getStatusMessageBytes(); /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -130,54 +185,74 @@ public interface OperationMetadataOrBuilder extends
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The apiVersion. */ java.lang.String getApiVersion(); /** + * + * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString - getApiVersionBytes(); + com.google.protobuf.ByteString getApiVersionBytes(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the validationResult field is set. */ boolean hasValidationResult(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The validationResult. */ com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult(); /** + * + * *
    * Output only. Results of executed validations if there are any.
    * 
* - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java index 1fecf2345a1f..ef0d9c326b80 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleColumn} */ -public final class OracleColumn extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleColumn extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleColumn) OracleColumnOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleColumn.newBuilder() to construct. private OracleColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleColumn() { columnName_ = ""; dataType_ = ""; @@ -27,38 +45,43 @@ private OracleColumn() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleColumn(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleColumn.class, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleColumn.class, + com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object columnName_ = ""; /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getColumnName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; } } /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The bytes for columnName. */ @java.lang.Override - public com.google.protobuf.ByteString - getColumnNameBytes() { + public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnName_ = b; return b; } else { @@ -98,14 +121,18 @@ public java.lang.String getColumnName() { } public static final int DATA_TYPE_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object dataType_ = ""; /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -114,29 +141,29 @@ public java.lang.String getDataType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; } } /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ @java.lang.Override - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -147,11 +174,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_ = 0; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -162,11 +192,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_ = 0; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -177,11 +210,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_ = 0; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -190,14 +226,18 @@ public int getScale() { } public static final int ENCODING_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object encoding_ = ""; /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ @java.lang.Override @@ -206,29 +246,29 @@ public java.lang.String getEncoding() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; } } /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The bytes for encoding. */ @java.lang.Override - public com.google.protobuf.ByteString - getEncodingBytes() { + public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encoding_ = b; return b; } else { @@ -239,11 +279,14 @@ public java.lang.String getEncoding() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_ = false; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -254,11 +297,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_ = false; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -269,11 +315,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_ = 0; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -282,6 +331,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -293,8 +343,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -338,31 +387,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encoding_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -372,31 +415,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleColumn other = (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; - - if (!getColumnName() - .equals(other.getColumnName())) return false; - if (!getDataType() - .equals(other.getDataType())) return false; - if (getLength() - != other.getLength()) return false; - if (getPrecision() - != other.getPrecision()) return false; - if (getScale() - != other.getScale()) return false; - if (!getEncoding() - .equals(other.getEncoding())) return false; - if (getPrimaryKey() - != other.getPrimaryKey()) return false; - if (getNullable() - != other.getNullable()) return false; - if (getOrdinalPosition() - != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.OracleColumn other = + (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; + + if (!getColumnName().equals(other.getColumnName())) return false; + if (!getDataType().equals(other.getDataType())) return false; + if (getLength() != other.getLength()) return false; + if (getPrecision() != other.getPrecision()) return false; + if (getScale() != other.getScale()) return false; + if (!getEncoding().equals(other.getEncoding())) return false; + if (getPrimaryKey() != other.getPrimaryKey()) return false; + if (getNullable() != other.getNullable()) return false; + if (getOrdinalPosition() != other.getOrdinalPosition()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -421,11 +456,9 @@ public int hashCode() { hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -434,129 +467,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleColumn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleColumn prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle Column.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleColumn} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleColumn) com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleColumn.class, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleColumn.class, + com.google.cloud.datastream.v1alpha1.OracleColumn.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleColumn.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -574,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; } @java.lang.Override @@ -595,8 +634,11 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleColumn buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleColumn result = new com.google.cloud.datastream.v1alpha1.OracleColumn(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.OracleColumn result = + new com.google.cloud.datastream.v1alpha1.OracleColumn(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -636,38 +678,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleColumn res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleColumn) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleColumn)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleColumn) other); } else { super.mergeFrom(other); return this; @@ -675,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) + return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; bitField0_ |= 0x00000001; @@ -735,57 +779,67 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - columnName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - dataType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - length_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - precision_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - scale_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - encoding_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - primaryKey_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - nullable_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 72: { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000100; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + columnName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dataType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + length_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + precision_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + scale_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + encoding_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + primaryKey_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + nullable_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + ordinalPosition_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -795,22 +849,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object columnName_ = ""; /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return The columnName. */ public java.lang.String getColumnName() { java.lang.Object ref = columnName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); columnName_ = s; return s; @@ -819,20 +876,21 @@ public java.lang.String getColumnName() { } } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString - getColumnNameBytes() { + public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnName_ = b; return b; } else { @@ -840,28 +898,35 @@ public java.lang.String getColumnName() { } } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } columnName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return This builder for chaining. */ public Builder clearColumnName() { @@ -871,17 +936,21 @@ public Builder clearColumnName() { return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @param value The bytes for columnName to set. * @return This builder for chaining. */ - public Builder setColumnNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); columnName_ = value; bitField0_ |= 0x00000001; @@ -891,18 +960,20 @@ public Builder setColumnNameBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -911,20 +982,21 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString - getDataTypeBytes() { + public com.google.protobuf.ByteString getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataType_ = b; return b; } else { @@ -932,28 +1004,35 @@ public java.lang.String getDataType() { } } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } dataType_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { @@ -963,17 +1042,21 @@ public Builder clearDataType() { return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); dataType_ = value; bitField0_ |= 0x00000002; @@ -981,13 +1064,16 @@ public Builder setDataTypeBytes( return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -995,27 +1081,33 @@ public int getLength() { return length_; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @param value The length to set. * @return This builder for chaining. */ public Builder setLength(int value) { - + length_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { @@ -1025,13 +1117,16 @@ public Builder clearLength() { return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -1039,27 +1134,33 @@ public int getPrecision() { return precision_; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(int value) { - + precision_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { @@ -1069,13 +1170,16 @@ public Builder clearPrecision() { return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1083,27 +1187,33 @@ public int getScale() { return scale_; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @param value The scale to set. * @return This builder for chaining. */ public Builder setScale(int value) { - + scale_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { @@ -1115,18 +1225,20 @@ public Builder clearScale() { private java.lang.Object encoding_ = ""; /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; @@ -1135,20 +1247,21 @@ public java.lang.String getEncoding() { } } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return The bytes for encoding. */ - public com.google.protobuf.ByteString - getEncodingBytes() { + public com.google.protobuf.ByteString getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); encoding_ = b; return b; } else { @@ -1156,28 +1269,35 @@ public java.lang.String getEncoding() { } } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncoding(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } encoding_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return This builder for chaining. */ public Builder clearEncoding() { @@ -1187,17 +1307,21 @@ public Builder clearEncoding() { return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @param value The bytes for encoding to set. * @return This builder for chaining. */ - public Builder setEncodingBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEncodingBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); encoding_ = value; bitField0_ |= 0x00000020; @@ -1205,13 +1329,16 @@ public Builder setEncodingBytes( return this; } - private boolean primaryKey_ ; + private boolean primaryKey_; /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -1219,27 +1346,33 @@ public boolean getPrimaryKey() { return primaryKey_; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @param value The primaryKey to set. * @return This builder for chaining. */ public Builder setPrimaryKey(boolean value) { - + primaryKey_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { @@ -1249,13 +1382,16 @@ public Builder clearPrimaryKey() { return this; } - private boolean nullable_ ; + private boolean nullable_; /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -1263,27 +1399,33 @@ public boolean getNullable() { return nullable_; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @param value The nullable to set. * @return This builder for chaining. */ public Builder setNullable(boolean value) { - + nullable_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { @@ -1293,13 +1435,16 @@ public Builder clearNullable() { return this; } - private int ordinalPosition_ ; + private int ordinalPosition_; /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -1307,27 +1452,33 @@ public int getOrdinalPosition() { return ordinalPosition_; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @param value The ordinalPosition to set. * @return This builder for chaining. */ public Builder setOrdinalPosition(int value) { - + ordinalPosition_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { @@ -1336,9 +1487,9 @@ public Builder clearOrdinalPosition() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1348,12 +1499,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleColumn) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleColumn) private static final com.google.cloud.datastream.v1alpha1.OracleColumn DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleColumn(); } @@ -1362,27 +1513,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleColumn parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1397,6 +1548,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java index b338d0bad6e4..7d1e8da8dc40 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java @@ -1,128 +1,177 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleColumnOrBuilder extends +public interface OracleColumnOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleColumn) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ java.lang.String getColumnName(); /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The bytes for columnName. */ - com.google.protobuf.ByteString - getColumnNameBytes(); + com.google.protobuf.ByteString getColumnNameBytes(); /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ java.lang.String getDataType(); /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The bytes for dataType. */ - com.google.protobuf.ByteString - getDataTypeBytes(); + com.google.protobuf.ByteString getDataTypeBytes(); /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ int getLength(); /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ int getPrecision(); /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ int getScale(); /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ java.lang.String getEncoding(); /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The bytes for encoding. */ - com.google.protobuf.ByteString - getEncodingBytes(); + com.google.protobuf.ByteString getEncodingBytes(); /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ boolean getPrimaryKey(); /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ boolean getNullable(); /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java index c1607c7cc730..a49a3ca382e2 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleProfile} */ -public final class OracleProfile extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleProfile extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleProfile) OracleProfileOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleProfile.newBuilder() to construct. private OracleProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleProfile() { hostname_ = ""; username_ = ""; @@ -28,50 +46,54 @@ private OracleProfile() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleProfile(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleProfile.class, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleProfile.class, + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); } public static final int HOSTNAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object hostname_ = ""; /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ @java.lang.Override @@ -80,29 +102,29 @@ public java.lang.String getHostname() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; } } /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -113,11 +135,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_ = 0; /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -126,14 +151,18 @@ public int getPort() { } public static final int USERNAME_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object username_ = ""; /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ @java.lang.Override @@ -142,29 +171,29 @@ public java.lang.String getUsername() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; } } /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ @java.lang.Override - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -173,14 +202,18 @@ public java.lang.String getUsername() { } public static final int PASSWORD_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object password_ = ""; /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ @java.lang.Override @@ -189,29 +222,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -220,14 +253,18 @@ public java.lang.String getPassword() { } public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object databaseService_ = ""; /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ @java.lang.Override @@ -236,29 +273,29 @@ public java.lang.String getDatabaseService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; } } /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatabaseServiceBytes() { + public com.google.protobuf.ByteString getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseService_ = b; return b; } else { @@ -267,32 +304,36 @@ public java.lang.String getDatabaseService() { } public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; + private static final class ConnectionAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> connectionAttributes_; + private com.google.protobuf.MapField connectionAttributes_; + private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } + public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
    * Connection string attributes
    * 
@@ -300,20 +341,21 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -325,6 +367,8 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -332,17 +376,20 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Connection string attributes
    * 
@@ -350,9 +397,10 @@ java.lang.String getConnectionAttributesOrDefault( * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -362,6 +410,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,8 +422,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -390,8 +438,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, @@ -409,8 +456,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -421,15 +467,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseService_); } - for (java.util.Map.Entry entry - : internalGetConnectionAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - connectionAttributes__ = ConnectionAttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, connectionAttributes__); + for (java.util.Map.Entry entry : + internalGetConnectionAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry connectionAttributes__ = + ConnectionAttributesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, connectionAttributes__); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -439,25 +485,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleProfile other = (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; - - if (!getHostname() - .equals(other.getHostname())) return false; - if (getPort() - != other.getPort()) return false; - if (!getUsername() - .equals(other.getUsername())) return false; - if (!getPassword() - .equals(other.getPassword())) return false; - if (!getDatabaseService() - .equals(other.getDatabaseService())) return false; - if (!internalGetConnectionAttributes().equals( - other.internalGetConnectionAttributes())) return false; + com.google.cloud.datastream.v1alpha1.OracleProfile other = + (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; + + if (!getHostname().equals(other.getHostname())) return false; + if (getPort() != other.getPort()) return false; + if (!getUsername().equals(other.getUsername())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (!getDatabaseService().equals(other.getDatabaseService())) return false; + if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -489,151 +531,155 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleProfile parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleProfile prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle database profile.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleProfile} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleProfile) com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 6: return internalGetConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 6: return internalGetMutableConnectionAttributes(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleProfile.class, com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleProfile.class, + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -648,9 +694,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; } @java.lang.Override @@ -669,8 +715,11 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfile buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleProfile result = new com.google.cloud.datastream.v1alpha1.OracleProfile(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.OracleProfile result = + new com.google.cloud.datastream.v1alpha1.OracleProfile(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -702,38 +751,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleProfile re public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleProfile) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile) other); } else { super.mergeFrom(other); return this; @@ -741,7 +791,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) + return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; bitField0_ |= 0x00000001; @@ -765,8 +816,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile othe bitField0_ |= 0x00000010; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom( - other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -794,46 +844,56 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - hostname_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - port_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - username_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - password_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - databaseService_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - com.google.protobuf.MapEntry - connectionAttributes__ = input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableConnectionAttributes().getMutableMap().put( - connectionAttributes__.getKey(), connectionAttributes__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + hostname_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + databaseService_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry + connectionAttributes__ = + input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectionAttributes() + .getMutableMap() + .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -843,22 +903,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object hostname_ = ""; /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ public java.lang.String getHostname() { java.lang.Object ref = hostname_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); hostname_ = s; return s; @@ -867,20 +930,21 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString - getHostnameBytes() { + public com.google.protobuf.ByteString getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); hostname_ = b; return b; } else { @@ -888,28 +952,35 @@ public java.lang.String getHostname() { } } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostname(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } hostname_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearHostname() { @@ -919,17 +990,21 @@ public Builder clearHostname() { return this; } /** + * + * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for hostname to set. * @return This builder for chaining. */ - public Builder setHostnameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); hostname_ = value; bitField0_ |= 0x00000001; @@ -937,13 +1012,16 @@ public Builder setHostnameBytes( return this; } - private int port_ ; + private int port_; /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -951,27 +1029,33 @@ public int getPort() { return port_; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @param value The port to set. * @return This builder for chaining. */ public Builder setPort(int value) { - + port_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { @@ -983,18 +1067,20 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1003,20 +1089,21 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - public com.google.protobuf.ByteString - getUsernameBytes() { + public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); username_ = b; return b; } else { @@ -1024,28 +1111,35 @@ public java.lang.String getUsername() { } } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } username_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearUsername() { @@ -1055,17 +1149,21 @@ public Builder clearUsername() { return this; } /** + * + * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for username to set. * @return This builder for chaining. */ - public Builder setUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); username_ = value; bitField0_ |= 0x00000004; @@ -1075,18 +1173,20 @@ public Builder setUsernameBytes( private java.lang.Object password_ = ""; /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1095,20 +1195,21 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - public com.google.protobuf.ByteString - getPasswordBytes() { + public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); password_ = b; return b; } else { @@ -1116,28 +1217,35 @@ public java.lang.String getPassword() { } } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } password_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPassword() { @@ -1147,17 +1255,21 @@ public Builder clearPassword() { return this; } /** + * + * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); password_ = value; bitField0_ |= 0x00000008; @@ -1167,18 +1279,20 @@ public Builder setPasswordBytes( private java.lang.Object databaseService_ = ""; /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ public java.lang.String getDatabaseService() { java.lang.Object ref = databaseService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; @@ -1187,20 +1301,21 @@ public java.lang.String getDatabaseService() { } } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ - public com.google.protobuf.ByteString - getDatabaseServiceBytes() { + public com.google.protobuf.ByteString getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); databaseService_ = b; return b; } else { @@ -1208,28 +1323,35 @@ public java.lang.String getDatabaseService() { } } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseService( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseService(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } databaseService_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatabaseService() { @@ -1239,17 +1361,21 @@ public Builder clearDatabaseService() { return this; } /** + * + * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseServiceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); databaseService_ = value; bitField0_ |= 0x00000010; @@ -1257,8 +1383,8 @@ public Builder setDatabaseServiceBytes( return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> connectionAttributes_; + private com.google.protobuf.MapField connectionAttributes_; + private com.google.protobuf.MapField internalGetConnectionAttributes() { if (connectionAttributes_ == null) { @@ -1267,11 +1393,13 @@ public Builder setDatabaseServiceBytes( } return connectionAttributes_; } + private com.google.protobuf.MapField internalGetMutableConnectionAttributes() { if (connectionAttributes_ == null) { - connectionAttributes_ = com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); + connectionAttributes_ = + com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); } if (!connectionAttributes_.isMutable()) { connectionAttributes_ = connectionAttributes_.copy(); @@ -1280,10 +1408,13 @@ public Builder setDatabaseServiceBytes( onChanged(); return connectionAttributes_; } + public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1291,20 +1422,21 @@ public int getConnectionAttributesCount() { * map<string, string> connection_attributes = 6; */ @java.lang.Override - public boolean containsConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetConnectionAttributes().getMap().containsKey(key); } - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getConnectionAttributes() { return getConnectionAttributesMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1316,6 +1448,8 @@ public java.util.Map getConnectionAttributes return internalGetConnectionAttributes().getMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1323,17 +1457,20 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + public /* nullable */ java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Connection string attributes
      * 
@@ -1341,9 +1478,10 @@ java.lang.String getConnectionAttributesOrDefault( * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1351,53 +1489,57 @@ public java.lang.String getConnectionAttributesOrThrow( } return map.get(key); } + public Builder clearConnectionAttributes() { bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableConnectionAttributes().getMutableMap() - .clear(); + internalGetMutableConnectionAttributes().getMutableMap().clear(); return this; } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder removeConnectionAttributes( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableConnectionAttributes().getMutableMap() - .remove(key); + public Builder removeConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConnectionAttributes().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableConnectionAttributes() { + public java.util.Map getMutableConnectionAttributes() { bitField0_ |= 0x00000020; return internalGetMutableConnectionAttributes().getMutableMap(); } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putConnectionAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConnectionAttributes().getMutableMap().put(key, value); bitField0_ |= 0x00000020; return this; } /** + * + * *
      * Connection string attributes
      * 
@@ -1406,14 +1548,13 @@ public Builder putConnectionAttributes( */ public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap() - .putAll(values); + internalGetMutableConnectionAttributes().getMutableMap().putAll(values); bitField0_ |= 0x00000020; return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1423,12 +1564,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleProfile) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleProfile) private static final com.google.cloud.datastream.v1alpha1.OracleProfile DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleProfile(); } @@ -1437,27 +1578,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleProfile parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleProfile parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1472,6 +1613,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java index 582e3f25168a..d18aa9ccf56b 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java @@ -1,103 +1,144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleProfileOrBuilder extends +public interface OracleProfileOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleProfile) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The hostname. */ java.lang.String getHostname(); /** + * + * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for hostname. */ - com.google.protobuf.ByteString - getHostnameBytes(); + com.google.protobuf.ByteString getHostnameBytes(); /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ int getPort(); /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The username. */ java.lang.String getUsername(); /** + * + * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for username. */ - com.google.protobuf.ByteString - getUsernameBytes(); + com.google.protobuf.ByteString getUsernameBytes(); /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The password. */ java.lang.String getPassword(); /** + * + * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for password. */ - com.google.protobuf.ByteString - getPasswordBytes(); + com.google.protobuf.ByteString getPasswordBytes(); /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The databaseService. */ java.lang.String getDatabaseService(); /** + * + * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for databaseService. */ - com.google.protobuf.ByteString - getDatabaseServiceBytes(); + com.google.protobuf.ByteString getDatabaseServiceBytes(); /** + * + * *
    * Connection string attributes
    * 
@@ -106,30 +147,31 @@ public interface OracleProfileOrBuilder extends */ int getConnectionAttributesCount(); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - boolean containsConnectionAttributes( - java.lang.String key); - /** - * Use {@link #getConnectionAttributesMap()} instead. - */ + boolean containsConnectionAttributes(java.lang.String key); + /** Use {@link #getConnectionAttributesMap()} instead. */ @java.lang.Deprecated - java.util.Map - getConnectionAttributes(); + java.util.Map getConnectionAttributes(); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.util.Map - getConnectionAttributesMap(); + java.util.Map getConnectionAttributesMap(); /** + * + * *
    * Connection string attributes
    * 
@@ -137,17 +179,18 @@ boolean containsConnectionAttributes( * map<string, string> connection_attributes = 6; */ /* nullable */ -java.lang.String getConnectionAttributesOrDefault( + java.lang.String getConnectionAttributesOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrThrow( - java.lang.String key); + java.lang.String getConnectionAttributesOrThrow(java.lang.String key); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java index c20853c55526..fbb5e4fe71f7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle database structure.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleRdbms} */ -public final class OracleRdbms extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleRdbms extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleRdbms) OracleRdbmsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleRdbms.newBuilder() to construct. private OracleRdbms(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleRdbms() { oracleSchemas_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleRdbms(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleRdbms.class, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleRdbms.class, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); } public static final int ORACLE_SCHEMAS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List oracleSchemas_; /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -63,6 +85,8 @@ public java.util.List getOrac return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -70,11 +94,13 @@ public java.util.List getOrac * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getOracleSchemasOrBuilderList() { return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -86,6 +112,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -97,6 +125,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -110,6 +140,7 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -121,8 +152,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -136,8 +166,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < oracleSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, oracleSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, oracleSchemas_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -147,15 +176,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleRdbms)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleRdbms other = (com.google.cloud.datastream.v1alpha1.OracleRdbms) obj; + com.google.cloud.datastream.v1alpha1.OracleRdbms other = + (com.google.cloud.datastream.v1alpha1.OracleRdbms) obj; - if (!getOracleSchemasList() - .equals(other.getOracleSchemasList())) return false; + if (!getOracleSchemasList().equals(other.getOracleSchemasList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,130 +205,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleRdbms parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleRdbms prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle database structure.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleRdbms} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleRdbms) com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleRdbms.class, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleRdbms.class, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -315,9 +350,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; } @java.lang.Override @@ -336,14 +371,18 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleRdbms result = new com.google.cloud.datastream.v1alpha1.OracleRdbms(this); + com.google.cloud.datastream.v1alpha1.OracleRdbms result = + new com.google.cloud.datastream.v1alpha1.OracleRdbms(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleRdbms result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.OracleRdbms result) { if (oracleSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); @@ -363,38 +402,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleRdbms resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleRdbms) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) other); } else { super.mergeFrom(other); return this; @@ -402,7 +442,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) + return this; if (oracleSchemasBuilder_ == null) { if (!other.oracleSchemas_.isEmpty()) { if (oracleSchemas_.isEmpty()) { @@ -421,9 +462,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) oracleSchemasBuilder_ = null; oracleSchemas_ = other.oracleSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - oracleSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleSchemasFieldBuilder() : null; + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleSchemasFieldBuilder() + : null; } else { oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); } @@ -455,25 +497,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.OracleSchema m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), - extensionRegistry); - if (oracleSchemasBuilder_ == null) { - ensureOracleSchemasIsMutable(); - oracleSchemas_.add(m); - } else { - oracleSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.OracleSchema m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), + extensionRegistry); + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(m); + } else { + oracleSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -483,28 +527,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List oracleSchemas_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleSchemasIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = new java.util.ArrayList(oracleSchemas_); + oracleSchemas_ = + new java.util.ArrayList( + oracleSchemas_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> oracleSchemasBuilder_; + com.google.cloud.datastream.v1alpha1.OracleSchema, + com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> + oracleSchemasBuilder_; /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List getOracleSchemasList() { + public java.util.List + getOracleSchemasList() { if (oracleSchemasBuilder_ == null) { return java.util.Collections.unmodifiableList(oracleSchemas_); } else { @@ -512,6 +566,8 @@ public java.util.List getOrac } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -526,6 +582,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -540,6 +598,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -561,6 +621,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -579,6 +641,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -599,6 +663,8 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1alpha1.OracleSchem return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -620,6 +686,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -638,6 +706,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -656,6 +726,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -666,8 +738,7 @@ public Builder addAllOracleSchemas( java.lang.Iterable values) { if (oracleSchemasBuilder_ == null) { ensureOracleSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleSchemas_); onChanged(); } else { oracleSchemasBuilder_.addAllMessages(values); @@ -675,6 +746,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -692,6 +765,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -709,6 +784,8 @@ public Builder removeOracleSchemas(int index) { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -720,6 +797,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema return getOracleSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -729,19 +808,22 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( int index) { if (oracleSchemasBuilder_ == null) { - return oracleSchemas_.get(index); } else { + return oracleSchemas_.get(index); + } else { return oracleSchemasBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasOrBuilderList() { + public java.util.List + getOracleSchemasOrBuilderList() { if (oracleSchemasBuilder_ != null) { return oracleSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -749,6 +831,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -756,10 +840,12 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder() { - return getOracleSchemasFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -768,26 +854,35 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchema */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder( int index) { - return getOracleSchemasFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder() + .addBuilder( + index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasBuilderList() { + public java.util.List + getOracleSchemasBuilderList() { return getOracleSchemasFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSchema, + com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> getOracleSchemasFieldBuilder() { if (oracleSchemasBuilder_ == null) { - oracleSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( + oracleSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSchema, + com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( oracleSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -796,9 +891,9 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchema } return oracleSchemasBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -808,12 +903,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleRdbms) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleRdbms) private static final com.google.cloud.datastream.v1alpha1.OracleRdbms DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleRdbms(); } @@ -822,27 +917,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleRdbms parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleRdbms parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,6 +952,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java index 82b3cf952cd1..289431c57ec1 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleRdbmsOrBuilder extends +public interface OracleRdbmsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleRdbms) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List - getOracleSchemasList(); + java.util.List getOracleSchemasList(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -25,6 +44,8 @@ public interface OracleRdbmsOrBuilder extends */ com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int index); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -33,21 +54,24 @@ public interface OracleRdbmsOrBuilder extends */ int getOracleSchemasCount(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List + java.util.List getOracleSchemasOrBuilderList(); /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java index 13411b1d0340..83a2223cdb5c 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSchema} */ -public final class OracleSchema extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleSchema extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleSchema) OracleSchemaOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleSchema.newBuilder() to construct. private OracleSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleSchema() { schemaName_ = ""; oracleTables_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private OracleSchema() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleSchema(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSchema.class, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSchema.class, + com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); } public static final int SCHEMA_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object schemaName_ = ""; /** + * + * *
    * Schema name.
    * 
* * string schema_name = 1; + * * @return The schemaName. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getSchemaName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; } } /** + * + * *
    * Schema name.
    * 
* * string schema_name = 1; + * * @return The bytes for schemaName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getSchemaName() { } public static final int ORACLE_TABLES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -111,6 +137,8 @@ public java.util.List getOracl return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -118,11 +146,13 @@ public java.util.List getOracl * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getOracleTablesOrBuilderList() { return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -134,6 +164,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -145,6 +177,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -158,6 +192,7 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,8 +204,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); } @@ -190,8 +224,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); } for (int i = 0; i < oracleTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, oracleTables_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleTables_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -201,17 +234,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleSchema)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleSchema other = (com.google.cloud.datastream.v1alpha1.OracleSchema) obj; + com.google.cloud.datastream.v1alpha1.OracleSchema other = + (com.google.cloud.datastream.v1alpha1.OracleSchema) obj; - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - if (!getOracleTablesList() - .equals(other.getOracleTablesList())) return false; + if (!getSchemaName().equals(other.getSchemaName())) return false; + if (!getOracleTablesList().equals(other.getOracleTablesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -235,129 +267,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSchema parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleSchema prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle schema.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSchema} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleSchema) com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSchema.class, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSchema.class, + com.google.cloud.datastream.v1alpha1.OracleSchema.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleSchema.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -374,9 +412,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; } @java.lang.Override @@ -395,14 +433,18 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSchema buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleSchema result = new com.google.cloud.datastream.v1alpha1.OracleSchema(this); + com.google.cloud.datastream.v1alpha1.OracleSchema result = + new com.google.cloud.datastream.v1alpha1.OracleSchema(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleSchema result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.OracleSchema result) { if (oracleTablesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); @@ -425,38 +467,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSchema res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleSchema) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSchema)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSchema) other); } else { super.mergeFrom(other); return this; @@ -464,7 +507,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) + return this; if (!other.getSchemaName().isEmpty()) { schemaName_ = other.schemaName_; bitField0_ |= 0x00000001; @@ -488,9 +532,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000002); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleTablesFieldBuilder() : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleTablesFieldBuilder() + : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -522,30 +567,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - schemaName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1alpha1.OracleTable m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleTable.parser(), - extensionRegistry); - if (oracleTablesBuilder_ == null) { - ensureOracleTablesIsMutable(); - oracleTables_.add(m); - } else { - oracleTablesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + schemaName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1alpha1.OracleTable m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleTable.parser(), + extensionRegistry); + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(m); + } else { + oracleTablesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,22 +603,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object schemaName_ = ""; /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @return The schemaName. */ public java.lang.String getSchemaName() { java.lang.Object ref = schemaName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schemaName_ = s; return s; @@ -579,20 +630,21 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { + public com.google.protobuf.ByteString getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schemaName_ = b; return b; } else { @@ -600,28 +652,35 @@ public java.lang.String getSchemaName() { } } /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } schemaName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @return This builder for chaining. */ public Builder clearSchemaName() { @@ -631,17 +690,21 @@ public Builder clearSchemaName() { return this; } /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @param value The bytes for schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); schemaName_ = value; bitField0_ |= 0x00000001; @@ -650,18 +713,26 @@ public Builder setSchemaNameBytes( } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleTables_ = new java.util.ArrayList(oracleTables_); + oracleTables_ = + new java.util.ArrayList( + oracleTables_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> oracleTablesBuilder_; + com.google.cloud.datastream.v1alpha1.OracleTable, + com.google.cloud.datastream.v1alpha1.OracleTable.Builder, + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> + oracleTablesBuilder_; /** + * + * *
      * Tables in the schema.
      * 
@@ -676,6 +747,8 @@ public java.util.List getOracl } } /** + * + * *
      * Tables in the schema.
      * 
@@ -690,6 +763,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -704,6 +779,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde } } /** + * + * *
      * Tables in the schema.
      * 
@@ -725,6 +802,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -743,6 +822,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -763,6 +844,8 @@ public Builder addOracleTables(com.google.cloud.datastream.v1alpha1.OracleTable return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -784,6 +867,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -802,6 +887,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -820,6 +907,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -830,8 +919,7 @@ public Builder addAllOracleTables( java.lang.Iterable values) { if (oracleTablesBuilder_ == null) { ensureOracleTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, oracleTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleTables_); onChanged(); } else { oracleTablesBuilder_.addAllMessages(values); @@ -839,6 +927,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -856,6 +946,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -873,6 +965,8 @@ public Builder removeOracleTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -884,6 +978,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB return getOracleTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
@@ -893,19 +989,22 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( int index) { if (oracleTablesBuilder_ == null) { - return oracleTables_.get(index); } else { + return oracleTables_.get(index); + } else { return oracleTablesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesOrBuilderList() { + public java.util.List + getOracleTablesOrBuilderList() { if (oracleTablesBuilder_ != null) { return oracleTablesBuilder_.getMessageOrBuilderList(); } else { @@ -913,6 +1012,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } } /** + * + * *
      * Tables in the schema.
      * 
@@ -920,10 +1021,12 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder() { - return getOracleTablesFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
@@ -932,37 +1035,42 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesB */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder( int index) { - return getOracleTablesFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** + * + * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesBuilderList() { + public java.util.List + getOracleTablesBuilderList() { return getOracleTablesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleTable, + com.google.cloud.datastream.v1alpha1.OracleTable.Builder, + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> getOracleTablesFieldBuilder() { if (oracleTablesBuilder_ == null) { - oracleTablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder>( - oracleTables_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + oracleTablesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleTable, + com.google.cloud.datastream.v1alpha1.OracleTable.Builder, + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder>( + oracleTables_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); oracleTables_ = null; } return oracleTablesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1080,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleSchema) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleSchema) private static final com.google.cloud.datastream.v1alpha1.OracleSchema DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleSchema(); } @@ -986,27 +1094,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1021,6 +1129,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java index 639a404fa068..b102cf539f43 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSchemaOrBuilder extends +public interface OracleSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Schema name.
    * 
* * string schema_name = 1; + * * @return The schemaName. */ java.lang.String getSchemaName(); /** + * + * *
    * Schema name.
    * 
* * string schema_name = 1; + * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString - getSchemaNameBytes(); + com.google.protobuf.ByteString getSchemaNameBytes(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List - getOracleTablesList(); + java.util.List getOracleTablesList(); /** + * + * *
    * Tables in the schema.
    * 
@@ -45,6 +69,8 @@ public interface OracleSchemaOrBuilder extends */ com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int index); /** + * + * *
    * Tables in the schema.
    * 
@@ -53,21 +79,24 @@ public interface OracleSchemaOrBuilder extends */ int getOracleTablesCount(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List + java.util.List getOracleTablesOrBuilderList(); /** + * + * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder(int index); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java index 92cf8a22ac9b..e04c97a2170d 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java @@ -1,60 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle data source configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSourceConfig} */ -public final class OracleSourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleSourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleSourceConfig) OracleSourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleSourceConfig.newBuilder() to construct. private OracleSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleSourceConfig() { - } + + private OracleSourceConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleSourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); } public static final int ALLOWLIST_FIELD_NUMBER = 1; private com.google.cloud.datastream.v1alpha1.OracleRdbms allowlist_; /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : allowlist_; } /** + * + * *
    * Oracle objects to include in the stream.
    * 
@@ -82,17 +110,22 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrBuilder() { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : allowlist_; } public static final int REJECTLIST_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.OracleRdbms rejectlist_; /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ @java.lang.Override @@ -100,18 +133,25 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : rejectlist_; } /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
@@ -120,10 +160,13 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOrBuilder() { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : rejectlist_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -135,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -153,12 +195,10 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -168,22 +208,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = + (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist() - .equals(other.getAllowlist())) return false; + if (!getAllowlist().equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist() - .equals(other.getRejectlist())) return false; + if (!getRejectlist().equals(other.getRejectlist())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -210,129 +249,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleSourceConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.OracleSourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Oracle data source configuration
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleSourceConfig) com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.class, + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +397,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; } @java.lang.Override @@ -372,8 +418,11 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleSourceConfig result = new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.OracleSourceConfig result = + new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -381,14 +430,10 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSourceConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.allowlist_ = allowlistBuilder_ == null - ? allowlist_ - : allowlistBuilder_.build(); + result.allowlist_ = allowlistBuilder_ == null ? allowlist_ : allowlistBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.rejectlist_ = rejectlistBuilder_ == null - ? rejectlist_ - : rejectlistBuilder_.build(); + result.rejectlist_ = rejectlistBuilder_ == null ? rejectlist_ : rejectlistBuilder_.build(); } } @@ -396,38 +441,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleSourceConf public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleSourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) other); } else { super.mergeFrom(other); return this; @@ -435,7 +481,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) + return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -468,26 +515,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getAllowlistFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRejectlistFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getAllowlistFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getRejectlistFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -497,38 +543,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.datastream.v1alpha1.OracleRdbms allowlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> allowlistBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + allowlistBuilder_; /** + * + * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ public boolean hasAllowlist() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return The allowlist. */ public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { if (allowlistBuilder_ == null) { - return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : allowlist_; } else { return allowlistBuilder_.getMessage(); } } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -549,6 +609,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms val return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -567,6 +629,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -575,9 +639,10 @@ public Builder setAllowlist( */ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (allowlistBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - allowlist_ != null && - allowlist_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && allowlist_ != null + && allowlist_ + != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { getAllowlistBuilder().mergeFrom(value); } else { allowlist_ = value; @@ -590,6 +655,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -607,6 +674,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -619,6 +688,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getAllowlistBuil return getAllowlistFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -629,11 +700,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null ? - com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; + return allowlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : allowlist_; } } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -641,14 +715,17 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getAllowlist(), - getParentForChildren(), - isClean()); + allowlistBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getAllowlist(), getParentForChildren(), isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -656,34 +733,47 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB private com.google.cloud.datastream.v1alpha1.OracleRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + rejectlistBuilder_; /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return The rejectlist. */ public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { if (rejectlistBuilder_ == null) { - return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : rejectlist_; } else { return rejectlistBuilder_.getMessage(); } } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -704,6 +794,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -722,6 +814,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -730,9 +824,10 @@ public Builder setRejectlist( */ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (rejectlistBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - rejectlist_ != null && - rejectlist_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && rejectlist_ != null + && rejectlist_ + != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { getRejectlistBuilder().mergeFrom(value); } else { rejectlist_ = value; @@ -745,6 +840,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -762,6 +859,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -774,6 +873,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getRejectlistBui return getRejectlistFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -784,11 +885,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null ? - com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; + return rejectlist_ == null + ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() + : rejectlist_; } } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -796,21 +900,24 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getRejectlist(), - getParentForChildren(), - isClean()); + rejectlistBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getRejectlist(), getParentForChildren(), isClean()); rejectlist_ = null; } return rejectlistBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -820,12 +927,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleSourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleSourceConfig) private static final com.google.cloud.datastream.v1alpha1.OracleSourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(); } @@ -834,27 +941,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OracleSourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OracleSourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -869,6 +976,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java index 351b94f331fe..2a8dd4e18eb0 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSourceConfigOrBuilder extends +public interface OracleSourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** + * + * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; + * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist(); /** + * + * *
    * Oracle objects to include in the stream.
    * 
@@ -35,24 +59,32 @@ public interface OracleSourceConfigOrBuilder extends com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrBuilder(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; + * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist(); /** + * + * *
    * Oracle objects to exclude from the stream.
    * 
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java similarity index 74% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java index 8e3675f5a3d4..859418867d39 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Oracle table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleTable} */ -public final class OracleTable extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OracleTable extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleTable) OracleTableOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OracleTable.newBuilder() to construct. private OracleTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OracleTable() { tableName_ = ""; oracleColumns_ = java.util.Collections.emptyList(); @@ -26,38 +44,43 @@ private OracleTable() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OracleTable(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleTable.class, com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleTable.class, + com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); } public static final int TABLE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object tableName_ = ""; /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ @java.lang.Override @@ -66,29 +89,29 @@ public java.lang.String getTableName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; } } /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The bytes for tableName. */ @java.lang.Override - public com.google.protobuf.ByteString - getTableNameBytes() { + public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableName_ = b; return b; } else { @@ -97,9 +120,12 @@ public java.lang.String getTableName() { } public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List oracleColumns_; /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -113,6 +139,8 @@ public java.util.List getOrac
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -122,11 +150,13 @@ public java.util.List getOrac
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getOracleColumnsOrBuilderList() {
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -140,6 +170,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -153,6 +185,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
     return oracleColumns_.get(index);
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -168,6 +202,7 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -179,8 +214,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -200,8 +234,7 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < oracleColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, oracleColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleColumns_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -211,17 +244,16 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.OracleTable other = (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
+    com.google.cloud.datastream.v1alpha1.OracleTable other =
+        (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
 
-    if (!getTableName()
-        .equals(other.getTableName())) return false;
-    if (!getOracleColumnsList()
-        .equals(other.getOracleColumnsList())) return false;
+    if (!getTableName().equals(other.getTableName())) return false;
+    if (!getOracleColumnsList().equals(other.getOracleColumnsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -244,130 +276,136 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.OracleTable parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.OracleTable prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Oracle table.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleTable} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.OracleTable) com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.OracleTable.class, com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); + com.google.cloud.datastream.v1alpha1.OracleTable.class, + com.google.cloud.datastream.v1alpha1.OracleTable.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.OracleTable.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; } @java.lang.Override @@ -405,14 +443,18 @@ public com.google.cloud.datastream.v1alpha1.OracleTable build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleTable buildPartial() { - com.google.cloud.datastream.v1alpha1.OracleTable result = new com.google.cloud.datastream.v1alpha1.OracleTable(this); + com.google.cloud.datastream.v1alpha1.OracleTable result = + new com.google.cloud.datastream.v1alpha1.OracleTable(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.OracleTable result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.OracleTable result) { if (oracleColumnsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); @@ -435,38 +477,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.OracleTable resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.OracleTable) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleTable)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.OracleTable) other); } else { super.mergeFrom(other); return this; @@ -474,7 +517,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) + return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; bitField0_ |= 0x00000001; @@ -498,9 +542,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000002); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleColumnsFieldBuilder() : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleColumnsFieldBuilder() + : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -532,30 +577,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - tableName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.datastream.v1alpha1.OracleColumn m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), - extensionRegistry); - if (oracleColumnsBuilder_ == null) { - ensureOracleColumnsIsMutable(); - oracleColumns_.add(m); - } else { - oracleColumnsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + tableName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.datastream.v1alpha1.OracleColumn m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), + extensionRegistry); + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(m); + } else { + oracleColumnsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -565,22 +613,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object tableName_ = ""; /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return The tableName. */ public java.lang.String getTableName() { java.lang.Object ref = tableName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); tableName_ = s; return s; @@ -589,20 +640,21 @@ public java.lang.String getTableName() { } } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString - getTableNameBytes() { + public com.google.protobuf.ByteString getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); tableName_ = b; return b; } else { @@ -610,28 +662,35 @@ public java.lang.String getTableName() { } } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } tableName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return This builder for chaining. */ public Builder clearTableName() { @@ -641,17 +700,21 @@ public Builder clearTableName() { return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @param value The bytes for tableName to set. * @return This builder for chaining. */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); tableName_ = value; bitField0_ |= 0x00000001; @@ -660,18 +723,26 @@ public Builder setTableNameBytes( } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - oracleColumns_ = new java.util.ArrayList(oracleColumns_); + oracleColumns_ = + new java.util.ArrayList( + oracleColumns_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> oracleColumnsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleColumn, + com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, + com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> + oracleColumnsBuilder_; /** + * + * *
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -680,7 +751,8 @@ private void ensureOracleColumnsIsMutable() {
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List getOracleColumnsList() {
+    public java.util.List
+        getOracleColumnsList() {
       if (oracleColumnsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(oracleColumns_);
       } else {
@@ -688,6 +760,8 @@ public java.util.List getOrac
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -704,6 +778,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -720,6 +796,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -743,6 +821,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -763,6 +843,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -785,6 +867,8 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1alpha1.OracleColum
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -808,6 +892,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -828,6 +914,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -848,6 +936,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -860,8 +950,7 @@ public Builder addAllOracleColumns(
         java.lang.Iterable values) {
       if (oracleColumnsBuilder_ == null) {
         ensureOracleColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, oracleColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleColumns_);
         onChanged();
       } else {
         oracleColumnsBuilder_.addAllMessages(values);
@@ -869,6 +958,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -888,6 +979,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -907,6 +1000,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -920,6 +1015,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
       return getOracleColumnsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -931,11 +1028,14 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
     public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
         int index) {
       if (oracleColumnsBuilder_ == null) {
-        return oracleColumns_.get(index);  } else {
+        return oracleColumns_.get(index);
+      } else {
         return oracleColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -944,8 +1044,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List 
-         getOracleColumnsOrBuilderList() {
+    public java.util.List
+        getOracleColumnsOrBuilderList() {
       if (oracleColumnsBuilder_ != null) {
         return oracleColumnsBuilder_.getMessageOrBuilderList();
       } else {
@@ -953,6 +1053,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -962,10 +1064,12 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder() {
-      return getOracleColumnsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -976,10 +1080,13 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder(
         int index) {
-      return getOracleColumnsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -988,16 +1095,22 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List 
-         getOracleColumnsBuilderList() {
+    public java.util.List
+        getOracleColumnsBuilderList() {
       return getOracleColumnsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> 
+            com.google.cloud.datastream.v1alpha1.OracleColumn,
+            com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
+            com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>
         getOracleColumnsFieldBuilder() {
       if (oracleColumnsBuilder_ == null) {
-        oracleColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
+        oracleColumnsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1alpha1.OracleColumn,
+                com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
+                com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
                 oracleColumns_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -1006,9 +1119,9 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
       }
       return oracleColumnsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1018,12 +1131,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.OracleTable)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.OracleTable)
   private static final com.google.cloud.datastream.v1alpha1.OracleTable DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.OracleTable();
   }
@@ -1032,27 +1145,27 @@ public static com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public OracleTable parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public OracleTable parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1067,6 +1180,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
index f47acc07a4da..effd7072d927 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
@@ -1,33 +1,56 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface OracleTableOrBuilder extends
+public interface OracleTableOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ java.lang.String getTableName(); /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The bytes for tableName. */ - com.google.protobuf.ByteString - getTableNameBytes(); + com.google.protobuf.ByteString getTableNameBytes(); /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -36,9 +59,10 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List 
-      getOracleColumnsList();
+  java.util.List getOracleColumnsList();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -49,6 +73,8 @@ public interface OracleTableOrBuilder extends
    */
   com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int index);
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -59,6 +85,8 @@ public interface OracleTableOrBuilder extends
    */
   int getOracleColumnsCount();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -67,9 +95,11 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List 
+  java.util.List
       getOracleColumnsOrBuilderList();
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -78,6 +108,5 @@ public interface OracleTableOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
similarity index 62%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
index 8af1bd02145b..e16cb427205e 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
+ *
+ *
  * 
  * The PrivateConnection resource is used to establish private connectivity
  * between Datastream and a customer's network.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
  */
-public final class PrivateConnection extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
     PrivateConnectionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PrivateConnection.newBuilder() to construct.
   private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PrivateConnection() {
     name_ = "";
     displayName_ = "";
@@ -28,55 +46,56 @@ private PrivateConnection() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PrivateConnection();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.PrivateConnection.class, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
+            com.google.cloud.datastream.v1alpha1.PrivateConnection.class,
+            com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Private Connection state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.PrivateConnection.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - * STATE_UNSPECIFIED = 0; - */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -85,6 +104,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -93,6 +114,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -103,11 +126,11 @@ public enum State UNRECOGNIZED(-1), ; - /** - * STATE_UNSPECIFIED = 0; - */ + /** STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -116,6 +139,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -124,6 +149,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -132,7 +159,6 @@ public enum State */ public static final int FAILED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -157,50 +183,53 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return CREATING; - case 2: return CREATED; - case 3: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return CREATED; + case 3: + return FAILED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -218,14 +247,18 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -234,29 +267,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -267,11 +300,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -279,11 +316,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -291,11 +332,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -305,11 +349,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -317,11 +365,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -329,11 +381,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -341,32 +396,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -374,20 +431,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -399,6 +457,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -406,17 +466,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -424,11 +486,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -436,14 +498,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -452,29 +518,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -485,37 +551,57 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 6; private int state_ = 0; /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { + com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = + com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED + : result; } public static final int ERROR_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1alpha1.Error error_; /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ @java.lang.Override @@ -523,37 +609,53 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error getError() { - return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() + : error_; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { - return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() + : error_; } public static final int VPC_PEERING_CONFIG_FIELD_NUMBER = 100; private com.google.cloud.datastream.v1alpha1.VpcPeeringConfig vpcPeeringConfig_; /** + * + * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ @java.lang.Override @@ -561,18 +663,25 @@ public boolean hasVpcPeeringConfig() { return vpcPeeringConfig_ != null; } /** + * + * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig() { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } /** + * + * *
    * VPC Peering Config
    * 
@@ -580,11 +689,15 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder + getVpcPeeringConfigOrBuilder() { + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -596,8 +709,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -607,16 +719,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, state_); } if (error_ != null) { @@ -638,37 +748,34 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); + if (state_ + != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); } if (vpcPeeringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, getVpcPeeringConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getVpcPeeringConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -678,39 +785,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.PrivateConnection)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.PrivateConnection other = (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; + com.google.cloud.datastream.v1alpha1.PrivateConnection other = + (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError() - .equals(other.getError())) return false; + if (!getError().equals(other.getError())) return false; } if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; if (hasVpcPeeringConfig()) { - if (!getVpcPeeringConfig() - .equals(other.getVpcPeeringConfig())) return false; + if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -755,96 +856,104 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The PrivateConnection resource is used to establish private connectivity
    * between Datastream and a customer's network.
@@ -852,55 +961,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
       com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.PrivateConnection.class, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
+              com.google.cloud.datastream.v1alpha1.PrivateConnection.class,
+              com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.PrivateConnection.newBuilder()
-    private Builder() {
+    private Builder() {}
 
-    }
-
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -933,9 +1039,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
     }
 
     @java.lang.Override
@@ -954,8 +1060,11 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.PrivateConnection buildPartial() {
-      com.google.cloud.datastream.v1alpha1.PrivateConnection result = new com.google.cloud.datastream.v1alpha1.PrivateConnection(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1alpha1.PrivateConnection result =
+          new com.google.cloud.datastream.v1alpha1.PrivateConnection(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -966,14 +1075,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -986,14 +1091,11 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
         result.state_ = state_;
       }
       if (((from_bitField0_ & 0x00000040) != 0)) {
-        result.error_ = errorBuilder_ == null
-            ? error_
-            : errorBuilder_.build();
+        result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000080) != 0)) {
-        result.vpcPeeringConfig_ = vpcPeeringConfigBuilder_ == null
-            ? vpcPeeringConfig_
-            : vpcPeeringConfigBuilder_.build();
+        result.vpcPeeringConfig_ =
+            vpcPeeringConfigBuilder_ == null ? vpcPeeringConfig_ : vpcPeeringConfigBuilder_.build();
       }
     }
 
@@ -1001,38 +1103,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectio
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.PrivateConnection) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnection)other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnection) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1040,7 +1143,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection other) {
-      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -1052,8 +1156,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -1095,64 +1198,68 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 48: {
-              state_ = input.readEnum();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 58: {
-              input.readMessage(
-                  getErrorFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 58
-            case 802: {
-              input.readMessage(
-                  getVpcPeeringConfigFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 802
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 48:
+              {
+                state_ = input.readEnum();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 58:
+              {
+                input.readMessage(getErrorFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 58
+            case 802:
+              {
+                input.readMessage(
+                    getVpcPeeringConfigFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 802
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1162,22 +1269,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1186,20 +1296,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1207,28 +1318,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -1238,17 +1356,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1258,39 +1380,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1306,14 +1447,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1324,17 +1468,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1347,11 +1495,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1364,11 +1516,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1376,36 +1532,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1413,39 +1581,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1461,14 +1648,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1479,17 +1669,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1502,11 +1696,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1519,11 +1717,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1531,56 +1733,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1589,10 +1801,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -1600,20 +1815,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -1625,6 +1841,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1632,17 +1850,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1650,91 +1870,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1743,20 +1967,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1764,28 +1989,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1795,17 +2027,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1815,22 +2051,33 @@ public Builder setDisplayNameBytes( private int state_ = 0; /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -1841,24 +2088,37 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = + com.google.cloud.datastream.v1alpha1.PrivateConnection.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1alpha1.PrivateConnection.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1872,11 +2132,16 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.PrivateConnection.S return this; } /** + * + * *
      * Output only. The state of the Private Connection.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { @@ -1888,39 +2153,58 @@ public Builder clearState() { private com.google.cloud.datastream.v1alpha1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorBuilder_; + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ public boolean hasError() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ public com.google.cloud.datastream.v1alpha1.Error getError() { if (errorBuilder_ == null) { - return error_ == null ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() + : error_; } else { return errorBuilder_.getMessage(); } } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError(com.google.cloud.datastream.v1alpha1.Error value) { if (errorBuilder_ == null) { @@ -1936,14 +2220,17 @@ public Builder setError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError( - com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder setError(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); } else { @@ -1954,17 +2241,21 @@ public Builder setError( return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - error_ != null && - error_ != com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && error_ != null + && error_ != com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); } else { error_ = value; @@ -1977,11 +2268,15 @@ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000040); @@ -1994,11 +2289,15 @@ public Builder clearError() { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorBuilder() { bitField0_ |= 0x00000040; @@ -2006,36 +2305,48 @@ public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorBuilder() { return getErrorFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { if (errorBuilder_ != null) { return errorBuilder_.getMessageOrBuilder(); } else { - return error_ == null ? - com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() : error_; + return error_ == null + ? com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance() + : error_; } } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorFieldBuilder() { if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + getError(), getParentForChildren(), isClean()); error_ = null; } return errorBuilder_; @@ -2043,41 +2354,55 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { private com.google.cloud.datastream.v1alpha1.VpcPeeringConfig vpcPeeringConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> vpcPeeringConfigBuilder_; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> + vpcPeeringConfigBuilder_; /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ public boolean hasVpcPeeringConfig() { return ((bitField0_ & 0x00000080) != 0); } /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig() { if (vpcPeeringConfigBuilder_ == null) { - return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } else { return vpcPeeringConfigBuilder_.getMessage(); } } /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { + public Builder setVpcPeeringConfig( + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2091,6 +2416,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeri return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2109,17 +2436,21 @@ public Builder setVpcPeeringConfig( return this; } /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { + public Builder mergeVpcPeeringConfig( + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - vpcPeeringConfig_ != null && - vpcPeeringConfig_ != com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000080) != 0) + && vpcPeeringConfig_ != null + && vpcPeeringConfig_ + != com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) { getVpcPeeringConfigBuilder().mergeFrom(value); } else { vpcPeeringConfig_ = value; @@ -2132,6 +2463,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPee return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2149,33 +2482,42 @@ public Builder clearVpcPeeringConfig() { return this; } /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder getVpcPeeringConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder + getVpcPeeringConfigBuilder() { bitField0_ |= 0x00000080; onChanged(); return getVpcPeeringConfigFieldBuilder().getBuilder(); } /** + * + * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder + getVpcPeeringConfigOrBuilder() { if (vpcPeeringConfigBuilder_ != null) { return vpcPeeringConfigBuilder_.getMessageOrBuilder(); } else { - return vpcPeeringConfig_ == null ? - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + return vpcPeeringConfig_ == null + ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() + : vpcPeeringConfig_; } } /** + * + * *
      * VPC Peering Config
      * 
@@ -2183,21 +2525,24 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeer * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> getVpcPeeringConfigFieldBuilder() { if (vpcPeeringConfigBuilder_ == null) { - vpcPeeringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( - getVpcPeeringConfig(), - getParentForChildren(), - isClean()); + vpcPeeringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, + com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( + getVpcPeeringConfig(), getParentForChildren(), isClean()); vpcPeeringConfig_ = null; } return vpcPeeringConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2207,12 +2552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.PrivateConnection) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.PrivateConnection) private static final com.google.cloud.datastream.v1alpha1.PrivateConnection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.PrivateConnection(); } @@ -2221,27 +2566,27 @@ public static com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2256,6 +2601,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java index 2291fedc4f43..f24fa8f909fa 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface PrivateConnectionOrBuilder extends +public interface PrivateConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface PrivateConnectionOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,105 +167,143 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The state of the Private Connection.
    * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ com.google.cloud.datastream.v1alpha1.Error getError(); /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly format.
    * 
* - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder(); /** + * + * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return Whether the vpcPeeringConfig field is set. */ boolean hasVpcPeeringConfig(); /** + * + * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; + * * @return The vpcPeeringConfig. */ com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig(); /** + * + * *
    * VPC Peering Config
    * 
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java similarity index 66% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java index a01d999056aa..8dec0210319c 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java @@ -1,58 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Private Connectivity
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnectivity} */ -public final class PrivateConnectivity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PrivateConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.PrivateConnectivity) PrivateConnectivityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrivateConnectivity.newBuilder() to construct. private PrivateConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrivateConnectivity() { privateConnectionName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PrivateConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); } public static final int PRIVATE_CONNECTION_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object privateConnectionName_ = ""; /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionName. */ @java.lang.Override @@ -61,8 +82,7 @@ public java.lang.String getPrivateConnectionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionName_ = s; return s; @@ -70,16 +90,15 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionName. */ @java.lang.Override - public com.google.protobuf.ByteString - getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -88,6 +107,7 @@ public java.lang.String getPrivateConnectionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -99,8 +119,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnectionName_); } @@ -124,15 +143,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.PrivateConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.PrivateConnectivity other = (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) obj; + com.google.cloud.datastream.v1alpha1.PrivateConnectivity other = + (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) obj; - if (!getPrivateConnectionName() - .equals(other.getPrivateConnectionName())) return false; + if (!getPrivateConnectionName().equals(other.getPrivateConnectionName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -152,129 +171,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnectivity prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.PrivateConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Private Connectivity
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnectivity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.PrivateConnectivity) com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.class, + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -284,9 +310,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; } @java.lang.Override @@ -305,8 +331,11 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.PrivateConnectivity result = new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.PrivateConnectivity result = + new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,38 +351,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.PrivateConnectiv public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.PrivateConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnectivity)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) other); } else { super.mergeFrom(other); return this; @@ -361,7 +391,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnectivity other) { - if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) + return this; if (!other.getPrivateConnectionName().isEmpty()) { privateConnectionName_ = other.privateConnectionName_; bitField0_ |= 0x00000001; @@ -393,17 +424,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - privateConnectionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + privateConnectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -413,18 +446,19 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object privateConnectionName_ = ""; /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionName. */ public java.lang.String getPrivateConnectionName() { java.lang.Object ref = privateConnectionName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionName_ = s; return s; @@ -434,15 +468,14 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for privateConnectionName. */ - public com.google.protobuf.ByteString - getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -451,12 +484,14 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The privateConnectionName to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } privateConnectionName_ = value; bitField0_ |= 0x00000001; onChanged(); @@ -464,6 +499,7 @@ public Builder setPrivateConnectionName( } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPrivateConnectionName() { @@ -474,21 +510,23 @@ public Builder clearPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for privateConnectionName to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPrivateConnectionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); privateConnectionName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -498,12 +536,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.PrivateConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.PrivateConnectivity) private static final com.google.cloud.datastream.v1alpha1.PrivateConnectivity DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(); } @@ -512,27 +550,27 @@ public static com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivateConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -547,6 +585,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java new file mode 100644 index 000000000000..b5cbb65e116f --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface PrivateConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The privateConnectionName. + */ + java.lang.String getPrivateConnectionName(); + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for privateConnectionName. + */ + com.google.protobuf.ByteString getPrivateConnectionNameBytes(); +} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java similarity index 64% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java index 36a1c72966bd..69d0ff4bed5f 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * The Route resource is the child of the PrivateConnection resource.
  * It used to define a route for a PrivateConnection setup.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
  */
-public final class Route extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Route extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Route)
     RouteOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Route() {
     name_ = "";
     displayName_ = "";
@@ -28,50 +46,54 @@ private Route() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Route();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
   }
 
   @SuppressWarnings({"rawtypes"})
   @java.lang.Override
-  protected com.google.protobuf.MapField internalGetMapField(
-      int number) {
+  protected com.google.protobuf.MapField internalGetMapField(int number) {
     switch (number) {
       case 4:
         return internalGetLabels();
       default:
-        throw new RuntimeException(
-            "Invalid map field number: " + number);
+        throw new RuntimeException("Invalid map field number: " + number);
     }
   }
+
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.Route.class, com.google.cloud.datastream.v1alpha1.Route.Builder.class);
+            com.google.cloud.datastream.v1alpha1.Route.class,
+            com.google.cloud.datastream.v1alpha1.Route.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -80,29 +102,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -113,11 +135,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -125,11 +151,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -137,11 +167,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -151,11 +184,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -163,11 +200,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -175,11 +216,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -187,32 +231,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -220,20 +266,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -245,6 +292,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -252,17 +301,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -270,11 +321,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -282,14 +333,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -298,29 +353,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -329,14 +384,18 @@ public java.lang.String getDisplayName() { } public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private volatile java.lang.Object destinationAddress_ = ""; /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ @java.lang.Override @@ -345,29 +404,29 @@ public java.lang.String getDestinationAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; } } /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationAddressBytes() { + public com.google.protobuf.ByteString getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -378,11 +437,14 @@ public java.lang.String getDestinationAddress() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_ = 0; /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -391,6 +453,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -402,8 +465,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -413,12 +475,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -441,22 +499,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -465,8 +521,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, destinationPort_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationPort_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -476,33 +531,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Route)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Route other = (com.google.cloud.datastream.v1alpha1.Route) obj; + com.google.cloud.datastream.v1alpha1.Route other = + (com.google.cloud.datastream.v1alpha1.Route) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDestinationAddress() - .equals(other.getDestinationAddress())) return false; - if (getDestinationPort() - != other.getDestinationPort()) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDestinationAddress().equals(other.getDestinationAddress())) return false; + if (getDestinationPort() != other.getDestinationPort()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -539,97 +588,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The Route resource is the child of the PrivateConnection resource.
    * It used to define a route for a PrivateConnection setup.
@@ -637,55 +693,52 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Route)
       com.google.cloud.datastream.v1alpha1.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
+          throw new RuntimeException("Invalid map field number: " + number);
       }
     }
+
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.Route.class, com.google.cloud.datastream.v1alpha1.Route.Builder.class);
+              com.google.cloud.datastream.v1alpha1.Route.class,
+              com.google.cloud.datastream.v1alpha1.Route.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.Route.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -709,9 +762,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
     }
 
     @java.lang.Override
@@ -730,8 +783,11 @@ public com.google.cloud.datastream.v1alpha1.Route build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.Route buildPartial() {
-      com.google.cloud.datastream.v1alpha1.Route result = new com.google.cloud.datastream.v1alpha1.Route(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1alpha1.Route result =
+          new com.google.cloud.datastream.v1alpha1.Route(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -742,14 +798,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Route result) {
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000004) != 0)) {
-        result.updateTime_ = updateTimeBuilder_ == null
-            ? updateTime_
-            : updateTimeBuilder_.build();
+        result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
         result.labels_ = internalGetLabels();
@@ -770,38 +822,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Route result) {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.Route) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.Route)other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.Route) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -821,8 +874,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Route other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       bitField0_ |= 0x00000008;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
@@ -863,55 +915,61 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              input.readMessage(
-                  getUpdateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 26
-            case 34: {
-              com.google.protobuf.MapEntry
-              labels__ = input.readMessage(
-                  LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              internalGetMutableLabels().getMutableMap().put(
-                  labels__.getKey(), labels__.getValue());
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 42: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 42
-            case 50: {
-              destinationAddress_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 50
-            case 56: {
-              destinationPort_ = input.readInt32();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 26
+            case 34:
+              {
+                com.google.protobuf.MapEntry labels__ =
+                    input.readMessage(
+                        LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
+                        extensionRegistry);
+                internalGetMutableLabels()
+                    .getMutableMap()
+                    .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 42:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 42
+            case 50:
+              {
+                destinationAddress_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 50
+            case 56:
+              {
+                destinationPort_ = input.readInt32();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -921,22 +979,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -945,20 +1006,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -966,28 +1028,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -997,17 +1066,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1017,39 +1090,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1065,14 +1157,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1083,17 +1178,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1106,11 +1205,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1123,11 +1226,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -1135,36 +1242,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The create time of the resource.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1172,39 +1291,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -1220,14 +1358,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -1238,17 +1379,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -1261,11 +1406,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -1278,11 +1427,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -1290,56 +1443,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The update time of the resource.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -1348,10 +1511,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -1359,20 +1525,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -1384,6 +1551,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1391,17 +1560,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1409,91 +1580,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -1502,20 +1677,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -1523,28 +1699,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -1554,17 +1737,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -1574,18 +1761,20 @@ public Builder setDisplayNameBytes( private java.lang.Object destinationAddress_ = ""; /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ public java.lang.String getDestinationAddress() { java.lang.Object ref = destinationAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; @@ -1594,20 +1783,21 @@ public java.lang.String getDestinationAddress() { } } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ - public com.google.protobuf.ByteString - getDestinationAddressBytes() { + public com.google.protobuf.ByteString getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -1615,28 +1805,35 @@ public java.lang.String getDestinationAddress() { } } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationAddress_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDestinationAddress() { @@ -1646,17 +1843,21 @@ public Builder clearDestinationAddress() { return this; } /** + * + * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationAddress_ = value; bitField0_ |= 0x00000020; @@ -1664,13 +1865,16 @@ public Builder setDestinationAddressBytes( return this; } - private int destinationPort_ ; + private int destinationPort_; /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -1678,27 +1882,33 @@ public int getDestinationPort() { return destinationPort_; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @param value The destinationPort to set. * @return This builder for chaining. */ public Builder setDestinationPort(int value) { - + destinationPort_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return This builder for chaining. */ public Builder clearDestinationPort() { @@ -1707,9 +1917,9 @@ public Builder clearDestinationPort() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1719,12 +1929,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Route) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Route) private static final com.google.cloud.datastream.v1alpha1.Route DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Route(); } @@ -1733,27 +1943,27 @@ public static com.google.cloud.datastream.v1alpha1.Route getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Route parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Route parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1768,6 +1978,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java similarity index 69% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java index c4e09b3473e6..cc4b9e20fec5 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface RouteOrBuilder extends +public interface RouteOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Route) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface RouteOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,66 +167,80 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The destinationAddress. */ java.lang.String getDestinationAddress(); /** + * + * *
    * Required. Destination address for connection
    * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for destinationAddress. */ - com.google.protobuf.ByteString - getDestinationAddressBytes(); + com.google.protobuf.ByteString getDestinationAddressBytes(); /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ int getDestinationPort(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java index c2b5caf83c8a..42be3f0d2a9f 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Schema file format.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.SchemaFileFormat} */ -public enum SchemaFileFormat - implements com.google.protobuf.ProtocolMessageEnum { +public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified schema file format.
    * 
@@ -21,6 +39,8 @@ public enum SchemaFileFormat */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** + * + * *
    * Do not attach schema file.
    * 
@@ -29,6 +49,8 @@ public enum SchemaFileFormat */ NO_SCHEMA_FILE(1), /** + * + * *
    * Avro schema format.
    * 
@@ -40,6 +62,8 @@ public enum SchemaFileFormat ; /** + * + * *
    * Unspecified schema file format.
    * 
@@ -48,6 +72,8 @@ public enum SchemaFileFormat */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Do not attach schema file.
    * 
@@ -56,6 +82,8 @@ public enum SchemaFileFormat */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** + * + * *
    * Avro schema format.
    * 
@@ -64,7 +92,6 @@ public enum SchemaFileFormat */ public static final int AVRO_SCHEMA_FILE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,51 @@ public static SchemaFileFormat valueOf(int value) { */ public static SchemaFileFormat forNumber(int value) { switch (value) { - case 0: return SCHEMA_FILE_FORMAT_UNSPECIFIED; - case 1: return NO_SCHEMA_FILE; - case 2: return AVRO_SCHEMA_FILE; - default: return null; + case 0: + return SCHEMA_FILE_FORMAT_UNSPECIFIED; + case 1: + return NO_SCHEMA_FILE; + case 2: + return AVRO_SCHEMA_FILE; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaFileFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaFileFormat findValueByNumber(int number) { - return SchemaFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaFileFormat findValueByNumber(int number) { + return SchemaFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() + .getEnumTypes() + .get(1); } private static final SchemaFileFormat[] VALUES = values(); - public static SchemaFileFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SchemaFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -147,4 +176,3 @@ private SchemaFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.SchemaFileFormat) } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java index a180e7816ce0..184a9bdbe545 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java @@ -1,62 +1,84 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * The configuration of the stream source.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.SourceConfig} */ -public final class SourceConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SourceConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.SourceConfig) SourceConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SourceConfig.newBuilder() to construct. private SourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SourceConfig() { sourceConnectionProfileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SourceConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.SourceConfig.class, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.SourceConfig.class, + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); } private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; + public enum SourceStreamConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_SOURCE_CONFIG(100), MYSQL_SOURCE_CONFIG(101), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; + private SourceStreamConfigCase(int value) { this.value = value; } @@ -72,32 +94,40 @@ public static SourceStreamConfigCase valueOf(int value) { public static SourceStreamConfigCase forNumber(int value) { switch (value) { - case 100: return ORACLE_SOURCE_CONFIG; - case 101: return MYSQL_SOURCE_CONFIG; - case 0: return SOURCESTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return ORACLE_SOURCE_CONFIG; + case 101: + return MYSQL_SOURCE_CONFIG; + case 0: + return SOURCESTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceStreamConfigCase - getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber( - sourceStreamConfigCase_); + public SourceStreamConfigCase getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); } public static final int SOURCE_CONNECTION_PROFILE_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object sourceConnectionProfileName_ = ""; /** + * + * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConnectionProfileName. */ @java.lang.Override @@ -106,29 +136,30 @@ public java.lang.String getSourceConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfileName_ = s; return s; } } /** + * + * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for sourceConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -138,11 +169,14 @@ public java.lang.String getSourceConnectionProfileName() { public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER = 100; /** + * + * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -150,21 +184,26 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** + * + * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } /** + * + * *
    * Oracle data source configuration
    * 
@@ -172,20 +211,24 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder + getOracleSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER = 101; /** + * + * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -193,21 +236,26 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** + * + * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } /** + * + * *
    * MySQL data source configuration
    * 
@@ -215,14 +263,16 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder + getMysqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,16 +284,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + output.writeMessage( + 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + output.writeMessage( + 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } getUnknownFields().writeTo(output); } @@ -255,15 +306,18 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -273,24 +327,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.SourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.SourceConfig other = (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; + com.google.cloud.datastream.v1alpha1.SourceConfig other = + (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; - if (!getSourceConnectionProfileName() - .equals(other.getSourceConnectionProfileName())) return false; + if (!getSourceConnectionProfileName().equals(other.getSourceConnectionProfileName())) + return false; if (!getSourceStreamConfigCase().equals(other.getSourceStreamConfigCase())) return false; switch (sourceStreamConfigCase_) { case 100: - if (!getOracleSourceConfig() - .equals(other.getOracleSourceConfig())) return false; + if (!getOracleSourceConfig().equals(other.getOracleSourceConfig())) return false; break; case 101: - if (!getMysqlSourceConfig() - .equals(other.getMysqlSourceConfig())) return false; + if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; break; case 0: default: @@ -326,129 +379,135 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.SourceConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.SourceConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The configuration of the stream source.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.SourceConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.SourceConfig) com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.SourceConfig.class, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); + com.google.cloud.datastream.v1alpha1.SourceConfig.class, + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.SourceConfig.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +525,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; } @java.lang.Override @@ -487,8 +546,11 @@ public com.google.cloud.datastream.v1alpha1.SourceConfig build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfig buildPartial() { - com.google.cloud.datastream.v1alpha1.SourceConfig result = new com.google.cloud.datastream.v1alpha1.SourceConfig(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.SourceConfig result = + new com.google.cloud.datastream.v1alpha1.SourceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -504,12 +566,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.SourceConfig res private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.SourceConfig result) { result.sourceStreamConfigCase_ = sourceStreamConfigCase_; result.sourceStreamConfig_ = this.sourceStreamConfig_; - if (sourceStreamConfigCase_ == 100 && - oracleSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 100 && oracleSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = oracleSourceConfigBuilder_.build(); } - if (sourceStreamConfigCase_ == 101 && - mysqlSourceConfigBuilder_ != null) { + if (sourceStreamConfigCase_ == 101 && mysqlSourceConfigBuilder_ != null) { result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); } } @@ -518,38 +578,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.SourceConfi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.SourceConfig) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.SourceConfig)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.SourceConfig) other); } else { super.mergeFrom(other); return this; @@ -557,24 +618,28 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.SourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) + return this; if (!other.getSourceConnectionProfileName().isEmpty()) { sourceConnectionProfileName_ = other.sourceConnectionProfileName_; bitField0_ |= 0x00000001; onChanged(); } switch (other.getSourceStreamConfigCase()) { - case ORACLE_SOURCE_CONFIG: { - mergeOracleSourceConfig(other.getOracleSourceConfig()); - break; - } - case MYSQL_SOURCE_CONFIG: { - mergeMysqlSourceConfig(other.getMysqlSourceConfig()); - break; - } - case SOURCESTREAMCONFIG_NOT_SET: { - break; - } + case ORACLE_SOURCE_CONFIG: + { + mergeOracleSourceConfig(other.getOracleSourceConfig()); + break; + } + case MYSQL_SOURCE_CONFIG: + { + mergeMysqlSourceConfig(other.getMysqlSourceConfig()); + break; + } + case SOURCESTREAMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -602,31 +667,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - sourceConnectionProfileName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 802: { - input.readMessage( - getOracleSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - sourceStreamConfigCase_ = 100; - break; - } // case 802 - case 810: { - input.readMessage( - getMysqlSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - sourceStreamConfigCase_ = 101; - break; - } // case 810 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + sourceConnectionProfileName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 802: + { + input.readMessage( + getOracleSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 100; + break; + } // case 802 + case 810: + { + input.readMessage( + getMysqlSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + sourceStreamConfigCase_ = 101; + break; + } // case 810 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -636,12 +703,12 @@ public Builder mergeFrom( } // finally return this; } + private int sourceStreamConfigCase_ = 0; private java.lang.Object sourceStreamConfig_; - public SourceStreamConfigCase - getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber( - sourceStreamConfigCase_); + + public SourceStreamConfigCase getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); } public Builder clearSourceStreamConfig() { @@ -655,18 +722,21 @@ public Builder clearSourceStreamConfig() { private java.lang.Object sourceConnectionProfileName_ = ""; /** + * + * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConnectionProfileName. */ public java.lang.String getSourceConnectionProfileName() { java.lang.Object ref = sourceConnectionProfileName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfileName_ = s; return s; @@ -675,20 +745,22 @@ public java.lang.String getSourceConnectionProfileName() { } } /** + * + * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for sourceConnectionProfileName. */ - public com.google.protobuf.ByteString - getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -696,28 +768,37 @@ public java.lang.String getSourceConnectionProfileName() { } } /** + * + * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceConnectionProfileName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourceConnectionProfileName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearSourceConnectionProfileName() { @@ -727,17 +808,22 @@ public Builder clearSourceConnectionProfileName() { return this; } /** + * + * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourceConnectionProfileNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourceConnectionProfileName_ = value; bitField0_ |= 0x00000001; @@ -746,13 +832,19 @@ public Builder setSourceConnectionProfileNameBytes( } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> oracleSourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> + oracleSourceConfigBuilder_; /** + * + * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -760,11 +852,14 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** + * + * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ @java.lang.Override @@ -782,13 +877,16 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo } } /** + * + * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder setOracleSourceConfig( + com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -802,6 +900,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Oracle return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -820,18 +920,25 @@ public Builder setOracleSourceConfig( return this; } /** + * + * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder mergeOracleSourceConfig( + com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 100 && - sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) - .mergeFrom(value).buildPartial(); + if (sourceStreamConfigCase_ == 100 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder( + (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceStreamConfig_ = value; } @@ -847,6 +954,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Orac return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -870,16 +979,21 @@ public Builder clearOracleSourceConfig() { return this; } /** + * + * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder + getOracleSourceConfigBuilder() { return getOracleSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle data source configuration
      * 
@@ -887,7 +1001,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder getOracle * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder + getOracleSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { return oracleSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -898,6 +1013,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracl } } /** + * + * *
      * Oracle data source configuration
      * 
@@ -905,14 +1022,20 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracl * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> getOracleSourceConfigFieldBuilder() { if (oracleSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 100)) { - sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } - oracleSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( + oracleSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -924,13 +1047,19 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracl } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> mysqlSourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> + mysqlSourceConfigBuilder_; /** + * + * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -938,11 +1067,14 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** + * + * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ @java.lang.Override @@ -960,13 +1092,16 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf } } /** + * + * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder setMysqlSourceConfig( + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -980,6 +1115,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSo return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -998,18 +1135,25 @@ public Builder setMysqlSourceConfig( return this; } /** + * + * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder mergeMysqlSourceConfig( + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 101 && - sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value).buildPartial(); + if (sourceStreamConfigCase_ == 101 + && sourceStreamConfig_ + != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder( + (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1025,6 +1169,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.Mysql return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1048,16 +1194,21 @@ public Builder clearMysqlSourceConfig() { return this; } /** + * + * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder getMysqlSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder + getMysqlSourceConfigBuilder() { return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1065,7 +1216,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder getMysqlSo * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder + getMysqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { return mysqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1076,6 +1228,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlS } } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1083,14 +1237,20 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlS * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> getMysqlSourceConfigFieldBuilder() { if (mysqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 101)) { - sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } - mysqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( + mysqlSourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); @@ -1100,9 +1260,9 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlS onChanged(); return mysqlSourceConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1112,12 +1272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.SourceConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.SourceConfig) private static final com.google.cloud.datastream.v1alpha1.SourceConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.SourceConfig(); } @@ -1126,27 +1286,27 @@ public static com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SourceConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1161,6 +1321,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java index 158bed906b77..561e3858db81 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java @@ -1,51 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface SourceConfigOrBuilder extends +public interface SourceConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.SourceConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConnectionProfileName. */ java.lang.String getSourceConnectionProfileName(); /** + * + * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for sourceConnectionProfileName. */ - com.google.protobuf.ByteString - getSourceConnectionProfileNameBytes(); + com.google.protobuf.ByteString getSourceConnectionProfileNameBytes(); /** + * + * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return Whether the oracleSourceConfig field is set. */ boolean hasOracleSourceConfig(); /** + * + * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; + * * @return The oracleSourceConfig. */ com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig(); /** + * + * *
    * Oracle data source configuration
    * 
@@ -55,24 +86,32 @@ public interface SourceConfigOrBuilder extends com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder(); /** + * + * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return Whether the mysqlSourceConfig field is set. */ boolean hasMysqlSourceConfig(); /** + * + * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; + * * @return The mysqlSourceConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig(); /** + * + * *
    * MySQL data source configuration
    * 
@@ -81,5 +120,6 @@ public interface SourceConfigOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase + getSourceStreamConfigCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java similarity index 60% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java index c034ed54915c..ced1a1c814c3 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java @@ -1,53 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Static IP address connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity} */ -public final class StaticServiceIpConnectivity extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StaticServiceIpConnectivity extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) StaticServiceIpConnectivityOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StaticServiceIpConnectivity.newBuilder() to construct. private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StaticServiceIpConnectivity() { - } + + private StaticServiceIpConnectivity() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StaticServiceIpConnectivity(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -59,8 +78,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -78,12 +96,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = + (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -102,129 +121,136 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Static IP address connectivity.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.class, + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -232,13 +258,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } @@ -253,7 +280,8 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = + new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); onBuilt(); return result; } @@ -262,46 +290,50 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { - if (other == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { + if (other + == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -328,12 +360,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -343,9 +376,9 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -355,41 +388,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - private static final com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(); } - public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StaticServiceIpConnectivity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StaticServiceIpConnectivity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,9 +436,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 000000000000..c157c67ab9bc --- /dev/null +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface StaticServiceIpConnectivityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java index 29adf92561ac..21ea5d44eff2 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} - */ -public final class Stream extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} */ +public final class Stream extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream) StreamOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Stream() { name_ = ""; displayName_ = ""; @@ -24,51 +38,54 @@ private Stream() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Stream(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.class, com.google.cloud.datastream.v1alpha1.Stream.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.class, + com.google.cloud.datastream.v1alpha1.Stream.Builder.class); } /** + * + * *
    * Stream state.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.Stream.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified stream state.
      * 
@@ -77,6 +94,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created.
      * 
@@ -85,6 +104,8 @@ public enum State */ CREATED(1), /** + * + * *
      * The stream is running.
      * 
@@ -93,6 +114,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -101,6 +124,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -110,6 +135,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -119,6 +146,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -127,6 +156,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -135,6 +166,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -147,6 +180,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -155,6 +190,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created.
      * 
@@ -163,6 +200,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -171,6 +210,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -179,6 +220,8 @@ public enum State */ public static final int PAUSED_VALUE = 3; /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -188,6 +231,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -197,6 +242,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -205,6 +252,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -213,6 +262,8 @@ public enum State */ public static final int STARTING_VALUE = 7; /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -222,7 +273,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -247,55 +297,61 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0: return STATE_UNSPECIFIED;
-        case 1: return CREATED;
-        case 2: return RUNNING;
-        case 3: return PAUSED;
-        case 4: return MAINTENANCE;
-        case 5: return FAILED;
-        case 6: return FAILED_PERMANENTLY;
-        case 7: return STARTING;
-        case 8: return DRAINING;
-        default: return null;
+        case 0:
+          return STATE_UNSPECIFIED;
+        case 1:
+          return CREATED;
+        case 2:
+          return RUNNING;
+        case 3:
+          return PAUSED;
+        case 4:
+          return MAINTENANCE;
+        case 5:
+          return FAILED;
+        case 6:
+          return FAILED_PERMANENTLY;
+        case 7:
+          return STARTING;
+        case 8:
+          return DRAINING;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        State> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public State findValueByNumber(int number) {
-              return State.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public State findValueByNumber(int number) {
+            return State.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.datastream.v1alpha1.Stream.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -312,29 +368,38 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.Stream.State)
   }
 
-  public interface BackfillAllStrategyOrBuilder extends
+  public interface BackfillAllStrategyOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ boolean hasOracleExcludedObjects(); /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects(); /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -344,24 +409,32 @@ public interface BackfillAllStrategyOrBuilder extends com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ boolean hasMysqlExcludedObjects(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects(); /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -370,9 +443,12 @@ public interface BackfillAllStrategyOrBuilder extends */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase + getExcludedObjectsCase(); } /** + * + * *
    * Backfill strategy to automatically backfill the Stream's objects.
    * Specific objects can be excluded.
@@ -380,52 +456,56 @@ public interface BackfillAllStrategyOrBuilder extends
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy}
    */
-  public static final class BackfillAllStrategy extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       BackfillAllStrategyOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use BackfillAllStrategy.newBuilder() to construct.
     private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-    private BackfillAllStrategy() {
-    }
+
+    private BackfillAllStrategy() {}
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new BackfillAllStrategy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
+              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class,
+              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
     }
 
     private int excludedObjectsCase_ = 0;
     private java.lang.Object excludedObjects_;
+
     public enum ExcludedObjectsCase
-        implements com.google.protobuf.Internal.EnumLite,
+        implements
+            com.google.protobuf.Internal.EnumLite,
             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
       ORACLE_EXCLUDED_OBJECTS(1),
       MYSQL_EXCLUDED_OBJECTS(2),
       EXCLUDEDOBJECTS_NOT_SET(0);
       private final int value;
+
       private ExcludedObjectsCase(int value) {
         this.value = value;
       }
@@ -441,30 +521,36 @@ public static ExcludedObjectsCase valueOf(int value) {
 
       public static ExcludedObjectsCase forNumber(int value) {
         switch (value) {
-          case 1: return ORACLE_EXCLUDED_OBJECTS;
-          case 2: return MYSQL_EXCLUDED_OBJECTS;
-          case 0: return EXCLUDEDOBJECTS_NOT_SET;
-          default: return null;
+          case 1:
+            return ORACLE_EXCLUDED_OBJECTS;
+          case 2:
+            return MYSQL_EXCLUDED_OBJECTS;
+          case 0:
+            return EXCLUDEDOBJECTS_NOT_SET;
+          default:
+            return null;
         }
       }
+
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ExcludedObjectsCase
-    getExcludedObjectsCase() {
-      return ExcludedObjectsCase.forNumber(
-          excludedObjectsCase_);
+    public ExcludedObjectsCase getExcludedObjectsCase() {
+      return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
     }
 
     public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1;
     /**
+     *
+     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -472,21 +558,26 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** + * + * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -494,20 +585,24 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder + getOracleExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -515,21 +610,26 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** + * + * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -537,14 +637,16 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder + getMysqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -556,8 +658,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (excludedObjectsCase_ == 1) { output.writeMessage(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } @@ -574,12 +675,14 @@ public int getSerializedSize() { size = 0; if (excludedObjectsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } if (excludedObjectsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -589,22 +692,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = + (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; switch (excludedObjectsCase_) { case 1: - if (!getOracleExcludedObjects() - .equals(other.getOracleExcludedObjects())) return false; + if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; break; case 2: - if (!getMysqlExcludedObjects() - .equals(other.getMysqlExcludedObjects())) return false; + if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; break; case 0: default: @@ -638,87 +740,95 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -728,6 +838,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -735,33 +847,34 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
         com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.class,
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder.class);
       }
 
-      // Construct using com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder()
-      private Builder() {
+      // Construct using
+      // com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder()
+      private Builder() {}
 
-      }
-
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
-
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -778,13 +891,14 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstanceForType() {
+      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
+          getDefaultInstanceForType() {
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
 
@@ -799,26 +913,29 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy build() {
 
       @java.lang.Override
       public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy buildPartial() {
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result = new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(this);
-        if (bitField0_ != 0) { buildPartial0(result); }
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result =
+            new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(this);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         buildPartialOneofs(result);
         onBuilt();
         return result;
       }
 
-      private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
+      private void buildPartial0(
+          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
         int from_bitField0_ = bitField0_;
       }
 
-      private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
+      private void buildPartialOneofs(
+          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result) {
         result.excludedObjectsCase_ = excludedObjectsCase_;
         result.excludedObjects_ = this.excludedObjects_;
-        if (excludedObjectsCase_ == 1 &&
-            oracleExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 1 && oracleExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = oracleExcludedObjectsBuilder_.build();
         }
-        if (excludedObjectsCase_ == 2 &&
-            mysqlExcludedObjectsBuilder_ != null) {
+        if (excludedObjectsCase_ == 2 && mysqlExcludedObjectsBuilder_ != null) {
           result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build();
         }
       }
@@ -827,58 +944,67 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream.Back
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) {
-          return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)other);
+          return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) other);
         } else {
           super.mergeFrom(other);
           return this;
         }
       }
 
-      public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other) {
-        if (other == com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance()) return this;
+      public Builder mergeFrom(
+          com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other) {
+        if (other
+            == com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance())
+          return this;
         switch (other.getExcludedObjectsCase()) {
-          case ORACLE_EXCLUDED_OBJECTS: {
-            mergeOracleExcludedObjects(other.getOracleExcludedObjects());
-            break;
-          }
-          case MYSQL_EXCLUDED_OBJECTS: {
-            mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
-            break;
-          }
-          case EXCLUDEDOBJECTS_NOT_SET: {
-            break;
-          }
+          case ORACLE_EXCLUDED_OBJECTS:
+            {
+              mergeOracleExcludedObjects(other.getOracleExcludedObjects());
+              break;
+            }
+          case MYSQL_EXCLUDED_OBJECTS:
+            {
+              mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
+              break;
+            }
+          case EXCLUDEDOBJECTS_NOT_SET:
+            {
+              break;
+            }
         }
         this.mergeUnknownFields(other.getUnknownFields());
         onChanged();
@@ -906,26 +1032,27 @@ public Builder mergeFrom(
               case 0:
                 done = true;
                 break;
-              case 10: {
-                input.readMessage(
-                    getOracleExcludedObjectsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                excludedObjectsCase_ = 1;
-                break;
-              } // case 10
-              case 18: {
-                input.readMessage(
-                    getMysqlExcludedObjectsFieldBuilder().getBuilder(),
-                    extensionRegistry);
-                excludedObjectsCase_ = 2;
-                break;
-              } // case 18
-              default: {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+              case 10:
+                {
+                  input.readMessage(
+                      getOracleExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
+                  excludedObjectsCase_ = 1;
+                  break;
+                } // case 10
+              case 18:
+                {
+                  input.readMessage(
+                      getMysqlExcludedObjectsFieldBuilder().getBuilder(), extensionRegistry);
+                  excludedObjectsCase_ = 2;
+                  break;
+                } // case 18
+              default:
+                {
+                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                    done = true; // was an endgroup tag
+                  }
+                  break;
+                } // default:
             } // switch (tag)
           } // while (!done)
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -935,12 +1062,12 @@ public Builder mergeFrom(
         } // finally
         return this;
       }
+
       private int excludedObjectsCase_ = 0;
       private java.lang.Object excludedObjects_;
-      public ExcludedObjectsCase
-          getExcludedObjectsCase() {
-        return ExcludedObjectsCase.forNumber(
-            excludedObjectsCase_);
+
+      public ExcludedObjectsCase getExcludedObjectsCase() {
+        return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
       }
 
       public Builder clearExcludedObjects() {
@@ -953,13 +1080,19 @@ public Builder clearExcludedObjects() {
       private int bitField0_;
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleExcludedObjectsBuilder_;
+              com.google.cloud.datastream.v1alpha1.OracleRdbms,
+              com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder,
+              com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>
+          oracleExcludedObjectsBuilder_;
       /**
+       *
+       *
        * 
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -967,11 +1100,14 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; + * * @return The oracleExcludedObjects. */ @java.lang.Override @@ -989,13 +1125,16 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder setOracleExcludedObjects( + com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1009,6 +1148,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.Ora return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1027,18 +1168,25 @@ public Builder setOracleExcludedObjects( return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder mergeOracleExcludedObjects( + com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 1 && - excludedObjects_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) - .mergeFrom(value).buildPartial(); + if (excludedObjectsCase_ == 1 + && excludedObjects_ + != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludedObjects_ = value; } @@ -1054,6 +1202,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.O return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1077,16 +1227,21 @@ public Builder clearOracleExcludedObjects() { return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder + getOracleExcludedObjectsBuilder() { return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1094,7 +1249,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleExclude * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder + getOracleExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1105,6 +1261,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExclud } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1112,14 +1270,20 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExclud * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder() { if (oracleExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 1)) { - excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); + excludedObjects_ = + com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, + com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1131,13 +1295,19 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExclud } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> mysqlExcludedObjectsBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + mysqlExcludedObjectsBuilder_; /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -1145,11 +1315,14 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; + * * @return The mysqlExcludedObjects. */ @java.lang.Override @@ -1167,13 +1340,16 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder setMysqlExcludedObjects( + com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1187,6 +1363,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.Mysq return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1205,18 +1383,25 @@ public Builder setMysqlExcludedObjects( return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder mergeMysqlExcludedObjects( + com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 2 && - excludedObjects_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) - .mergeFrom(value).buildPartial(); + if (excludedObjectsCase_ == 2 + && excludedObjects_ + != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + excludedObjects_ = + com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( + (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludedObjects_ = value; } @@ -1232,6 +1417,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.My return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1255,16 +1442,21 @@ public Builder clearMysqlExcludedObjects() { return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder + getMysqlExcludedObjectsBuilder() { return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1272,7 +1464,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlExcludedO * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder + getMysqlExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 2) && (mysqlExcludedObjectsBuilder_ != null)) { return mysqlExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1283,6 +1476,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcluded } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1290,14 +1485,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcluded * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder() { if (mysqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 2)) { excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlExcludedObjectsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, + com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_, getParentForChildren(), isClean()); @@ -1307,6 +1507,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcluded onChanged(); return mysqlExcludedObjectsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1319,41 +1520,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) - private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillAllStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillAllStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1365,61 +1569,65 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface BackfillNoneStrategyOrBuilder extends + public interface BackfillNoneStrategyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - com.google.protobuf.MessageOrBuilder { - } + com.google.protobuf.MessageOrBuilder {} /** + * + * *
    * Backfill strategy to disable automatic backfill for the Stream's objects.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy} */ - public static final class BackfillNoneStrategy extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class BackfillNoneStrategy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) BackfillNoneStrategyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BackfillNoneStrategy.newBuilder() to construct. private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BackfillNoneStrategy() { - } + + private BackfillNoneStrategy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackfillNoneStrategy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1431,8 +1639,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getUnknownFields().writeTo(output); } @@ -1450,12 +1657,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1474,87 +1682,95 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1564,39 +1780,42 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to disable automatic backfill for the Stream's objects.
      * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.class, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1604,14 +1823,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance(); } @java.lang.Override @@ -1625,7 +1846,8 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = + new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); onBuilt(); return result; } @@ -1634,46 +1856,53 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPar public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { - if (other == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { + if (other + == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance()) return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1700,12 +1929,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1715,6 +1945,7 @@ public Builder mergeFrom( } // finally return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1727,41 +1958,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BackfillNoneStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BackfillNoneStrategy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1773,21 +2007,24 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; + public enum BackfillStrategyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKFILL_ALL(101), BACKFILL_NONE(102), BACKFILLSTRATEGY_NOT_SET(0); private final int value; + private BackfillStrategyCase(int value) { this.value = value; } @@ -1803,32 +2040,39 @@ public static BackfillStrategyCase valueOf(int value) { public static BackfillStrategyCase forNumber(int value) { switch (value) { - case 101: return BACKFILL_ALL; - case 102: return BACKFILL_NONE; - case 0: return BACKFILLSTRATEGY_NOT_SET; - default: return null; + case 101: + return BACKFILL_ALL; + case 102: + return BACKFILL_NONE; + case 0: + return BACKFILLSTRATEGY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BackfillStrategyCase - getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber( - backfillStrategyCase_); + public BackfillStrategyCase getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber(backfillStrategyCase_); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -1837,29 +2081,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1870,11 +2114,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1882,11 +2130,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -1894,11 +2146,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -1908,11 +2163,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -1920,11 +2179,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -1932,11 +2195,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -1944,32 +2210,34 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; + private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
@@ -1977,20 +2245,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
    * Labels.
    * 
@@ -2002,6 +2271,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2009,17 +2280,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -2027,11 +2300,11 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2039,14 +2312,18 @@ public java.lang.String getLabelsOrThrow( } public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -2055,29 +2332,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -2088,11 +2365,16 @@ public java.lang.String getDisplayName() { public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ @java.lang.Override @@ -2100,37 +2382,55 @@ public boolean hasSourceConfig() { return sourceConfig_ != null; } /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig() { - return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() + : sourceConfig_; } /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder() { - return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() + : sourceConfig_; } public static final int DESTINATION_CONFIG_FIELD_NUMBER = 7; private com.google.cloud.datastream.v1alpha1.DestinationConfig destinationConfig_; /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ @java.lang.Override @@ -2138,63 +2438,89 @@ public boolean hasDestinationConfig() { return destinationConfig_ != null; } /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig() { - return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { - return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; + public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder + getDestinationConfigOrBuilder() { + return destinationConfig_ == null + ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } public static final int STATE_FIELD_NUMBER = 8; private int state_ = 0; /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The state. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.State getState() { - com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.Stream.State getState() { + com.google.cloud.datastream.v1alpha1.Stream.State result = + com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); return result == null ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED : result; } public static final int BACKFILL_ALL_FIELD_NUMBER = 101; /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -2202,22 +2528,27 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -2226,20 +2557,24 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
    * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
+  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
+      getBackfillAllOrBuilder() {
     if (backfillStrategyCase_ == 101) {
-       return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
+      return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
     }
     return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
   }
 
   public static final int BACKFILL_NONE_FIELD_NUMBER = 102;
   /**
+   *
+   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -2247,21 +2582,26 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } /** + * + * *
    * Do not automatically backfill any objects.
    * 
@@ -2269,75 +2609,97 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackf * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } public static final int ERRORS_FIELD_NUMBER = 9; + @SuppressWarnings("serial") private java.util.List errors_; /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public java.util.List getErrorsList() { return errors_; } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { return errors_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2349,8 +2711,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2360,12 +2721,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 4); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -2382,10 +2739,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + output.writeMessage( + 101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + output.writeMessage( + 102, + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } getUnknownFields().writeTo(output); } @@ -2400,49 +2760,47 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (sourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSourceConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); } if (destinationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDestinationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); } if (state_ != com.google.cloud.datastream.v1alpha1.Stream.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 101, + (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 102, + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2452,51 +2810,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream other = (com.google.cloud.datastream.v1alpha1.Stream) obj; + com.google.cloud.datastream.v1alpha1.Stream other = + (com.google.cloud.datastream.v1alpha1.Stream) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; + if (!getUpdateTime().equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasSourceConfig() != other.hasSourceConfig()) return false; if (hasSourceConfig()) { - if (!getSourceConfig() - .equals(other.getSourceConfig())) return false; + if (!getSourceConfig().equals(other.getSourceConfig())) return false; } if (hasDestinationConfig() != other.hasDestinationConfig()) return false; if (hasDestinationConfig()) { - if (!getDestinationConfig() - .equals(other.getDestinationConfig())) return false; + if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; } if (state_ != other.state_) return false; - if (!getErrorsList() - .equals(other.getErrorsList())) return false; + if (!getErrorsList().equals(other.getErrorsList())) return false; if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: - if (!getBackfillAll() - .equals(other.getBackfillAll())) return false; + if (!getBackfillAll().equals(other.getBackfillAll())) return false; break; case 102: - if (!getBackfillNone() - .equals(other.getBackfillNone())) return false; + if (!getBackfillNone().equals(other.getBackfillNone())) return false; break; case 0: default: @@ -2559,148 +2908,148 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Stream parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Stream) com.google.cloud.datastream.v1alpha1.StreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 4: return internalGetLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 4: return internalGetMutableLabels(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Stream.class, com.google.cloud.datastream.v1alpha1.Stream.Builder.class); + com.google.cloud.datastream.v1alpha1.Stream.class, + com.google.cloud.datastream.v1alpha1.Stream.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Stream.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -2748,9 +3097,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; } @java.lang.Override @@ -2769,9 +3118,12 @@ public com.google.cloud.datastream.v1alpha1.Stream build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream buildPartial() { - com.google.cloud.datastream.v1alpha1.Stream result = new com.google.cloud.datastream.v1alpha1.Stream(this); + com.google.cloud.datastream.v1alpha1.Stream result = + new com.google.cloud.datastream.v1alpha1.Stream(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -2795,14 +3147,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.labels_ = internalGetLabels(); @@ -2812,14 +3160,14 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { result.displayName_ = displayName_; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.sourceConfig_ = sourceConfigBuilder_ == null - ? sourceConfig_ - : sourceConfigBuilder_.build(); + result.sourceConfig_ = + sourceConfigBuilder_ == null ? sourceConfig_ : sourceConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.destinationConfig_ = destinationConfigBuilder_ == null - ? destinationConfig_ - : destinationConfigBuilder_.build(); + result.destinationConfig_ = + destinationConfigBuilder_ == null + ? destinationConfig_ + : destinationConfigBuilder_.build(); } if (((from_bitField0_ & 0x00000080) != 0)) { result.state_ = state_; @@ -2829,12 +3177,10 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Stream result) { private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream result) { result.backfillStrategyCase_ = backfillStrategyCase_; result.backfillStrategy_ = this.backfillStrategy_; - if (backfillStrategyCase_ == 101 && - backfillAllBuilder_ != null) { + if (backfillStrategyCase_ == 101 && backfillAllBuilder_ != null) { result.backfillStrategy_ = backfillAllBuilder_.build(); } - if (backfillStrategyCase_ == 102 && - backfillNoneBuilder_ != null) { + if (backfillStrategyCase_ == 102 && backfillNoneBuilder_ != null) { result.backfillStrategy_ = backfillNoneBuilder_.build(); } } @@ -2843,38 +3189,39 @@ private void buildPartialOneofs(com.google.cloud.datastream.v1alpha1.Stream resu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Stream) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream) other); } else { super.mergeFrom(other); return this; @@ -2894,8 +3241,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000008; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; @@ -2929,26 +3275,30 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000400); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } } } switch (other.getBackfillStrategyCase()) { - case BACKFILL_ALL: { - mergeBackfillAll(other.getBackfillAll()); - break; - } - case BACKFILL_NONE: { - mergeBackfillNone(other.getBackfillNone()); - break; - } - case BACKFILLSTRATEGY_NOT_SET: { - break; - } + case BACKFILL_ALL: + { + mergeBackfillAll(other.getBackfillAll()); + break; + } + case BACKFILL_NONE: + { + mergeBackfillNone(other.getBackfillNone()); + break; + } + case BACKFILLSTRATEGY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -2976,91 +3326,93 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableLabels().getMutableMap().put( - labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getSourceConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getDestinationConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - state_ = input.readEnum(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - com.google.cloud.datastream.v1alpha1.Error m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Error.parser(), - extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.addMessage(m); - } - break; - } // case 74 - case 810: { - input.readMessage( - getBackfillAllFieldBuilder().getBuilder(), - extensionRegistry); - backfillStrategyCase_ = 101; - break; - } // case 810 - case 818: { - input.readMessage( - getBackfillNoneFieldBuilder().getBuilder(), - extensionRegistry); - backfillStrategyCase_ = 102; - break; - } // case 818 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getSourceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getDestinationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + com.google.cloud.datastream.v1alpha1.Error m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.addMessage(m); + } + break; + } // case 74 + case 810: + { + input.readMessage(getBackfillAllFieldBuilder().getBuilder(), extensionRegistry); + backfillStrategyCase_ = 101; + break; + } // case 810 + case 818: + { + input.readMessage(getBackfillNoneFieldBuilder().getBuilder(), extensionRegistry); + backfillStrategyCase_ = 102; + break; + } // case 818 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -3070,12 +3422,12 @@ public Builder mergeFrom( } // finally return this; } + private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - public BackfillStrategyCase - getBackfillStrategyCase() { - return BackfillStrategyCase.forNumber( - backfillStrategyCase_); + + public BackfillStrategyCase getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber(backfillStrategyCase_); } public Builder clearBackfillStrategy() { @@ -3089,18 +3441,20 @@ public Builder clearBackfillStrategy() { private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3109,20 +3463,21 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -3130,28 +3485,35 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -3161,17 +3523,21 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -3181,39 +3547,58 @@ public Builder setNameBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -3229,14 +3614,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -3247,17 +3635,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -3270,11 +3662,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -3287,11 +3683,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000002; @@ -3299,36 +3699,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. The creation time of the stream.
      * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -3336,39 +3748,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -3384,14 +3815,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); } else { @@ -3402,17 +3836,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; @@ -3425,11 +3863,15 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000004); @@ -3442,11 +3884,15 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000004; @@ -3454,56 +3900,66 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } } /** + * + * *
      * Output only. The last update time of the stream.
      * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } return labels_; } + private com.google.protobuf.MapField internalGetMutableLabels() { if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); @@ -3512,10 +3968,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { onChanged(); return labels_; } + public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
@@ -3523,20 +3982,21 @@ public int getLabelsCount() { * map<string, string> labels = 4; */ @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetLabels().getMap().containsKey(key); } - /** - * Use {@link #getLabelsMap()} instead. - */ + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getLabels() { return getLabelsMap(); } /** + * + * *
      * Labels.
      * 
@@ -3548,6 +4008,8 @@ public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -3555,17 +4017,19 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public /* nullable */ -java.lang.String getLabelsOrDefault( + public /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -3573,91 +4037,95 @@ java.lang.String getLabelsOrDefault( * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearLabels() { bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableLabels().getMutableMap() - .clear(); + internalGetMutableLabels().getMutableMap().clear(); return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableLabels() { + public java.util.Map getMutableLabels() { bitField0_ |= 0x00000008; return internalGetMutableLabels().getMutableMap(); } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); bitField0_ |= 0x00000008; return this; } /** + * + * *
      * Labels.
      * 
* * map<string, string> labels = 4; */ - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); bitField0_ |= 0x00000008; return this; } private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -3666,20 +4134,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -3687,28 +4156,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -3718,17 +4194,21 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000010; @@ -3738,39 +4218,58 @@ public Builder setDisplayNameBytes( private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> sourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.SourceConfig, + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> + sourceConfigBuilder_; /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ public boolean hasSourceConfig() { return ((bitField0_ & 0x00000020) != 0); } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ public com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig() { if (sourceConfigBuilder_ == null) { - return sourceConfig_ == null ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() + : sourceConfig_; } else { return sourceConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig value) { if (sourceConfigBuilder_ == null) { @@ -3786,11 +4285,15 @@ public Builder setSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setSourceConfig( com.google.cloud.datastream.v1alpha1.SourceConfig.Builder builderForValue) { @@ -3804,17 +4307,22 @@ public Builder setSourceConfig( return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig value) { if (sourceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - sourceConfig_ != null && - sourceConfig_ != com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000020) != 0) + && sourceConfig_ != null + && sourceConfig_ + != com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance()) { getSourceConfigBuilder().mergeFrom(value); } else { sourceConfig_ = value; @@ -3827,11 +4335,15 @@ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConf return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearSourceConfig() { bitField0_ = (bitField0_ & ~0x00000020); @@ -3844,11 +4356,15 @@ public Builder clearSourceConfig() { return this; } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.SourceConfig.Builder getSourceConfigBuilder() { bitField0_ |= 0x00000020; @@ -3856,36 +4372,48 @@ public com.google.cloud.datastream.v1alpha1.SourceConfig.Builder getSourceConfig return getSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder() { if (sourceConfigBuilder_ != null) { return sourceConfigBuilder_.getMessageOrBuilder(); } else { - return sourceConfig_ == null ? - com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() : sourceConfig_; + return sourceConfig_ == null + ? com.google.cloud.datastream.v1alpha1.SourceConfig.getDefaultInstance() + : sourceConfig_; } } /** + * + * *
      * Required. Source connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.SourceConfig, + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> getSourceConfigFieldBuilder() { if (sourceConfigBuilder_ == null) { - sourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder>( - getSourceConfig(), - getParentForChildren(), - isClean()); + sourceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.SourceConfig, + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, + com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder>( + getSourceConfig(), getParentForChildren(), isClean()); sourceConfig_ = null; } return sourceConfigBuilder_; @@ -3893,41 +4421,61 @@ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfi private com.google.cloud.datastream.v1alpha1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> destinationConfigBuilder_; + com.google.cloud.datastream.v1alpha1.DestinationConfig, + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> + destinationConfigBuilder_; /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ public boolean hasDestinationConfig() { return ((bitField0_ & 0x00000040) != 0); } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ public com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig() { if (destinationConfigBuilder_ == null) { - return destinationConfig_ == null ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } else { return destinationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setDestinationConfig(com.google.cloud.datastream.v1alpha1.DestinationConfig value) { + public Builder setDestinationConfig( + com.google.cloud.datastream.v1alpha1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3941,11 +4489,15 @@ public Builder setDestinationConfig(com.google.cloud.datastream.v1alpha1.Destina return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDestinationConfig( com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder builderForValue) { @@ -3959,17 +4511,23 @@ public Builder setDestinationConfig( return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeDestinationConfig(com.google.cloud.datastream.v1alpha1.DestinationConfig value) { + public Builder mergeDestinationConfig( + com.google.cloud.datastream.v1alpha1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - destinationConfig_ != null && - destinationConfig_ != com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) { + if (((bitField0_ & 0x00000040) != 0) + && destinationConfig_ != null + && destinationConfig_ + != com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance()) { getDestinationConfigBuilder().mergeFrom(value); } else { destinationConfig_ = value; @@ -3982,11 +4540,15 @@ public Builder mergeDestinationConfig(com.google.cloud.datastream.v1alpha1.Desti return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDestinationConfig() { bitField0_ = (bitField0_ & ~0x00000040); @@ -3999,48 +4561,66 @@ public Builder clearDestinationConfig() { return this; } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder getDestinationConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder + getDestinationConfigBuilder() { bitField0_ |= 0x00000040; onChanged(); return getDestinationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder + getDestinationConfigOrBuilder() { if (destinationConfigBuilder_ != null) { return destinationConfigBuilder_.getMessageOrBuilder(); } else { - return destinationConfig_ == null ? - com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() : destinationConfig_; + return destinationConfig_ == null + ? com.google.cloud.datastream.v1alpha1.DestinationConfig.getDefaultInstance() + : destinationConfig_; } } /** + * + * *
      * Required. Destination connection profile configuration.
      * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.DestinationConfig, + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> getDestinationConfigFieldBuilder() { if (destinationConfigBuilder_ == null) { - destinationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder>( - getDestinationConfig(), - getParentForChildren(), - isClean()); + destinationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.DestinationConfig, + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, + com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder>( + getDestinationConfig(), getParentForChildren(), isClean()); destinationConfig_ = null; } return destinationConfigBuilder_; @@ -4048,22 +4628,29 @@ public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestin private int state_ = 0; /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ @@ -4074,24 +4661,33 @@ public Builder setStateValue(int value) { return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The state. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.State getState() { - com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); - return result == null ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.Stream.State result = + com.google.cloud.datastream.v1alpha1.Stream.State.forNumber(state_); + return result == null + ? com.google.cloud.datastream.v1alpha1.Stream.State.UNRECOGNIZED + : result; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @param value The state to set. * @return This builder for chaining. */ @@ -4105,11 +4701,14 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.Stream.State value) return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return This builder for chaining. */ public Builder clearState() { @@ -4120,14 +4719,20 @@ public Builder clearState() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> backfillAllBuilder_; + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> + backfillAllBuilder_; /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ @java.lang.Override @@ -4135,19 +4740,23 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillAllBuilder_ == null) { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) + backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } else { @@ -4158,6 +4767,8 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4165,7 +4776,8 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder setBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder setBackfillAll(
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4179,6 +4791,8 @@ public Builder setBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.Backfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4198,6 +4812,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4205,12 +4821,19 @@ public Builder setBackfillAll(
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder mergeBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder mergeBackfillAll(
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
-        if (backfillStrategyCase_ == 101 &&
-            backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance()) {
-          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_)
-              .mergeFrom(value).buildPartial();
+        if (backfillStrategyCase_ == 101
+            && backfillStrategy_
+                != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
+                    .getDefaultInstance()) {
+          backfillStrategy_ =
+              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder(
+                      (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
+                          backfillStrategy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           backfillStrategy_ = value;
         }
@@ -4226,6 +4849,8 @@ public Builder mergeBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.Back
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4250,6 +4875,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4257,10 +4884,13 @@ public Builder clearBackfillAll() {
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder
+        getBackfillAllBuilder() {
       return getBackfillAllFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4269,17 +4899,21 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder g
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     @java.lang.Override
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
+        getBackfillAllOrBuilder() {
       if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) {
         return backfillAllBuilder_.getMessageOrBuilder();
       } else {
         if (backfillStrategyCase_ == 101) {
-          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
+          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
+              backfillStrategy_;
         }
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4288,14 +4922,20 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> 
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>
         getBackfillAllFieldBuilder() {
       if (backfillAllBuilder_ == null) {
         if (!(backfillStrategyCase_ == 101)) {
-          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
+          backfillStrategy_ =
+              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
         }
-        backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
+        backfillAllBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
+                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
                 (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_,
                 getParentForChildren(),
                 isClean());
@@ -4307,13 +4947,20 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> backfillNoneBuilder_;
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy,
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder,
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>
+        backfillNoneBuilder_;
     /**
+     *
+     *
      * 
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -4321,35 +4968,46 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * + * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillNoneBuilder_ == null) { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_; } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance(); } else { if (backfillStrategyCase_ == 102) { return backfillNoneBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance(); } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ - public Builder setBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder setBackfillNone( + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4363,11 +5021,14 @@ public Builder setBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.Backf return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ public Builder setBackfillNone( com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder builderForValue) { @@ -4381,18 +5042,28 @@ public Builder setBackfillNone( return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ - public Builder mergeBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder mergeBackfillNone( + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 && - backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) { - backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_) - .mergeFrom(value).buildPartial(); + if (backfillStrategyCase_ == 102 + && backfillStrategy_ + != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance()) { + backfillStrategy_ = + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_) + .mergeFrom(value) + .buildPartial(); } else { backfillStrategy_ = value; } @@ -4408,11 +5079,14 @@ public Builder mergeBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.Bac return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ public Builder clearBackfillNone() { if (backfillNoneBuilder_ == null) { @@ -4431,50 +5105,70 @@ public Builder clearBackfillNone() { return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder getBackfillNoneBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder + getBackfillNoneBuilder() { return getBackfillNoneFieldBuilder().getBuilder(); } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder() { if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { return backfillNoneBuilder_.getMessageOrBuilder(); } else { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_; } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy + .getDefaultInstance(); } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder> getBackfillNoneFieldBuilder() { if (backfillNoneBuilder_ == null) { if (!(backfillStrategyCase_ == 102)) { - backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); + backfillStrategy_ = + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } - backfillNoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_, + backfillNoneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder, + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder>( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_, getParentForChildren(), isClean()); backfillStrategy_ = null; @@ -4485,23 +5179,31 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000400; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorsBuilder_; + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + errorsBuilder_; /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List getErrorsList() { if (errorsBuilder_ == null) { @@ -4511,11 +5213,15 @@ public java.util.List getErrorsList( } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -4525,11 +5231,15 @@ public int getErrorsCount() { } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -4539,14 +5249,17 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setErrors( - int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4560,11 +5273,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -4578,11 +5295,15 @@ public Builder setErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { @@ -4598,14 +5319,17 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4619,14 +5343,17 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addErrors( - com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -4637,11 +5364,15 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -4655,18 +5386,21 @@ public Builder addErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -4674,11 +5408,15 @@ public Builder addAllErrors( return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -4691,11 +5429,15 @@ public Builder clearErrors() { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -4708,39 +5450,50 @@ public Builder removeErrors(int index) { return this; } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { return getErrorsFieldBuilder().getBuilder(index); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { if (errorsBuilder_ == null) { - return errors_.get(index); } else { + return errors_.get(index); + } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -4748,56 +5501,70 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( - int index) { - return getErrorsFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { + return getErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** + * + * *
      * Output only. Errors on the Stream.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, - ((bitField0_ & 0x00000400) != 0), - getParentForChildren(), - isClean()); + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, + com.google.cloud.datastream.v1alpha1.Error.Builder, + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4807,12 +5574,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Stream) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Stream) private static final com.google.cloud.datastream.v1alpha1.Stream DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Stream(); } @@ -4821,27 +5588,27 @@ public static com.google.cloud.datastream.v1alpha1.Stream getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Stream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4856,6 +5623,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java similarity index 67% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java index 621c578156bd..73a0efacf9d7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java @@ -1,87 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface StreamOrBuilder extends +public interface StreamOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Labels.
    * 
@@ -90,30 +135,31 @@ public interface StreamOrBuilder extends */ int getLabelsCount(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ @java.lang.Deprecated - java.util.Map - getLabels(); + java.util.Map getLabels(); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map - getLabelsMap(); + java.util.Map getLabelsMap(); /** + * + * *
    * Labels.
    * 
@@ -121,134 +167,182 @@ boolean containsLabels( * map<string, string> labels = 4; */ /* nullable */ -java.lang.String getLabelsOrDefault( + java.lang.String getLabelsOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The state. */ com.google.cloud.datastream.v1alpha1.Stream.State getState(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -256,78 +350,106 @@ java.lang.String getLabelsOrThrow(
    *
    * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
    */
-  com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder();
+  com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
+      getBackfillAllOrBuilder();
 
   /**
+   *
+   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ boolean hasBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder(); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder + getBackfillNoneOrBuilder(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1alpha1.Error getErrors(int index); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getErrorsCount(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index); public com.google.cloud.datastream.v1alpha1.Stream.BackfillStrategyCase getBackfillStrategyCase(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java similarity index 68% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java index 77f28a0846b9..9b22365ace71 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java @@ -1,52 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} - */ -public final class UpdateConnectionProfileRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} */ +public final class UpdateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) UpdateConnectionProfileRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateConnectionProfileRequest.newBuilder() to construct. - private UpdateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private UpdateConnectionProfileRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateConnectionProfileRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateConnectionProfileRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -55,7 +73,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -63,6 +83,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -71,7 +93,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -79,6 +103,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -87,7 +113,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -97,11 +124,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -109,33 +141,50 @@ public boolean hasConnectionProfile() { return connectionProfile_ != null; } /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -151,6 +200,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -159,14 +209,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -182,16 +233,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -200,6 +250,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -232,12 +282,10 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -250,25 +298,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = + (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile() - .equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; } - if (!getRequestId() - .equals(other.getRequestId())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -296,125 +342,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); } - // Construct using com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -434,14 +485,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + .getDefaultInstance(); } @java.lang.Override @@ -455,23 +508,26 @@ public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest build @java.lang.Override public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result = new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result) { + private void buildPartial0( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.connectionProfile_ = connectionProfileBuilder_ == null - ? connectionProfile_ - : connectionProfileBuilder_.build(); + result.connectionProfile_ = + connectionProfileBuilder_ == null + ? connectionProfile_ + : connectionProfileBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -482,46 +538,51 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateConnection public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest)other); + return mergeFrom( + (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other) { + if (other + == com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + .getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -559,31 +620,32 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConnectionProfileFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getConnectionProfileFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -593,12 +655,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -607,13 +675,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -622,17 +694,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -641,7 +719,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -657,6 +736,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -665,10 +746,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -679,6 +760,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -687,13 +770,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -706,6 +790,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -714,7 +800,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -727,6 +814,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -735,7 +824,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -743,6 +833,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -751,17 +843,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -770,17 +866,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -788,41 +888,61 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + connectionProfileBuilder_; /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (connectionProfileBuilder_ == null) { - return connectionProfile_ == null ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } else { return connectionProfileBuilder_.getMessage(); } } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -836,11 +956,15 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.Connect return this; } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -854,17 +978,23 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile( + com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - connectionProfile_ != null && - connectionProfile_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && connectionProfile_ != null + && connectionProfile_ + != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { getConnectionProfileBuilder().mergeFrom(value); } else { connectionProfile_ = value; @@ -877,11 +1007,15 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.Conne return this; } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConnectionProfile() { bitField0_ = (bitField0_ & ~0x00000002); @@ -894,48 +1028,66 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder + getConnectionProfileBuilder() { bitField0_ |= 0x00000002; onChanged(); return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { if (connectionProfileBuilder_ != null) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { - return connectionProfile_ == null ? - com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() : connectionProfile_; + return connectionProfile_ == null + ? com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance() + : connectionProfile_; } } /** + * + * *
      * Required. The ConnectionProfile to update.
      * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { - connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( - getConnectionProfile(), - getParentForChildren(), - isClean()); + connectionProfileBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, + com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + getConnectionProfile(), getParentForChildren(), isClean()); connectionProfile_ = null; } return connectionProfileBuilder_; @@ -943,6 +1095,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -958,13 +1112,13 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -973,6 +1127,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -988,15 +1144,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1004,6 +1159,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1019,18 +1176,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1046,6 +1207,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1055,6 +1217,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1070,21 +1234,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,41 +1260,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) - private static final com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstance() { + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConnectionProfileRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConnectionProfileRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1140,9 +1308,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java index 8162512cd199..3cf917345c1a 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateConnectionProfileRequestOrBuilder extends +public interface UpdateConnectionProfileRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** + * + * *
    * Required. The ConnectionProfile to update.
    * 
* - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,8 +154,8 @@ public interface UpdateConnectionProfileRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java index 08f5fa35621f..422411ac0e99 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java @@ -1,52 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} - */ -public final class UpdateStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} */ +public final class UpdateStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.UpdateStreamRequest) UpdateStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateStreamRequest.newBuilder() to construct. private UpdateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private UpdateStreamRequest() { requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateStreamRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); } public static final int UPDATE_MASK_FIELD_NUMBER = 1; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -55,7 +72,9 @@ protected java.lang.Object newInstance(
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -63,6 +82,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -71,7 +92,9 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -79,6 +102,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -87,7 +112,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -97,11 +123,16 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ @java.lang.Override @@ -109,33 +140,49 @@ public boolean hasStream() { return stream_ != null; } /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream getStream() { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } public static final int REQUEST_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object requestId_ = ""; /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -151,6 +198,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -159,14 +207,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -182,16 +231,15 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -202,12 +250,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; private boolean validateOnly_ = false; /** + * + * *
    * Optional. Only validate the stream with the changes, without actually updating it.
    * The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -218,11 +269,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_ = false; /** + * + * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -231,6 +285,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -242,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -269,23 +323,19 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -295,29 +345,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = + (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream() - .equals(other.getStream())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; + if (!getStream().equals(other.getStream())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,136 +386,137 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateStreamRequest} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.UpdateStreamRequest) com.google.cloud.datastream.v1alpha1.UpdateStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +538,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto + .internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; } @java.lang.Override @@ -512,8 +559,11 @@ public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest buildPartial() { - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result = new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result = + new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -521,14 +571,10 @@ public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest buildPartial() { private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { - result.stream_ = streamBuilder_ == null - ? stream_ - : streamBuilder_.build(); + result.stream_ = streamBuilder_ == null ? stream_ : streamBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.requestId_ = requestId_; @@ -545,38 +591,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.UpdateStreamRequ public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) other); } else { super.mergeFrom(other); return this; @@ -584,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) + return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -628,41 +676,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - requestId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - validateOnly_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - force_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + force_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -672,12 +722,18 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -686,13 +742,17 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -701,17 +761,23 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -720,7 +786,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -736,6 +803,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -744,10 +813,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); } else { @@ -758,6 +827,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -766,13 +837,14 @@ public Builder setUpdateMask(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; @@ -785,6 +857,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -793,7 +867,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000001); @@ -806,6 +881,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -814,7 +891,8 @@ public Builder clearUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000001; @@ -822,6 +900,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -830,17 +910,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -849,17 +933,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -867,39 +955,58 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + streamBuilder_; /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ public boolean hasStream() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ public com.google.cloud.datastream.v1alpha1.Stream getStream() { if (streamBuilder_ == null) { - return stream_ == null ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } else { return streamBuilder_.getMessage(); } } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { @@ -915,14 +1022,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setStream( - com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); } else { @@ -933,17 +1043,21 @@ public Builder setStream( return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - stream_ != null && - stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && stream_ != null + && stream_ != com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()) { getStreamBuilder().mergeFrom(value); } else { stream_ = value; @@ -956,11 +1070,15 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearStream() { bitField0_ = (bitField0_ & ~0x00000002); @@ -973,11 +1091,15 @@ public Builder clearStream() { return this; } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { bitField0_ |= 0x00000002; @@ -985,36 +1107,48 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamBuilder() { return getStreamFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() { if (streamBuilder_ != null) { return streamBuilder_.getMessageOrBuilder(); } else { - return stream_ == null ? - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() : stream_; + return stream_ == null + ? com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance() + : stream_; } } /** + * + * *
      * Required. The stream resource to update.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamFieldBuilder() { if (streamBuilder_ == null) { - streamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - getStream(), - getParentForChildren(), - isClean()); + streamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, + com.google.cloud.datastream.v1alpha1.Stream.Builder, + com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + getStream(), getParentForChildren(), isClean()); stream_ = null; } return streamBuilder_; @@ -1022,6 +1156,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1037,13 +1173,13 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1052,6 +1188,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1067,15 +1205,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -1083,6 +1220,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1098,18 +1237,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } requestId_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1125,6 +1268,7 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { @@ -1134,6 +1278,8 @@ public Builder clearRequestId() { return this; } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1149,12 +1295,14 @@ public Builder clearRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); requestId_ = value; bitField0_ |= 0x00000004; @@ -1162,14 +1310,17 @@ public Builder setRequestIdBytes( return this; } - private boolean validateOnly_ ; + private boolean validateOnly_; /** + * + * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ @java.lang.Override @@ -1177,29 +1328,35 @@ public boolean getValidateOnly() { return validateOnly_; } /** + * + * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The validateOnly to set. * @return This builder for chaining. */ public Builder setValidateOnly(boolean value) { - + validateOnly_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * Optional. Only validate the stream with the changes, without actually updating it.
      * The default is false.
      * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValidateOnly() { @@ -1209,13 +1366,16 @@ public Builder clearValidateOnly() { return this; } - private boolean force_ ; + private boolean force_; /** + * + * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -1223,27 +1383,33 @@ public boolean getForce() { return force_; } /** + * + * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The force to set. * @return This builder for chaining. */ public Builder setForce(boolean value) { - + force_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * Optional. Execute the update without validating it.
      * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearForce() { @@ -1252,9 +1418,9 @@ public Builder clearForce() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1264,12 +1430,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.UpdateStreamRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.UpdateStreamRequest) private static final com.google.cloud.datastream.v1alpha1.UpdateStreamRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(); } @@ -1278,27 +1444,27 @@ public static com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1313,6 +1479,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java index 84c1b730b39e..8129fb190971 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateStreamRequestOrBuilder extends +public interface UpdateStreamRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -16,11 +34,15 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -29,11 +51,15 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -42,38 +68,55 @@ public interface UpdateStreamRequestOrBuilder extends
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the stream field is set. */ boolean hasStream(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** + * + * *
    * Required. The stream resource to update.
    * 
* - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -89,10 +132,13 @@ public interface UpdateStreamRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ java.lang.String getRequestId(); /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -108,28 +154,34 @@ public interface UpdateStreamRequestOrBuilder extends
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - com.google.protobuf.ByteString - getRequestIdBytes(); + com.google.protobuf.ByteString getRequestIdBytes(); /** + * + * *
    * Optional. Only validate the stream with the changes, without actually updating it.
    * The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The validateOnly. */ boolean getValidateOnly(); /** + * + * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ boolean getForce(); diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java similarity index 72% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java index 85d2af13f379..d2d3caa20ec4 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java @@ -1,20 +1,34 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** - * Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} - */ -public final class Validation extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} */ +public final class Validation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Validation) ValidationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Validation.newBuilder() to construct. private Validation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Validation() { description_ = ""; status_ = 0; @@ -24,39 +38,43 @@ private Validation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Validation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Validation.class, com.google.cloud.datastream.v1alpha1.Validation.Builder.class); + com.google.cloud.datastream.v1alpha1.Validation.class, + com.google.cloud.datastream.v1alpha1.Validation.Builder.class); } /** + * + * *
    * Validation execution status.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.Validation.Status} */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { + public enum Status implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified status.
      * 
@@ -65,6 +83,8 @@ public enum Status */ STATUS_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -73,6 +93,8 @@ public enum Status */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -81,6 +103,8 @@ public enum Status */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -92,6 +116,8 @@ public enum Status ; /** + * + * *
      * Unspecified status.
      * 
@@ -100,6 +126,8 @@ public enum Status */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -108,6 +136,8 @@ public enum Status */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -116,6 +146,8 @@ public enum Status */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -124,7 +156,6 @@ public enum Status */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -149,50 +180,51 @@ public static Status valueOf(int value) { */ public static Status forNumber(int value) { switch (value) { - case 0: return STATUS_UNSPECIFIED; - case 1: return NOT_EXECUTED; - case 2: return FAILED; - case 3: return PASSED; - default: return null; + case 0: + return STATUS_UNSPECIFIED; + case 1: + return NOT_EXECUTED; + case 2: + return FAILED; + case 3: + return PASSED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.datastream.v1alpha1.Validation.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -210,14 +242,18 @@ private Status(int value) { } public static final int DESCRIPTION_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -226,29 +262,29 @@ public java.lang.String getDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } } /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The bytes for description. */ @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -259,33 +295,47 @@ public java.lang.String getDescription() { public static final int STATUS_FIELD_NUMBER = 2; private int status_ = 0; /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The enum numeric value on the wire for status. */ - @java.lang.Override public int getStatusValue() { + @java.lang.Override + public int getStatusValue() { return status_; } /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The status. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { - com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); - return result == null ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { + com.google.cloud.datastream.v1alpha1.Validation.Status result = + com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); + return result == null + ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED + : result; } public static final int MESSAGE_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List message_; /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -297,6 +347,8 @@ public java.util.List ge return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -304,11 +356,13 @@ public java.util.List ge * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessageOrBuilderList() { return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -320,6 +374,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -331,6 +387,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -344,14 +402,18 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } public static final int CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -360,29 +422,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -391,6 +453,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -402,12 +465,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); } - if (status_ != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { + if (status_ + != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { output.writeEnum(2, status_); } for (int i = 0; i < message_.size(); i++) { @@ -428,13 +491,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } - if (status_ != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, status_); + if (status_ + != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); } for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, message_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, message_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -447,20 +509,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Validation)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Validation other = (com.google.cloud.datastream.v1alpha1.Validation) obj; + com.google.cloud.datastream.v1alpha1.Validation other = + (com.google.cloud.datastream.v1alpha1.Validation) obj; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (status_ != other.status_) return false; - if (!getMessageList() - .equals(other.getMessageList())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!getMessageList().equals(other.getMessageList())) return false; + if (!getCode().equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -487,126 +547,128 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Validation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.Validation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Validation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Validation) com.google.cloud.datastream.v1alpha1.ValidationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.Validation.class, com.google.cloud.datastream.v1alpha1.Validation.Builder.class); + com.google.cloud.datastream.v1alpha1.Validation.class, + com.google.cloud.datastream.v1alpha1.Validation.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.Validation.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -625,9 +687,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; } @java.lang.Override @@ -646,14 +708,18 @@ public com.google.cloud.datastream.v1alpha1.Validation build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation buildPartial() { - com.google.cloud.datastream.v1alpha1.Validation result = new com.google.cloud.datastream.v1alpha1.Validation(this); + com.google.cloud.datastream.v1alpha1.Validation result = + new com.google.cloud.datastream.v1alpha1.Validation(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.Validation result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.Validation result) { if (messageBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { message_ = java.util.Collections.unmodifiableList(message_); @@ -682,38 +748,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.Validation resul public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Validation) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.Validation)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Validation) other); } else { super.mergeFrom(other); return this; @@ -721,7 +788,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) { - if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) + return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; bitField0_ |= 0x00000001; @@ -748,9 +816,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000004); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageFieldBuilder() : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageFieldBuilder() + : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -787,40 +856,45 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - status_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.cloud.datastream.v1alpha1.ValidationMessage m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), - extensionRegistry); - if (messageBuilder_ == null) { - ensureMessageIsMutable(); - message_.add(m); - } else { - messageBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.datastream.v1alpha1.ValidationMessage m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), + extensionRegistry); + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(m); + } else { + messageBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -830,22 +904,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object description_ = ""; /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; @@ -854,20 +931,21 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return The bytes for description. */ - public com.google.protobuf.ByteString - getDescriptionBytes() { + public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); description_ = b; return b; } else { @@ -875,28 +953,35 @@ public java.lang.String getDescription() { } } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } description_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { @@ -906,17 +991,21 @@ public Builder clearDescription() { return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); description_ = value; bitField0_ |= 0x00000001; @@ -926,22 +1015,29 @@ public Builder setDescriptionBytes( private int status_ = 0; /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The enum numeric value on the wire for status. */ - @java.lang.Override public int getStatusValue() { + @java.lang.Override + public int getStatusValue() { return status_; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ @@ -952,24 +1048,33 @@ public Builder setStatusValue(int value) { return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The status. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { - com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); - return result == null ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.Validation.Status result = + com.google.cloud.datastream.v1alpha1.Validation.Status.forNumber(status_); + return result == null + ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED + : result; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @param value The status to set. * @return This builder for chaining. */ @@ -983,11 +1088,14 @@ public Builder setStatus(com.google.cloud.datastream.v1alpha1.Validation.Status return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return This builder for chaining. */ public Builder clearStatus() { @@ -998,18 +1106,26 @@ public Builder clearStatus() { } private java.util.List message_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - message_ = new java.util.ArrayList(message_); + message_ = + new java.util.ArrayList( + message_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> messageBuilder_; + com.google.cloud.datastream.v1alpha1.ValidationMessage, + com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> + messageBuilder_; /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1024,6 +1140,8 @@ public java.util.List ge } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1038,6 +1156,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1052,6 +1172,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1073,6 +1195,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1091,6 +1215,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1111,6 +1237,8 @@ public Builder addMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1132,6 +1260,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1150,6 +1280,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1168,6 +1300,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1175,11 +1309,11 @@ public Builder addMessage( * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ public Builder addAllMessage( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (messageBuilder_ == null) { ensureMessageIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, message_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, message_); onChanged(); } else { messageBuilder_.addAllMessages(values); @@ -1187,6 +1321,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1204,6 +1340,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1221,6 +1359,8 @@ public Builder removeMessage(int index) { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1232,6 +1372,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage return getMessageFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1241,19 +1383,22 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { - return message_.get(index); } else { + return message_.get(index); + } else { return messageBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageOrBuilderList() { + public java.util.List + getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { @@ -1261,6 +1406,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1268,10 +1415,12 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder().addBuilder( - com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder() + .addBuilder(com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1280,30 +1429,36 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder( int index) { - return getMessageFieldBuilder().addBuilder( - index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder() + .addBuilder( + index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** + * + * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageBuilderList() { + public java.util.List + getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> + com.google.cloud.datastream.v1alpha1.ValidationMessage, + com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder>( - message_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + messageBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ValidationMessage, + com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder>( + message_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; @@ -1311,18 +1466,20 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage private java.lang.Object code_ = ""; /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1331,20 +1488,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -1352,28 +1510,35 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -1383,26 +1548,30 @@ public Builder clearCode() { return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1412,12 +1581,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.Validation) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.Validation) private static final com.google.cloud.datastream.v1alpha1.Validation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.Validation(); } @@ -1426,27 +1595,27 @@ public static com.google.cloud.datastream.v1alpha1.Validation getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Validation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Validation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1461,6 +1630,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java similarity index 64% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java index 9b7a992e2b01..e390265e53c7 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Represent user-facing validation result message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationMessage} */ -public final class ValidationMessage extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidationMessage extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ValidationMessage) ValidationMessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidationMessage.newBuilder() to construct. private ValidationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidationMessage() { message_ = ""; level_ = 0; @@ -27,51 +45,54 @@ private ValidationMessage() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidationMessage(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationMessage.class, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationMessage.class, + com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); } /** + * + * *
    * Validation message level.
    * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.ValidationMessage.Level} */ - public enum Level - implements com.google.protobuf.ProtocolMessageEnum { + public enum Level implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unspecified level.
      * 
@@ -80,6 +101,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -88,6 +111,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -99,6 +124,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -107,6 +134,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -115,6 +144,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -123,7 +154,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -148,49 +178,51 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: return LEVEL_UNSPECIFIED; - case 1: return WARNING; - case 2: return ERROR; - default: return null; + case 0: + return LEVEL_UNSPECIFIED; + case 1: + return WARNING; + case 2: + return ERROR; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor() + .getEnumTypes() + .get(0); } private static final Level[] VALUES = values(); - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -208,14 +240,18 @@ private Level(int value) { } public static final int MESSAGE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ @java.lang.Override @@ -224,29 +260,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -257,56 +293,69 @@ public java.lang.String getMessage() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_ = 0; /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The level. */ - @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); - return result == null ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); + return result == null + ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED + : result; } public static final int METADATA_FIELD_NUMBER = 3; + private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } + @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -314,20 +363,21 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -339,6 +389,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -346,17 +398,19 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( + public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -364,11 +418,11 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -376,14 +430,18 @@ public java.lang.String getMetadataOrThrow( } public static final int CODE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object code_ = ""; /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -392,29 +450,29 @@ public java.lang.String getCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; } } /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The bytes for code. */ @java.lang.Override - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -423,6 +481,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,20 +493,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + if (level_ + != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED + .getNumber()) { output.writeEnum(2, level_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 3); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -463,19 +519,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, level_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metadata__); + if (level_ + != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); + } + for (java.util.Map.Entry entry : + internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry metadata__ = + MetadataDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -488,20 +545,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ValidationMessage)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ValidationMessage other = (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; + com.google.cloud.datastream.v1alpha1.ValidationMessage other = + (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; - if (!getMessage() - .equals(other.getMessage())) return false; + if (!getMessage().equals(other.getMessage())) return false; if (level_ != other.level_) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getCode() - .equals(other.getCode())) return false; + if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; + if (!getCode().equals(other.getCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -529,151 +584,156 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.ValidationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ValidationMessage prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.ValidationMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Represent user-facing validation result message.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationMessage} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ValidationMessage) com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { switch (number) { case 3: return internalGetMutableMetadata(); default: - throw new RuntimeException( - "Invalid map field number: " + number); + throw new RuntimeException("Invalid map field number: " + number); } } + @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationMessage.class, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationMessage.class, + com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ValidationMessage.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -686,9 +746,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; } @java.lang.Override @@ -707,8 +767,11 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage buildPartial() { - com.google.cloud.datastream.v1alpha1.ValidationMessage result = new com.google.cloud.datastream.v1alpha1.ValidationMessage(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.datastream.v1alpha1.ValidationMessage result = + new com.google.cloud.datastream.v1alpha1.ValidationMessage(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -734,38 +797,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ValidationMessag public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ValidationMessage) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationMessage)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationMessage) other); } else { super.mergeFrom(other); return this; @@ -773,7 +837,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) + return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; @@ -782,8 +847,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); bitField0_ |= 0x00000004; if (!other.getCode().isEmpty()) { code_ = other.code_; @@ -816,36 +880,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - message_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - level_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - internalGetMutableMetadata().getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - code_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + level_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMetadata() + .getMutableMap() + .put(metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + code_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -855,22 +926,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object message_ = ""; /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -879,20 +953,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -900,28 +975,35 @@ public java.lang.String getMessage() { } } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return This builder for chaining. */ public Builder clearMessage() { @@ -931,17 +1013,21 @@ public Builder clearMessage() { return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; @@ -951,22 +1037,29 @@ public Builder setMessageBytes( private int level_ = 0; /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ - @java.lang.Override public int getLevelValue() { + @java.lang.Override + public int getLevelValue() { return level_; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ @@ -977,24 +1070,33 @@ public Builder setLevelValue(int value) { return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The level. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); - return result == null ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = + com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.forNumber(level_); + return result == null + ? com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.UNRECOGNIZED + : result; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @param value The level to set. * @return This builder for chaining. */ @@ -1008,11 +1110,14 @@ public Builder setLevel(com.google.cloud.datastream.v1alpha1.ValidationMessage.L return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return This builder for chaining. */ public Builder clearLevel() { @@ -1022,21 +1127,20 @@ public Builder clearLevel() { return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { + private com.google.protobuf.MapField metadata_; + + private com.google.protobuf.MapField internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } + private com.google.protobuf.MapField internalGetMutableMetadata() { if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); + metadata_ = + com.google.protobuf.MapField.newMapField(MetadataDefaultEntryHolder.defaultEntry); } if (!metadata_.isMutable()) { metadata_ = metadata_.copy(); @@ -1045,10 +1149,13 @@ public Builder clearLevel() { onChanged(); return metadata_; } + public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1056,20 +1163,21 @@ public int getMetadataCount() { * map<string, string> metadata = 3; */ @java.lang.Override - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetMetadata().getMap().containsKey(key); } - /** - * Use {@link #getMetadataMap()} instead. - */ + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMetadata() { return getMetadataMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1081,6 +1189,8 @@ public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1088,17 +1198,19 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public /* nullable */ -java.lang.String getMetadataOrDefault( + public /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1106,91 +1218,95 @@ java.lang.String getMetadataOrDefault( * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } + public Builder clearMetadata() { bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableMetadata().getMutableMap() - .clear(); + internalGetMutableMetadata().getMutableMap().clear(); return this; } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMetadata().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { + public java.util.Map getMutableMetadata() { bitField0_ |= 0x00000004; return internalGetMutableMetadata().getMutableMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMetadata().getMutableMap().put(key, value); bitField0_ |= 0x00000004; return this; } /** + * + * *
      * Additional metadata related to the result.
      * 
* * map<string, string> metadata = 3; */ - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); + public Builder putAllMetadata(java.util.Map values) { + internalGetMutableMetadata().getMutableMap().putAll(values); bitField0_ |= 0x00000004; return this; } private java.lang.Object code_ = ""; /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1199,20 +1315,21 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return The bytes for code. */ - public com.google.protobuf.ByteString - getCodeBytes() { + public com.google.protobuf.ByteString getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); code_ = b; return b; } else { @@ -1220,28 +1337,35 @@ public java.lang.String getCode() { } } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { @@ -1251,26 +1375,30 @@ public Builder clearCode() { return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @param value The bytes for code to set. * @return This builder for chaining. */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); code_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1280,12 +1408,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ValidationMessage) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ValidationMessage) private static final com.google.cloud.datastream.v1alpha1.ValidationMessage DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ValidationMessage(); } @@ -1294,27 +1422,27 @@ public static com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ValidationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidationMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1329,6 +1457,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java similarity index 65% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java index 5c3535e27627..68bfb2252af4 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java @@ -1,52 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationMessageOrBuilder extends +public interface ValidationMessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationMessage) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** + * + * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return The level. */ com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel(); /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -55,30 +84,31 @@ public interface ValidationMessageOrBuilder extends */ int getMetadataCount(); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ + boolean containsMetadata(java.lang.String key); + /** Use {@link #getMetadataMap()} instead. */ @java.lang.Deprecated - java.util.Map - getMetadata(); + java.util.Map getMetadata(); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.util.Map - getMetadataMap(); + java.util.Map getMetadataMap(); /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -86,37 +116,43 @@ boolean containsMetadata( * map<string, string> metadata = 3; */ /* nullable */ -java.lang.String getMetadataOrDefault( + java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ -java.lang.String defaultValue); + java.lang.String defaultValue); /** + * + * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.lang.String getMetadataOrThrow( - java.lang.String key); + java.lang.String getMetadataOrThrow(java.lang.String key); /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java similarity index 73% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java index 3afd6fa66a95..8dfef25ef52f 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationOrBuilder extends +public interface ValidationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Validation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** + * + * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return The status. */ com.google.cloud.datastream.v1alpha1.Validation.Status getStatus(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List - getMessageList(); + java.util.List getMessageList(); /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -64,6 +94,8 @@ public interface ValidationOrBuilder extends */ com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int index); /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -72,41 +104,49 @@ public interface ValidationOrBuilder extends */ int getMessageCount(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List + java.util.List getMessageOrBuilderList(); /** + * + * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( - int index); + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder(int index); /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ java.lang.String getCode(); /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The bytes for code. */ - com.google.protobuf.ByteString - getCodeBytes(); + com.google.protobuf.ByteString getCodeBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java similarity index 73% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java index e5ffa97ff9d5..a7454c61cbf0 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java @@ -1,57 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** + * + * *
  * Contains the current validation results.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationResult} */ -public final class ValidationResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ValidationResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ValidationResult) ValidationResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ValidationResult.newBuilder() to construct. private ValidationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ValidationResult() { validations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ValidationResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationResult.class, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationResult.class, + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); } public static final int VALIDATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List validations_; /** + * + * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -64,6 +86,8 @@ public java.util.List getValida
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -72,11 +96,13 @@ public java.util.List getValida
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getValidationsOrBuilderList() {
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -89,6 +115,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -101,6 +129,8 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
     return validations_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -115,6 +145,7 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -126,8 +157,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -141,8 +171,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < validations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, validations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validations_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -152,15 +181,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ValidationResult)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.ValidationResult other = (com.google.cloud.datastream.v1alpha1.ValidationResult) obj;
+    com.google.cloud.datastream.v1alpha1.ValidationResult other =
+        (com.google.cloud.datastream.v1alpha1.ValidationResult) obj;
 
-    if (!getValidationsList()
-        .equals(other.getValidationsList())) return false;
+    if (!getValidationsList().equals(other.getValidationsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -182,129 +211,136 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datastream.v1alpha1.ValidationResult parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ValidationResult prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.datastream.v1alpha1.ValidationResult prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Contains the current validation results.
    * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ValidationResult) com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ValidationResult.class, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); + com.google.cloud.datastream.v1alpha1.ValidationResult.class, + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder.class); } // Construct using com.google.cloud.datastream.v1alpha1.ValidationResult.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -320,9 +356,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto + .internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; } @java.lang.Override @@ -341,14 +377,18 @@ public com.google.cloud.datastream.v1alpha1.ValidationResult build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationResult buildPartial() { - com.google.cloud.datastream.v1alpha1.ValidationResult result = new com.google.cloud.datastream.v1alpha1.ValidationResult(this); + com.google.cloud.datastream.v1alpha1.ValidationResult result = + new com.google.cloud.datastream.v1alpha1.ValidationResult(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.datastream.v1alpha1.ValidationResult result) { + private void buildPartialRepeatedFields( + com.google.cloud.datastream.v1alpha1.ValidationResult result) { if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -368,38 +408,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.ValidationResult public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.ValidationResult) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationResult)other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.ValidationResult) other); } else { super.mergeFrom(other); return this; @@ -407,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) + return this; if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { @@ -426,9 +468,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult o validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000001); - validationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValidationsFieldBuilder() : null; + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValidationsFieldBuilder() + : null; } else { validationsBuilder_.addAllMessages(other.validations_); } @@ -460,25 +503,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.Validation m = - input.readMessage( - com.google.cloud.datastream.v1alpha1.Validation.parser(), - extensionRegistry); - if (validationsBuilder_ == null) { - ensureValidationsIsMutable(); - validations_.add(m); - } else { - validationsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.datastream.v1alpha1.Validation m = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Validation.parser(), + extensionRegistry); + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(m); + } else { + validationsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -488,21 +533,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List validations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureValidationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - validations_ = new java.util.ArrayList(validations_); + validations_ = + new java.util.ArrayList(validations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> validationsBuilder_; + com.google.cloud.datastream.v1alpha1.Validation, + com.google.cloud.datastream.v1alpha1.Validation.Builder, + com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> + validationsBuilder_; /** + * + * *
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -518,6 +571,8 @@ public java.util.List getValida
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -533,6 +588,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -548,6 +605,8 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -570,6 +629,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -589,6 +650,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -610,6 +673,8 @@ public Builder addValidations(com.google.cloud.datastream.v1alpha1.Validation va
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -632,6 +697,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -651,6 +718,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -670,6 +739,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -681,8 +752,7 @@ public Builder addAllValidations(
         java.lang.Iterable values) {
       if (validationsBuilder_ == null) {
         ensureValidationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, validations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validations_);
         onChanged();
       } else {
         validationsBuilder_.addAllMessages(values);
@@ -690,6 +760,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -708,6 +780,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -726,6 +800,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -738,6 +814,8 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
       return getValidationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -748,11 +826,14 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
     public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
         int index) {
       if (validationsBuilder_ == null) {
-        return validations_.get(index);  } else {
+        return validations_.get(index);
+      } else {
         return validationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -760,8 +841,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
      *
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
-    public java.util.List 
-         getValidationsOrBuilderList() {
+    public java.util.List
+        getValidationsOrBuilderList() {
       if (validationsBuilder_ != null) {
         return validationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -769,6 +850,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -777,10 +860,12 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder() {
-      return getValidationsFieldBuilder().addBuilder(
-          com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder()
+          .addBuilder(com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -790,10 +875,12 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder(
         int index) {
-      return getValidationsFieldBuilder().addBuilder(
-          index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -801,27 +888,30 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      *
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
-    public java.util.List 
-         getValidationsBuilderList() {
+    public java.util.List
+        getValidationsBuilderList() {
       return getValidationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> 
+            com.google.cloud.datastream.v1alpha1.Validation,
+            com.google.cloud.datastream.v1alpha1.Validation.Builder,
+            com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>
         getValidationsFieldBuilder() {
       if (validationsBuilder_ == null) {
-        validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
-                validations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        validationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datastream.v1alpha1.Validation,
+                com.google.cloud.datastream.v1alpha1.Validation.Builder,
+                com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
+                validations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         validations_ = null;
       }
       return validationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -831,12 +921,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.ValidationResult)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.ValidationResult)
   private static final com.google.cloud.datastream.v1alpha1.ValidationResult DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.ValidationResult();
   }
@@ -845,27 +935,27 @@ public static com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public ValidationResult parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public ValidationResult parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -880,6 +970,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
similarity index 69%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
index 383c1067dd8a..b43f8e41655e 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface ValidationResultOrBuilder extends
+public interface ValidationResultOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -15,9 +33,10 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List 
-      getValidationsList();
+  java.util.List getValidationsList();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -27,6 +46,8 @@ public interface ValidationResultOrBuilder extends
    */
   com.google.cloud.datastream.v1alpha1.Validation getValidations(int index);
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -36,6 +57,8 @@ public interface ValidationResultOrBuilder extends
    */
   int getValidationsCount();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -43,9 +66,11 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List 
+  java.util.List
       getValidationsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -53,6 +78,5 @@ public interface ValidationResultOrBuilder extends
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
-      int index);
+  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
similarity index 68%
rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
index 247c096faa85..8576f0ffb8aa 100644
--- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
+++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
+ *
+ *
  * 
  * The VPC Peering configuration is used to create VPC peering between
  * Datastream and the consumer's VPC.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
  */
-public final class VpcPeeringConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
     VpcPeeringConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VpcPeeringConfig.newBuilder() to construct.
   private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VpcPeeringConfig() {
     vpcName_ = "";
     subnet_ = "";
@@ -27,38 +45,43 @@ private VpcPeeringConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new VpcPeeringConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
+    return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+        .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
+            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class,
+            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
   }
 
   public static final int VPC_NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object vpcName_ = "";
   /**
+   *
+   *
    * 
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vpcName. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getVpcName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcName_ = s; return s; } } /** + * + * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vpcName. */ @java.lang.Override - public com.google.protobuf.ByteString - getVpcNameBytes() { + public com.google.protobuf.ByteString getVpcNameBytes() { java.lang.Object ref = vpcName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcName_ = b; return b; } else { @@ -98,14 +121,18 @@ public java.lang.String getVpcName() { } public static final int SUBNET_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object subnet_ = ""; /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ @java.lang.Override @@ -114,29 +141,29 @@ public java.lang.String getSubnet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; } } /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ @java.lang.Override - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -145,6 +172,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +184,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpcName_); } @@ -187,17 +214,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.VpcPeeringConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = + (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; - if (!getVpcName() - .equals(other.getVpcName())) return false; - if (!getSubnet() - .equals(other.getSubnet())) return false; + if (!getVpcName().equals(other.getVpcName())) return false; + if (!getSubnet().equals(other.getSubnet())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -219,96 +245,104 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The VPC Peering configuration is used to create VPC peering between
    * Datastream and the consumer's VPC.
@@ -316,33 +350,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
       com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
+              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class,
+              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -353,9 +386,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
+          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
@@ -374,8 +407,11 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig buildPartial() {
-      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig result = new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig result =
+          new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -394,38 +430,39 @@ private void buildPartial0(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) {
-        return mergeFrom((com.google.cloud.datastream.v1alpha1.VpcPeeringConfig)other);
+        return mergeFrom((com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -433,7 +470,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other) {
-      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance())
+        return this;
       if (!other.getVpcName().isEmpty()) {
         vpcName_ = other.vpcName_;
         bitField0_ |= 0x00000001;
@@ -470,22 +508,25 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              vpcName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              subnet_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                vpcName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                subnet_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -495,22 +536,25 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object vpcName_ = "";
     /**
+     *
+     *
      * 
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vpcName. */ public java.lang.String getVpcName() { java.lang.Object ref = vpcName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); vpcName_ = s; return s; @@ -519,20 +563,21 @@ public java.lang.String getVpcName() { } } /** + * + * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vpcName. */ - public com.google.protobuf.ByteString - getVpcNameBytes() { + public com.google.protobuf.ByteString getVpcNameBytes() { java.lang.Object ref = vpcName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); vpcName_ = b; return b; } else { @@ -540,28 +585,35 @@ public java.lang.String getVpcName() { } } /** + * + * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The vpcName to set. * @return This builder for chaining. */ - public Builder setVpcName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } vpcName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearVpcName() { @@ -571,17 +623,21 @@ public Builder clearVpcName() { return this; } /** + * + * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for vpcName to set. * @return This builder for chaining. */ - public Builder setVpcNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); vpcName_ = value; bitField0_ |= 0x00000001; @@ -591,18 +647,20 @@ public Builder setVpcNameBytes( private java.lang.Object subnet_ = ""; /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -611,20 +669,21 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString - getSubnetBytes() { + public com.google.protobuf.ByteString getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); subnet_ = b; return b; } else { @@ -632,28 +691,35 @@ public java.lang.String getSubnet() { } } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSubnet() { @@ -663,26 +729,30 @@ public Builder clearSubnet() { return this; } /** + * + * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for subnet to set. * @return This builder for chaining. */ - public Builder setSubnetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); subnet_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -692,12 +762,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.VpcPeeringConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.VpcPeeringConfig) private static final com.google.cloud.datastream.v1alpha1.VpcPeeringConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(); } @@ -706,27 +776,27 @@ public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VpcPeeringConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VpcPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -741,6 +811,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java similarity index 60% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java index 88f4437562d6..70db0c12f3ca 100644 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java @@ -1,49 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface VpcPeeringConfigOrBuilder extends +public interface VpcPeeringConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.VpcPeeringConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The vpcName. */ java.lang.String getVpcName(); /** + * + * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for vpcName. */ - com.google.protobuf.ByteString - getVpcNameBytes(); + com.google.protobuf.ByteString getVpcNameBytes(); /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The subnet. */ java.lang.String getSubnet(); /** + * + * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for subnet. */ - com.google.protobuf.ByteString - getSubnetBytes(); + com.google.protobuf.ByteString getSubnetBytes(); } diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto b/java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto rename to java-datastream/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/AsyncCreateRouteLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createroute/SyncCreateRouteStringRouteString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/AsyncCreateStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/createstream/SyncCreateStreamStringStreamString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/AsyncDeleteRouteLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteRoutename.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deleteroute/SyncDeleteRouteString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/AsyncDeleteStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamStreamname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/deletestream/SyncDeleteStreamString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIps.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIps.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/AsyncGetRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRoute.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteRoutename.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getroute/SyncGetRouteString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/AsyncGetStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamStreamname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstream/SyncGetStreamString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/AsyncGetStreamObject.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObject.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectStreamobjectname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/getstreamobject/SyncGetStreamObjectString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnections.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnections.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutes.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/AsyncListRoutesPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutes.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/listroutes/SyncListRoutesString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjects.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/AsyncListStreamObjectsPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjects.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsStreamname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreamobjects/SyncListStreamObjectsString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreams.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/AsyncListStreamsPaged.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreams.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/liststreams/SyncListStreamsString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/AsyncLookupStreamObject.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/lookupstreamobject/SyncLookupStreamObject.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/AsyncStartBackfillJob.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJob.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobStreamobjectname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/startbackfilljob/SyncStartBackfillJobString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/AsyncStopBackfillJob.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJob.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/stopbackfilljob/SyncStopBackfillJobString.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/AsyncUpdateStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStream.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/AsyncCreatePrivateConnectionLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/AsyncCreateRouteLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createroute/SyncCreateRouteStringRouteString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/AsyncCreateStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/createstream/SyncCreateStreamStringStreamString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/AsyncDeleteRouteLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteRoutename.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deleteroute/SyncDeleteRouteString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/AsyncDeleteStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamStreamname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/deletestream/SyncDeleteStreamString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrors.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/AsyncFetchErrorsLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetcherrors/SyncFetchErrors.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIps.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIps.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnection.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/AsyncGetRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRoute.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteRoutename.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getroute/SyncGetRouteString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/AsyncGetStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamStreamname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/getstream/SyncGetStreamString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnections.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnections.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutes.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/AsyncListRoutesPaged.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutes.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/listroutes/SyncListRoutesString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreams.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/AsyncListStreamsPaged.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreams.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsLocationname.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/liststreams/SyncListStreamsString.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/AsyncUpdateStreamLRO.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStream.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastream/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/java-datastream/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to java-datastream/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java deleted file mode 100644 index 74f3f914733b..000000000000 --- a/owl-bot-staging/java-datastream/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java +++ /dev/null @@ -1,2419 +0,0 @@ -package com.google.cloud.datastream.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Datastream service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1/datastream.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastreamGrpc { - - private DatastreamGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datastream.v1.Datastream"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { - DatastreamGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - DatastreamGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { - DatastreamGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { - DatastreamGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { - DatastreamGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", - requestType = com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod() { - io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { - DatastreamGrpc.getDiscoverConnectionProfileMethod = getDiscoverConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) - .build(); - } - } - } - return getDiscoverConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getListStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreams", - requestType = com.google.cloud.datastream.v1.ListStreamsRequest.class, - responseType = com.google.cloud.datastream.v1.ListStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListStreamsMethod() { - io.grpc.MethodDescriptor getListStreamsMethod; - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - DatastreamGrpc.getListStreamsMethod = getListStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) - .build(); - } - } - } - return getListStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStream", - requestType = com.google.cloud.datastream.v1.GetStreamRequest.class, - responseType = com.google.cloud.datastream.v1.Stream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStreamMethod() { - io.grpc.MethodDescriptor getGetStreamMethod; - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - DatastreamGrpc.getGetStreamMethod = getGetStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.Stream.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) - .build(); - } - } - } - return getGetStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStream", - requestType = com.google.cloud.datastream.v1.CreateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateStreamMethod() { - io.grpc.MethodDescriptor getCreateStreamMethod; - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - DatastreamGrpc.getCreateStreamMethod = getCreateStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) - .build(); - } - } - } - return getCreateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateStream", - requestType = com.google.cloud.datastream.v1.UpdateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateStreamMethod() { - io.grpc.MethodDescriptor getUpdateStreamMethod; - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - DatastreamGrpc.getUpdateStreamMethod = getUpdateStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) - .build(); - } - } - } - return getUpdateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteStream", - requestType = com.google.cloud.datastream.v1.DeleteStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteStreamMethod() { - io.grpc.MethodDescriptor getDeleteStreamMethod; - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - DatastreamGrpc.getDeleteStreamMethod = getDeleteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) - .build(); - } - } - } - return getDeleteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStreamObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStreamObject", - requestType = com.google.cloud.datastream.v1.GetStreamObjectRequest.class, - responseType = com.google.cloud.datastream.v1.StreamObject.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStreamObjectMethod() { - io.grpc.MethodDescriptor getGetStreamObjectMethod; - if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamObjectMethod = DatastreamGrpc.getGetStreamObjectMethod) == null) { - DatastreamGrpc.getGetStreamObjectMethod = getGetStreamObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStreamObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStreamObject")) - .build(); - } - } - } - return getGetStreamObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getLookupStreamObjectMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LookupStreamObject", - requestType = com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, - responseType = com.google.cloud.datastream.v1.StreamObject.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLookupStreamObjectMethod() { - io.grpc.MethodDescriptor getLookupStreamObjectMethod; - if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getLookupStreamObjectMethod = DatastreamGrpc.getLookupStreamObjectMethod) == null) { - DatastreamGrpc.getLookupStreamObjectMethod = getLookupStreamObjectMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupStreamObject")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StreamObject.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("LookupStreamObject")) - .build(); - } - } - } - return getLookupStreamObjectMethod; - } - - private static volatile io.grpc.MethodDescriptor getListStreamObjectsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreamObjects", - requestType = com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, - responseType = com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListStreamObjectsMethod() { - io.grpc.MethodDescriptor getListStreamObjectsMethod; - if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamObjectsMethod = DatastreamGrpc.getListStreamObjectsMethod) == null) { - DatastreamGrpc.getListStreamObjectsMethod = getListStreamObjectsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreamObjects")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreamObjects")) - .build(); - } - } - } - return getListStreamObjectsMethod; - } - - private static volatile io.grpc.MethodDescriptor getStartBackfillJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StartBackfillJob", - requestType = com.google.cloud.datastream.v1.StartBackfillJobRequest.class, - responseType = com.google.cloud.datastream.v1.StartBackfillJobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStartBackfillJobMethod() { - io.grpc.MethodDescriptor getStartBackfillJobMethod; - if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getStartBackfillJobMethod = DatastreamGrpc.getStartBackfillJobMethod) == null) { - DatastreamGrpc.getStartBackfillJobMethod = getStartBackfillJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StartBackfillJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("StartBackfillJob")) - .build(); - } - } - } - return getStartBackfillJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getStopBackfillJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StopBackfillJob", - requestType = com.google.cloud.datastream.v1.StopBackfillJobRequest.class, - responseType = com.google.cloud.datastream.v1.StopBackfillJobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getStopBackfillJobMethod() { - io.grpc.MethodDescriptor getStopBackfillJobMethod; - if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getStopBackfillJobMethod = DatastreamGrpc.getStopBackfillJobMethod) == null) { - DatastreamGrpc.getStopBackfillJobMethod = getStopBackfillJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StopBackfillJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("StopBackfillJob")) - .build(); - } - } - } - return getStopBackfillJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchStaticIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", - requestType = com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, - responseType = com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchStaticIpsMethod() { - io.grpc.MethodDescriptor getFetchStaticIpsMethod; - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - DatastreamGrpc.getFetchStaticIpsMethod = getFetchStaticIpsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) - .build(); - } - } - } - return getFetchStaticIpsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePrivateConnectionMethod() { - io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { - DatastreamGrpc.getCreatePrivateConnectionMethod = getCreatePrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) - .build(); - } - } - } - return getCreatePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", - requestType = com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, - responseType = com.google.cloud.datastream.v1.PrivateConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPrivateConnectionMethod() { - io.grpc.MethodDescriptor getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - DatastreamGrpc.getGetPrivateConnectionMethod = getGetPrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) - .build(); - } - } - } - return getGetPrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPrivateConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", - requestType = com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, - responseType = com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPrivateConnectionsMethod() { - io.grpc.MethodDescriptor getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { - DatastreamGrpc.getListPrivateConnectionsMethod = getListPrivateConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) - .build(); - } - } - } - return getListPrivateConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePrivateConnectionMethod() { - io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { - DatastreamGrpc.getDeletePrivateConnectionMethod = getDeletePrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) - .build(); - } - } - } - return getDeletePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoute", - requestType = com.google.cloud.datastream.v1.CreateRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRouteMethod() { - io.grpc.MethodDescriptor getCreateRouteMethod; - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - DatastreamGrpc.getCreateRouteMethod = getCreateRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) - .build(); - } - } - } - return getCreateRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoute", - requestType = com.google.cloud.datastream.v1.GetRouteRequest.class, - responseType = com.google.cloud.datastream.v1.Route.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRouteMethod() { - io.grpc.MethodDescriptor getGetRouteMethod; - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - DatastreamGrpc.getGetRouteMethod = getGetRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.Route.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) - .build(); - } - } - } - return getGetRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoutes", - requestType = com.google.cloud.datastream.v1.ListRoutesRequest.class, - responseType = com.google.cloud.datastream.v1.ListRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRoutesMethod() { - io.grpc.MethodDescriptor getListRoutesMethod; - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - DatastreamGrpc.getListRoutesMethod = getListRoutesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) - .build(); - } - } - } - return getListRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", - requestType = com.google.cloud.datastream.v1.DeleteRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRouteMethod() { - io.grpc.MethodDescriptor getDeleteRouteMethod; - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - DatastreamGrpc.getDeleteRouteMethod = getDeleteRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) - .build(); - } - } - } - return getDeleteRouteMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DatastreamStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - }; - return DatastreamStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastreamBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - }; - return DatastreamBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DatastreamFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - }; - return DatastreamFutureStub.newStub(factory, channel); - } - - /** - *
-   * Datastream service
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - default void listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - default void getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - default void createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - default void updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a connection profile.
-     * 
- */ - default void deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - default void discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiscoverConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - default void listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamsMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - default void getStream(com.google.cloud.datastream.v1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - default void createStream(com.google.cloud.datastream.v1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - default void updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - default void deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a stream object.
-     * 
- */ - default void getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamObjectMethod(), responseObserver); - } - - /** - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - default void lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLookupStreamObjectMethod(), responseObserver); - } - - /** - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - default void listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamObjectsMethod(), responseObserver); - } - - /** - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - default void startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStartBackfillJobMethod(), responseObserver); - } - - /** - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - default void stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStopBackfillJobMethod(), responseObserver); - } - - /** - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - default void fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchStaticIpsMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - default void createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - default void getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - default void listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPrivateConnectionsMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - default void deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - default void createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRouteMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - default void getRoute(com.google.cloud.datastream.v1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); - } - - /** - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - default void listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - default void deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Datastream. - *
-   * Datastream service
-   * 
- */ - public static abstract class DatastreamImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return DatastreamGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamStub - extends io.grpc.stub.AbstractAsyncStub { - private DatastreamStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public void listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public void getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public void createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public void updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public void deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public void discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public void listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public void getStream(com.google.cloud.datastream.v1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public void createStream(com.google.cloud.datastream.v1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public void updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public void deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public void getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public void lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public void listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public void startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public void stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public void fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public void createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public void getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public void listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public void deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public void createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public void getRoute(com.google.cloud.datastream.v1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public void listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public void deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DatastreamBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile(com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse discoverConnectionProfile(com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListStreamsResponse listStreams(com.google.cloud.datastream.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.cloud.datastream.v1.Stream getStream(com.google.cloud.datastream.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.longrunning.Operation createStream(com.google.cloud.datastream.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.longrunning.Operation updateStream(com.google.cloud.datastream.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.longrunning.Operation deleteStream(com.google.cloud.datastream.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StreamObject getStreamObject(com.google.cloud.datastream.v1.GetStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public com.google.cloud.datastream.v1.StreamObject lookupStreamObject(com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupStreamObjectMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public com.google.cloud.datastream.v1.ListStreamObjectsResponse listStreamObjects(com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamObjectsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StartBackfillJobResponse startBackfillJob(com.google.cloud.datastream.v1.StartBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStartBackfillJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public com.google.cloud.datastream.v1.StopBackfillJobResponse stopBackfillJob(com.google.cloud.datastream.v1.StopBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStopBackfillJobMethod(), getCallOptions(), request); - } - - /** - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public com.google.cloud.datastream.v1.FetchStaticIpsResponse fetchStaticIps(com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation createPrivateConnection(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnection(com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse listPrivateConnections(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation deletePrivateConnection(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createRoute(com.google.cloud.datastream.v1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.cloud.datastream.v1.Route getRoute(com.google.cloud.datastream.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1.ListRoutesResponse listRoutes(com.google.cloud.datastream.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRoutesMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.longrunning.Operation deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRouteMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DatastreamFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( - com.google.cloud.datastream.v1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( - com.google.cloud.datastream.v1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( - com.google.cloud.datastream.v1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects of a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture discoverConnectionProfile( - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listStreams( - com.google.cloud.datastream.v1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getStream( - com.google.cloud.datastream.v1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createStream( - com.google.cloud.datastream.v1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateStream( - com.google.cloud.datastream.v1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteStream( - com.google.cloud.datastream.v1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getStreamObject( - com.google.cloud.datastream.v1.GetStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to look up a stream object by its source object identifier.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture lookupStreamObject( - com.google.cloud.datastream.v1.LookupStreamObjectRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupStreamObjectMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list the objects of a specific stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listStreamObjects( - com.google.cloud.datastream.v1.ListStreamObjectsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamObjectsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to start a backfill job for the specified stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture startBackfillJob( - com.google.cloud.datastream.v1.StartBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStartBackfillJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to stop a backfill job for the specified stream object.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture stopBackfillJob( - com.google.cloud.datastream.v1.StopBackfillJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStopBackfillJobMethod(), getCallOptions()), request); - } - - /** - *
-     * The FetchStaticIps API call exposes the static IP addresses used by
-     * Datastream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchStaticIps( - com.google.cloud.datastream.v1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPrivateConnection( - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPrivateConnection( - com.google.cloud.datastream.v1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPrivateConnections( - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePrivateConnection( - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a route for a private connectivity configuration
-     * in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRoute( - com.google.cloud.datastream.v1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRoute( - com.google.cloud.datastream.v1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list routes created for a private connectivity
-     * configuration in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRoutes( - com.google.cloud.datastream.v1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRoute( - com.google.cloud.datastream.v1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONNECTION_PROFILES = 0; - private static final int METHODID_GET_CONNECTION_PROFILE = 1; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; - private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; - private static final int METHODID_LIST_STREAMS = 6; - private static final int METHODID_GET_STREAM = 7; - private static final int METHODID_CREATE_STREAM = 8; - private static final int METHODID_UPDATE_STREAM = 9; - private static final int METHODID_DELETE_STREAM = 10; - private static final int METHODID_GET_STREAM_OBJECT = 11; - private static final int METHODID_LOOKUP_STREAM_OBJECT = 12; - private static final int METHODID_LIST_STREAM_OBJECTS = 13; - private static final int METHODID_START_BACKFILL_JOB = 14; - private static final int METHODID_STOP_BACKFILL_JOB = 15; - private static final int METHODID_FETCH_STATIC_IPS = 16; - private static final int METHODID_CREATE_PRIVATE_CONNECTION = 17; - private static final int METHODID_GET_PRIVATE_CONNECTION = 18; - private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 19; - private static final int METHODID_DELETE_PRIVATE_CONNECTION = 20; - private static final int METHODID_CREATE_ROUTE = 21; - private static final int METHODID_GET_ROUTE = 22; - private static final int METHODID_LIST_ROUTES = 23; - private static final int METHODID_DELETE_ROUTE = 24; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles((com.google.cloud.datastream.v1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile((com.google.cloud.datastream.v1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile((com.google.cloud.datastream.v1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile((com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile((com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISCOVER_CONNECTION_PROFILE: - serviceImpl.discoverConnectionProfile((com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_STREAMS: - serviceImpl.listStreams((com.google.cloud.datastream.v1.ListStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STREAM: - serviceImpl.getStream((com.google.cloud.datastream.v1.GetStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_STREAM: - serviceImpl.createStream((com.google.cloud.datastream.v1.CreateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_STREAM: - serviceImpl.updateStream((com.google.cloud.datastream.v1.UpdateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_STREAM: - serviceImpl.deleteStream((com.google.cloud.datastream.v1.DeleteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STREAM_OBJECT: - serviceImpl.getStreamObject((com.google.cloud.datastream.v1.GetStreamObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LOOKUP_STREAM_OBJECT: - serviceImpl.lookupStreamObject((com.google.cloud.datastream.v1.LookupStreamObjectRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_STREAM_OBJECTS: - serviceImpl.listStreamObjects((com.google.cloud.datastream.v1.ListStreamObjectsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_START_BACKFILL_JOB: - serviceImpl.startBackfillJob((com.google.cloud.datastream.v1.StartBackfillJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STOP_BACKFILL_JOB: - serviceImpl.stopBackfillJob((com.google.cloud.datastream.v1.StopBackfillJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_STATIC_IPS: - serviceImpl.fetchStaticIps((com.google.cloud.datastream.v1.FetchStaticIpsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PRIVATE_CONNECTION: - serviceImpl.createPrivateConnection((com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PRIVATE_CONNECTION: - serviceImpl.getPrivateConnection((com.google.cloud.datastream.v1.GetPrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PRIVATE_CONNECTIONS: - serviceImpl.listPrivateConnections((com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PRIVATE_CONNECTION: - serviceImpl.deletePrivateConnection((com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROUTE: - serviceImpl.createRoute((com.google.cloud.datastream.v1.CreateRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROUTE: - serviceImpl.getRoute((com.google.cloud.datastream.v1.GetRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROUTES: - serviceImpl.listRoutes((com.google.cloud.datastream.v1.ListRoutesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ROUTE: - serviceImpl.deleteRoute((com.google.cloud.datastream.v1.DeleteRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1.ListConnectionProfilesResponse>( - service, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1.ConnectionProfile>( - service, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_CONNECTION_PROFILE))) - .addMethod( - getDiscoverConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse>( - service, METHODID_DISCOVER_CONNECTION_PROFILE))) - .addMethod( - getListStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListStreamsRequest, - com.google.cloud.datastream.v1.ListStreamsResponse>( - service, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamRequest, - com.google.cloud.datastream.v1.Stream>( - service, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_STREAM))) - .addMethod( - getGetStreamObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject>( - service, METHODID_GET_STREAM_OBJECT))) - .addMethod( - getLookupStreamObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.LookupStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject>( - service, METHODID_LOOKUP_STREAM_OBJECT))) - .addMethod( - getListStreamObjectsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListStreamObjectsRequest, - com.google.cloud.datastream.v1.ListStreamObjectsResponse>( - service, METHODID_LIST_STREAM_OBJECTS))) - .addMethod( - getStartBackfillJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.StartBackfillJobRequest, - com.google.cloud.datastream.v1.StartBackfillJobResponse>( - service, METHODID_START_BACKFILL_JOB))) - .addMethod( - getStopBackfillJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.StopBackfillJobRequest, - com.google.cloud.datastream.v1.StopBackfillJobResponse>( - service, METHODID_STOP_BACKFILL_JOB))) - .addMethod( - getFetchStaticIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1.FetchStaticIpsResponse>( - service, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_PRIVATE_CONNECTION))) - .addMethod( - getGetPrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1.PrivateConnection>( - service, METHODID_GET_PRIVATE_CONNECTION))) - .addMethod( - getListPrivateConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1.ListPrivateConnectionsResponse>( - service, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateRouteRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetRouteRequest, - com.google.cloud.datastream.v1.Route>( - service, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse>( - service, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteRouteRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_ROUTE))) - .build(); - } - - private static abstract class DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DatastreamBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datastream.v1.DatastreamProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Datastream"); - } - } - - private static final class DatastreamFileDescriptorSupplier - extends DatastreamBaseDescriptorSupplier { - DatastreamFileDescriptorSupplier() {} - } - - private static final class DatastreamMethodDescriptorSupplier - extends DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DatastreamMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DatastreamGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .addMethod(getDiscoverConnectionProfileMethod()) - .addMethod(getListStreamsMethod()) - .addMethod(getGetStreamMethod()) - .addMethod(getCreateStreamMethod()) - .addMethod(getUpdateStreamMethod()) - .addMethod(getDeleteStreamMethod()) - .addMethod(getGetStreamObjectMethod()) - .addMethod(getLookupStreamObjectMethod()) - .addMethod(getListStreamObjectsMethod()) - .addMethod(getStartBackfillJobMethod()) - .addMethod(getStopBackfillJobMethod()) - .addMethod(getFetchStaticIpsMethod()) - .addMethod(getCreatePrivateConnectionMethod()) - .addMethod(getGetPrivateConnectionMethod()) - .addMethod(getListPrivateConnectionsMethod()) - .addMethod(getDeletePrivateConnectionMethod()) - .addMethod(getCreateRouteMethod()) - .addMethod(getGetRouteMethod()) - .addMethod(getListRoutesMethod()) - .addMethod(getDeleteRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java deleted file mode 100644 index 8dd2d0db1d55..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface AvroFileFormatOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.AvroFileFormat) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java deleted file mode 100644 index 011e5d1f3581..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface BigQueryProfileOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.BigQueryProfile) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java deleted file mode 100644 index c7374d733b3e..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ /dev/null @@ -1,742 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public final class DatastreamProto { - private DatastreamProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/datastream/v1/datastream." + - "proto\022\032google.cloud.datastream.v1\032\034googl" + - "e/api/annotations.proto\032\027google/api/clie" + - "nt.proto\032\037google/api/field_behavior.prot" + - "o\032\031google/api/resource.proto\0325google/clo" + - "ud/datastream/v1/datastream_resources.pr" + - "oto\032#google/longrunning/operations.proto" + - "\032\033google/protobuf/empty.proto\032 google/pr" + - "otobuf/field_mask.proto\032\037google/protobuf" + - "/timestamp.proto\"\375\003\n DiscoverConnectionP" + - "rofileRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+d" + - "atastream.googleapis.com/ConnectionProfi" + - "le\022L\n\022connection_profile\030\310\001 \001(\0132-.google" + - ".cloud.datastream.v1.ConnectionProfileH\000" + - "\022\"\n\027connection_profile_name\030\311\001 \001(\tH\000\022\030\n\016" + - "full_hierarchy\030\003 \001(\010H\001\022\031\n\017hierarchy_dept" + - "h\030\004 \001(\005H\001\022?\n\014oracle_rdbms\030d \001(\0132\'.google" + - ".cloud.datastream.v1.OracleRdbmsH\002\022=\n\013my" + - "sql_rdbms\030e \001(\0132&.google.cloud.datastrea" + - "m.v1.MysqlRdbmsH\002\022G\n\020postgresql_rdbms\030f " + - "\001(\0132+.google.cloud.datastream.v1.Postgre" + - "sqlRdbmsH\002B\010\n\006targetB\013\n\thierarchyB\r\n\013dat" + - "a_object\"\373\001\n!DiscoverConnectionProfileRe" + - "sponse\022?\n\014oracle_rdbms\030d \001(\0132\'.google.cl" + - "oud.datastream.v1.OracleRdbmsH\000\022=\n\013mysql" + - "_rdbms\030e \001(\0132&.google.cloud.datastream.v" + - "1.MysqlRdbmsH\000\022G\n\020postgresql_rdbms\030f \001(\013" + - "2+.google.cloud.datastream.v1.Postgresql" + - "RdbmsH\000B\r\n\013data_object\"w\n\025FetchStaticIps" + - "Request\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!locations" + - ".googleapis.com/Location\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\"E\n\026FetchStaticIp" + - "sResponse\022\022\n\nstatic_ips\030\001 \003(\t\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\"\255\001\n\035ListConnectionProfile" + - "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datast" + - "ream.googleapis.com/ConnectionProfile\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006" + - "filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListC" + - "onnectionProfilesResponse\022J\n\023connection_" + - "profiles\030\001 \003(\0132-.google.cloud.datastream" + - ".v1.ConnectionProfile\022\027\n\017next_page_token" + - "\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"`\n\033GetConnec" + - "tionProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" + - "\n+datastream.googleapis.com/ConnectionPr" + - "ofile\"\242\002\n\036CreateConnectionProfileRequest" + - "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.goo" + - "gleapis.com/ConnectionProfile\022\"\n\025connect" + - "ion_profile_id\030\002 \001(\tB\003\340A\002\022N\n\022connection_" + - "profile\030\003 \001(\0132-.google.cloud.datastream." + - "v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_id\030" + - "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022" + - "\n\005force\030\006 \001(\010B\003\340A\001\"\357\001\n\036UpdateConnectionP" + - "rofileRequest\0224\n\013update_mask\030\001 \001(\0132\032.goo" + - "gle.protobuf.FieldMaskB\003\340A\001\022N\n\022connectio" + - "n_profile\030\002 \001(\0132-.google.cloud.datastrea" + - "m.v1.ConnectionProfileB\003\340A\002\022\027\n\nrequest_i" + - "d\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + - "\022\022\n\005force\030\005 \001(\010B\003\340A\001\"|\n\036DeleteConnection" + - "ProfileRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+da" + - "tastream.googleapis.com/ConnectionProfil" + - "e\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStrea" + - "msRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datas" + - "tream.googleapis.com/Stream\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + - "(\t\022\020\n\010order_by\030\005 \001(\t\"x\n\023ListStreamsRespo" + - "nse\0223\n\007streams\030\001 \003(\0132\".google.cloud.data" + - "stream.v1.Stream\022\027\n\017next_page_token\030\002 \001(" + - "\t\022\023\n\013unreachable\030\003 \003(\t\"J\n\020GetStreamReque" + - "st\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream.goo" + - "gleapis.com/Stream\"\351\001\n\023CreateStreamReque" + - "st\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.g" + - "oogleapis.com/Stream\022\026\n\tstream_id\030\002 \001(\tB" + - "\003\340A\002\0227\n\006stream\030\003 \001(\0132\".google.cloud.data" + - "stream.v1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(" + - "\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005fo" + - "rce\030\006 \001(\010B\003\340A\001\"\315\001\n\023UpdateStreamRequest\0224" + - "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\001\0227\n\006stream\030\002 \001(\0132\".google.cl" + - "oud.datastream.v1.StreamB\003\340A\002\022\027\n\nrequest" + - "_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340" + - "A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamRe" + - "quest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream." + - "googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001(" + - "\tB\003\340A\001\"V\n\026GetStreamObjectRequest\022<\n\004name" + - "\030\001 \001(\tB.\340A\002\372A(\n&datastream.googleapis.co" + - "m/StreamObject\"\260\001\n\031LookupStreamObjectReq" + - "uest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\n datastream" + - ".googleapis.com/Stream\022Y\n\030source_object_" + - "identifier\030\002 \001(\01322.google.cloud.datastre" + - "am.v1.SourceObjectIdentifierB\003\340A\002\"Y\n\027Sta" + - "rtBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340A" + - "\002\372A(\n&datastream.googleapis.com/StreamOb" + - "ject\"T\n\030StartBackfillJobResponse\0228\n\006obje" + - "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + - "reamObject\"X\n\026StopBackfillJobRequest\022>\n\006" + - "object\030\001 \001(\tB.\340A\002\372A(\n&datastream.googlea" + - "pis.com/StreamObject\"S\n\027StopBackfillJobR" + - "esponse\0228\n\006object\030\001 \001(\0132(.google.cloud.d" + - "atastream.v1.StreamObject\"\201\001\n\030ListStream" + - "ObjectsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&" + - "datastream.googleapis.com/StreamObject\022\021" + - "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"v\n" + - "\031ListStreamObjectsResponse\022@\n\016stream_obj" + - "ects\030\001 \003(\0132(.google.cloud.datastream.v1." + - "StreamObject\022\027\n\017next_page_token\030\002 \001(\t\"\316\002" + - "\n\021OperationMetadata\0224\n\013create_time\030\001 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB" + - "\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003\340A\003\022#\n\026req" + - "uested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_ve" + - "rsion\030\007 \001(\tB\003\340A\003\022L\n\021validation_result\030\010 " + - "\001(\0132,.google.cloud.datastream.v1.Validat" + - "ionResultB\003\340A\003\"\206\002\n\036CreatePrivateConnecti" + - "onRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datas" + - "tream.googleapis.com/PrivateConnection\022\"" + - "\n\025private_connection_id\030\002 \001(\tB\003\340A\002\022N\n\022pr" + - "ivate_connection\030\003 \001(\0132-.google.cloud.da" + - "tastream.v1.PrivateConnectionB\003\340A\002\022\027\n\nre" + - "quest_id\030\004 \001(\tB\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + - "\255\001\n\035ListPrivateConnectionsRequest\022C\n\006par" + - "ent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis" + - ".com/PrivateConnection\022\021\n\tpage_size\030\002 \001(" + - "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" + - "\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConnectio" + - "nsResponse\022J\n\023private_connections\030\001 \003(\0132" + - "-.google.cloud.datastream.v1.PrivateConn" + - "ection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"\220\001\n\036DeletePrivateConnection" + - "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastrea" + - "m.googleapis.com/PrivateConnection\022\027\n\nre" + - "quest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001(\010B\003\340A\001\"" + - "`\n\033GetPrivateConnectionRequest\022A\n\004name\030\001" + - " \001(\tB3\340A\002\372A-\n+datastream.googleapis.com/" + - "PrivateConnection\"\264\001\n\022CreateRouteRequest" + - "\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.goo" + - "gleapis.com/Route\022\025\n\010route_id\030\002 \001(\tB\003\340A\002" + - "\0225\n\005route\030\003 \001(\0132!.google.cloud.datastrea" + - "m.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001" + - "\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 \001(\tB\'" + - "\340A\002\372A!\022\037datastream.googleapis.com/Route\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016" + - "\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n\022List" + - "RoutesResponse\0221\n\006routes\030\001 \003(\0132!.google." + - "cloud.datastream.v1.Route\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022Delet" + - "eRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037dat" + - "astream.googleapis.com/Route\022\027\n\nrequest_" + - "id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n\004name" + - "\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.co" + - "m/Route2\375*\n\nDatastream\022\330\001\n\026ListConnectio" + - "nProfiles\0229.google.cloud.datastream.v1.L" + - "istConnectionProfilesRequest\032:.google.cl" + - "oud.datastream.v1.ListConnectionProfiles" + - "Response\"G\202\323\344\223\0028\0226/v1/{parent=projects/*" + - "/locations/*}/connectionProfiles\332A\006paren" + - "t\022\305\001\n\024GetConnectionProfile\0227.google.clou" + - "d.datastream.v1.GetConnectionProfileRequ" + - "est\032-.google.cloud.datastream.v1.Connect" + - "ionProfile\"E\202\323\344\223\0028\0226/v1/{name=projects/*" + - "/locations/*/connectionProfiles/*}\332A\004nam" + - "e\022\244\002\n\027CreateConnectionProfile\022:.google.c" + - "loud.datastream.v1.CreateConnectionProfi" + - "leRequest\032\035.google.longrunning.Operation" + - "\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/locati" + - "ons/*}/connectionProfiles:\022connection_pr" + - "ofile\332A/parent,connection_profile,connec" + - "tion_profile_id\312A&\n\021ConnectionProfile\022\021O" + - "perationMetadata\022\246\002\n\027UpdateConnectionPro" + - "file\022:.google.cloud.datastream.v1.Update" + - "ConnectionProfileRequest\032\035.google.longru" + - "nning.Operation\"\257\001\202\323\344\223\002_2I/v1/{connectio" + - "n_profile.name=projects/*/locations/*/co" + - "nnectionProfiles/*}:\022connection_profile\332" + - "A\036connection_profile,update_mask\312A&\n\021Con" + - "nectionProfile\022\021OperationMetadata\022\350\001\n\027De" + - "leteConnectionProfile\022:.google.cloud.dat" + - "astream.v1.DeleteConnectionProfileReques" + - "t\032\035.google.longrunning.Operation\"r\202\323\344\223\0028" + - "*6/v1/{name=projects/*/locations/*/conne" + - "ctionProfiles/*}\332A\004name\312A*\n\025google.proto" + - "buf.Empty\022\021OperationMetadata\022\344\001\n\031Discove" + - "rConnectionProfile\022<.google.cloud.datast" + - "ream.v1.DiscoverConnectionProfileRequest" + - "\032=.google.cloud.datastream.v1.DiscoverCo" + - "nnectionProfileResponse\"J\202\323\344\223\002D\"?/v1/{pa" + - "rent=projects/*/locations/*}/connectionP" + - "rofiles:discover:\001*\022\254\001\n\013ListStreams\022..go" + - "ogle.cloud.datastream.v1.ListStreamsRequ" + - "est\032/.google.cloud.datastream.v1.ListStr" + - "eamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=projec" + - "ts/*/locations/*}/streams\332A\006parent\022\231\001\n\tG" + - "etStream\022,.google.cloud.datastream.v1.Ge" + - "tStreamRequest\032\".google.cloud.datastream" + - ".v1.Stream\":\202\323\344\223\002-\022+/v1/{name=projects/*" + - "/locations/*/streams/*}\332A\004name\022\323\001\n\014Creat" + - "eStream\022/.google.cloud.datastream.v1.Cre" + - "ateStreamRequest\032\035.google.longrunning.Op" + - "eration\"s\202\323\344\223\0025\"+/v1/{parent=projects/*/" + - "locations/*}/streams:\006stream\332A\027parent,st" + - "ream,stream_id\312A\033\n\006Stream\022\021OperationMeta" + - "data\022\325\001\n\014UpdateStream\022/.google.cloud.dat" + - "astream.v1.UpdateStreamRequest\032\035.google." + - "longrunning.Operation\"u\202\323\344\223\002<22/v1/{stre" + - "am.name=projects/*/locations/*/streams/*" + - "}:\006stream\332A\022stream,update_mask\312A\033\n\006Strea" + - "m\022\021OperationMetadata\022\307\001\n\014DeleteStream\022/." + - "google.cloud.datastream.v1.DeleteStreamR" + - "equest\032\035.google.longrunning.Operation\"g\202" + - "\323\344\223\002-*+/v1/{name=projects/*/locations/*/" + - "streams/*}\332A\004name\312A*\n\025google.protobuf.Em" + - "pty\022\021OperationMetadata\022\265\001\n\017GetStreamObje" + - "ct\0222.google.cloud.datastream.v1.GetStrea" + - "mObjectRequest\032(.google.cloud.datastream" + - ".v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name=proj" + - "ects/*/locations/*/streams/*/objects/*}\332" + - "A\004name\022\276\001\n\022LookupStreamObject\0225.google.c" + - "loud.datastream.v1.LookupStreamObjectReq" + - "uest\032(.google.cloud.datastream.v1.Stream" + - "Object\"G\202\323\344\223\002A\"cloud.google.com/go/datastream/ap" + - "iv1/datastreampb;datastreampb\252\002\032Google.C" + - "loud.Datastream.V1\312\002\032Google\\Cloud\\Datast" + - "ream\\V1\352\002\035Google::Cloud::Datastream::V1b" + - "\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionProfile", "ConnectionProfileName", "FullHierarchy", "HierarchyDepth", "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "Target", "Hierarchy", "DataObject", }); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor, - new java.lang.String[] { "OracleRdbms", "MysqlRdbms", "PostgresqlRdbms", "DataObject", }); - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor, - new java.lang.String[] { "StaticIps", "NextPageToken", }); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor, - new java.lang.String[] { "ConnectionProfiles", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor, - new java.lang.String[] { "Parent", "ConnectionProfileId", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", }); - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor, - new java.lang.String[] { "UpdateMask", "ConnectionProfile", "RequestId", "ValidateOnly", "Force", }); - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1_ListStreamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1_ListStreamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor, - new java.lang.String[] { "Streams", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1_GetStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1_CreateStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor, - new java.lang.String[] { "Parent", "StreamId", "Stream", "RequestId", "ValidateOnly", "Force", }); - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Stream", "RequestId", "ValidateOnly", "Force", }); - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor, - new java.lang.String[] { "Parent", "SourceObjectIdentifier", }); - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor, - new java.lang.String[] { "Object", }); - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor, - new java.lang.String[] { "Object", }); - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor, - new java.lang.String[] { "Object", }); - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor, - new java.lang.String[] { "Object", }); - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor, - new java.lang.String[] { "StreamObjects", "NextPageToken", }); - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", "ValidationResult", }); - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor, - new java.lang.String[] { "Parent", "PrivateConnectionId", "PrivateConnection", "RequestId", "Force", }); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor, - new java.lang.String[] { "PrivateConnections", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "Force", }); - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1_CreateRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor, - new java.lang.String[] { "Parent", "RouteId", "Route", "RequestId", }); - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1_ListRoutesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datastream_v1_ListRoutesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor, - new java.lang.String[] { "Routes", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", }); - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datastream_v1_GetRouteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datastream.v1.DatastreamResourcesProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java deleted file mode 100644 index cb4beaeb3621..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java +++ /dev/null @@ -1,1004 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public final class DatastreamResourcesProto { - private DatastreamResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Route_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_StreamObject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Error_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_Validation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/datastream/v1/datastream_" + - "resources.proto\022\032google.cloud.datastream" + - ".v1\032\037google/api/field_behavior.proto\032\031go" + - "ogle/api/resource.proto\032\036google/protobuf" + - "/duration.proto\032\037google/protobuf/timesta" + - "mp.proto\"\242\002\n\rOracleProfile\022\025\n\010hostname\030\001" + - " \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(" + - "\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020databas" + - "e_service\030\005 \001(\tB\003\340A\002\022b\n\025connection_attri" + - "butes\030\006 \003(\0132C.google.cloud.datastream.v1" + - ".OracleProfile.ConnectionAttributesEntry" + - "\032;\n\031ConnectionAttributesEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\244\001\n\014MysqlProfile\022\025" + - "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + - "sername\030\003 \001(\tB\003\340A\002\022\030\n\010password\030\004 \001(\tB\006\340A" + - "\002\340A\004\022>\n\nssl_config\030\005 \001(\0132*.google.cloud." + - "datastream.v1.MysqlSslConfig\"}\n\021Postgres" + - "qlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port" + - "\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\025\n\010passwor" + - "d\030\004 \001(\tB\003\340A\002\022\025\n\010database\030\005 \001(\tB\003\340A\002\"4\n\nG" + - "csProfile\022\023\n\006bucket\030\001 \001(\tB\003\340A\002\022\021\n\troot_p" + - "ath\030\002 \001(\t\"\021\n\017BigQueryProfile\"\035\n\033StaticSe" + - "rviceIpConnectivity\"\250\001\n\034ForwardSshTunnel" + - "Connectivity\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010u" + - "sername\030\002 \001(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010pass" + - "word\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003" + - "\340A\004H\000B\027\n\025authentication_method\"]\n\020VpcPee" + - "ringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037compute" + - ".googleapis.com/Networks\022\023\n\006subnet\030\002 \001(\t" + - "B\003\340A\002\"\340\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006la" + - "bels\030\004 \003(\01329.google.cloud.datastream.v1." + - "PrivateConnection.LabelsEntry\022\031\n\014display" + - "_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.google" + - ".cloud.datastream.v1.PrivateConnection.S" + - "tateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cloud." + - "datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peering_" + - "config\030d \001(\0132,.google.cloud.datastream.v" + - "1.VpcPeeringConfig\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"i\n\005State\022\025\n\021ST" + - "ATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007CREAT" + - "ED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FAILED" + - "_TO_DELETE\020\005:\201\001\352A~\n+datastream.googleapi" + - "s.com/PrivateConnection\022Oprojects/{proje" + - "ct}/locations/{location}/privateConnecti" + - "ons/{private_connection}\"f\n\023PrivateConne" + - "ctivity\022O\n\022private_connection\030\001 \001(\tB3\340A\002" + - "\372A-\n+datastream.googleapis.com/PrivateCo" + - "nnection\"\323\003\n\005Route\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n" + - "\013create_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\022=\n\006labels\030\004 \003(" + - "\0132-.google.cloud.datastream.v1.Route.Lab" + - "elsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023d" + - "estination_address\030\006 \001(\tB\003\340A\002\022\030\n\020destina" + - "tion_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastrea" + - "m.googleapis.com/Route\022^projects/{projec" + - "t}/locations/{location}/privateConnectio" + - "ns/{private_connection}/routes/{route}\"\312" + - "\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(\tB\003\340" + - "A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022clien" + - "t_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_certi" + - "ficate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030" + - "\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001(\010B\003" + - "\340A\003\"\270\010\n\021ConnectionProfile\022\021\n\004name\030\001 \001(\tB" + - "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\022I\n\006labe" + - "ls\030\004 \003(\01329.google.cloud.datastream.v1.Co" + - "nnectionProfile.LabelsEntry\022\031\n\014display_n" + - "ame\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001(\0132)" + - ".google.cloud.datastream.v1.OracleProfil" + - "eH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cloud." + - "datastream.v1.GcsProfileH\000\022A\n\rmysql_prof" + - "ile\030f \001(\0132(.google.cloud.datastream.v1.M" + - "ysqlProfileH\000\022G\n\020bigquery_profile\030g \001(\0132" + - "+.google.cloud.datastream.v1.BigQueryPro" + - "fileH\000\022K\n\022postgresql_profile\030h \001(\0132-.goo" + - "gle.cloud.datastream.v1.PostgresqlProfil" + - "eH\000\022b\n\036static_service_ip_connectivity\030\310\001" + - " \001(\01327.google.cloud.datastream.v1.Static" + - "ServiceIpConnectivityH\001\022]\n\030forward_ssh_c" + - "onnectivity\030\311\001 \001(\01328.google.cloud.datast" + - "ream.v1.ForwardSshTunnelConnectivityH\001\022P" + - "\n\024private_connectivity\030\312\001 \001(\0132/.google.c" + - "loud.datastream.v1.PrivateConnectivityH\001" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001:\201\001\352A~\n+datastream.googleapis.com" + - "/ConnectionProfile\022Oprojects/{project}/l" + - "ocations/{location}/connectionProfiles/{" + - "connection_profile}B\t\n\007profileB\016\n\014connec" + - "tivity\"\266\001\n\014OracleColumn\022\016\n\006column\030\001 \001(\t\022" + - "\021\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpr" + - "ecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding" + - "\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030" + - "\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"^\n\013Oracl" + - "eTable\022\r\n\005table\030\001 \001(\t\022@\n\016oracle_columns\030" + - "\002 \003(\0132(.google.cloud.datastream.v1.Oracl" + - "eColumn\"^\n\014OracleSchema\022\016\n\006schema\030\001 \001(\t\022" + - ">\n\roracle_tables\030\002 \003(\0132\'.google.cloud.da" + - "tastream.v1.OracleTable\"O\n\013OracleRdbms\022@" + - "\n\016oracle_schemas\030\001 \003(\0132(.google.cloud.da" + - "tastream.v1.OracleSchema\"\347\003\n\022OracleSourc" + - "eConfig\022@\n\017include_objects\030\001 \001(\0132\'.googl" + - "e.cloud.datastream.v1.OracleRdbms\022@\n\017exc" + - "lude_objects\030\002 \001(\0132\'.google.cloud.datast" + - "ream.v1.OracleRdbms\022 \n\030max_concurrent_cd" + - "c_tasks\030\003 \001(\005\022%\n\035max_concurrent_backfill" + - "_tasks\030\004 \001(\005\022]\n\022drop_large_objects\030d \001(\013" + - "2?.google.cloud.datastream.v1.OracleSour" + - "ceConfig.DropLargeObjectsH\000\022a\n\024stream_la" + - "rge_objects\030f \001(\0132A.google.cloud.datastr" + - "eam.v1.OracleSourceConfig.StreamLargeObj" + - "ectsH\000\032\022\n\020DropLargeObjects\032\024\n\022StreamLarg" + - "eObjectsB\030\n\026large_objects_handling\"\250\001\n\020P" + - "ostgresqlColumn\022\016\n\006column\030\001 \001(\t\022\021\n\tdata_" + - "type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tprecision\030" + - "\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\023\n\013primary_key\030\007 \001(" + - "\010\022\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030" + - "\t \001(\005\"j\n\017PostgresqlTable\022\r\n\005table\030\001 \001(\t\022" + - "H\n\022postgresql_columns\030\002 \003(\0132,.google.clo" + - "ud.datastream.v1.PostgresqlColumn\"j\n\020Pos" + - "tgresqlSchema\022\016\n\006schema\030\001 \001(\t\022F\n\021postgre" + - "sql_tables\030\002 \003(\0132+.google.cloud.datastre" + - "am.v1.PostgresqlTable\"[\n\017PostgresqlRdbms" + - "\022H\n\022postgresql_schemas\030\001 \003(\0132,.google.cl" + - "oud.datastream.v1.PostgresqlSchema\"\207\002\n\026P" + - "ostgresqlSourceConfig\022D\n\017include_objects" + - "\030\001 \001(\0132+.google.cloud.datastream.v1.Post" + - "gresqlRdbms\022D\n\017exclude_objects\030\002 \001(\0132+.g" + - "oogle.cloud.datastream.v1.PostgresqlRdbm" + - "s\022 \n\020replication_slot\030\003 \001(\tB\006\340A\002\340A\005\022\030\n\013p" + - "ublication\030\004 \001(\tB\003\340A\002\022%\n\035max_concurrent_" + - "backfill_tasks\030\005 \001(\005\"\224\001\n\013MysqlColumn\022\016\n\006" + - "column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006lengt" + - "h\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013primary_ke" + - "y\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordinal_pos" + - "ition\030\007 \001(\005\"[\n\nMysqlTable\022\r\n\005table\030\001 \001(\t" + - "\022>\n\rmysql_columns\030\002 \003(\0132\'.google.cloud.d" + - "atastream.v1.MysqlColumn\"_\n\rMysqlDatabas" + - "e\022\020\n\010database\030\001 \001(\t\022<\n\014mysql_tables\030\002 \003(" + - "\0132&.google.cloud.datastream.v1.MysqlTabl" + - "e\"P\n\nMysqlRdbms\022B\n\017mysql_databases\030\001 \003(\013" + - "2).google.cloud.datastream.v1.MysqlDatab" + - "ase\"\336\001\n\021MysqlSourceConfig\022?\n\017include_obj" + - "ects\030\001 \001(\0132&.google.cloud.datastream.v1." + - "MysqlRdbms\022?\n\017exclude_objects\030\002 \001(\0132&.go" + - "ogle.cloud.datastream.v1.MysqlRdbms\022 \n\030m" + - "ax_concurrent_cdc_tasks\030\003 \001(\005\022%\n\035max_con" + - "current_backfill_tasks\030\004 \001(\005\"\364\002\n\014SourceC" + - "onfig\022V\n\031source_connection_profile\030\001 \001(\t" + - "B3\340A\002\372A-\n+datastream.googleapis.com/Conn" + - "ectionProfile\022N\n\024oracle_source_config\030d " + - "\001(\0132..google.cloud.datastream.v1.OracleS" + - "ourceConfigH\000\022L\n\023mysql_source_config\030e \001" + - "(\0132-.google.cloud.datastream.v1.MysqlSou" + - "rceConfigH\000\022V\n\030postgresql_source_config\030" + - "f \001(\01322.google.cloud.datastream.v1.Postg" + - "resqlSourceConfigH\000B\026\n\024source_stream_con" + - "fig\"\020\n\016AvroFileFormat\"\357\002\n\016JsonFileFormat" + - "\022W\n\022schema_file_format\030\001 \001(\0162;.google.cl" + - "oud.datastream.v1.JsonFileFormat.SchemaF" + - "ileFormat\022O\n\013compression\030\002 \001(\0162:.google." + - "cloud.datastream.v1.JsonFileFormat.JsonC" + - "ompression\"`\n\020SchemaFileFormat\022\"\n\036SCHEMA" + - "_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_" + - "FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002\"Q\n\017JsonComp" + - "ression\022 \n\034JSON_COMPRESSION_UNSPECIFIED\020" + - "\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZIP\020\002\"\230\002\n\024GcsD" + - "estinationConfig\022\014\n\004path\030\001 \001(\t\022\030\n\020file_r" + - "otation_mb\030\002 \001(\005\0229\n\026file_rotation_interv" + - "al\030\003 \001(\0132\031.google.protobuf.Duration\022F\n\020a" + - "vro_file_format\030d \001(\0132*.google.cloud.dat" + - "astream.v1.AvroFileFormatH\000\022F\n\020json_file" + - "_format\030e \001(\0132*.google.cloud.datastream." + - "v1.JsonFileFormatH\000B\r\n\013file_format\"\336\004\n\031B" + - "igQueryDestinationConfig\022k\n\025single_targe" + - "t_dataset\030\311\001 \001(\0132I.google.cloud.datastre" + - "am.v1.BigQueryDestinationConfig.SingleTa" + - "rgetDatasetH\000\022s\n\031source_hierarchy_datase" + - "ts\030\312\001 \001(\0132M.google.cloud.datastream.v1.B" + - "igQueryDestinationConfig.SourceHierarchy" + - "DatasetsH\000\0222\n\016data_freshness\030\254\002 \001(\0132\031.go" + - "ogle.protobuf.Duration\032)\n\023SingleTargetDa" + - "taset\022\022\n\ndataset_id\030\001 \001(\t\032\355\001\n\027SourceHier" + - "archyDatasets\022w\n\020dataset_template\030\002 \001(\0132" + - "].google.cloud.datastream.v1.BigQueryDes" + - "tinationConfig.SourceHierarchyDatasets.D" + - "atasetTemplate\032Y\n\017DatasetTemplate\022\025\n\010loc" + - "ation\030\001 \001(\tB\003\340A\002\022\031\n\021dataset_id_prefix\030\002 " + - "\001(\t\022\024\n\014kms_key_name\030\003 \001(\tB\020\n\016dataset_con" + - "fig\"\277\002\n\021DestinationConfig\022[\n\036destination" + - "_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+datas" + - "tream.googleapis.com/ConnectionProfile\022R" + - "\n\026gcs_destination_config\030d \001(\01320.google." + - "cloud.datastream.v1.GcsDestinationConfig" + - "H\000\022\\\n\033bigquery_destination_config\030e \001(\0132" + - "5.google.cloud.datastream.v1.BigQueryDes" + - "tinationConfigH\000B\033\n\031destination_stream_c" + - "onfig\"\321\n\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013c" + - "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132" + - "..google.cloud.datastream.v1.Stream.Labe" + - "lsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022D\n\rso" + - "urce_config\030\006 \001(\0132(.google.cloud.datastr" + - "eam.v1.SourceConfigB\003\340A\002\022N\n\022destination_" + - "config\030\007 \001(\0132-.google.cloud.datastream.v" + - "1.DestinationConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162" + - "(.google.cloud.datastream.v1.Stream.Stat" + - "e\022N\n\014backfill_all\030e \001(\01326.google.cloud.d" + - "atastream.v1.Stream.BackfillAllStrategyH" + - "\000\022P\n\rbackfill_none\030f \001(\01327.google.cloud." + - "datastream.v1.Stream.BackfillNoneStrateg" + - "yH\000\0226\n\006errors\030\t \003(\0132!.google.cloud.datas" + - "tream.v1.ErrorB\003\340A\003\0221\n\037customer_managed_" + - "encryption_key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\223\002\n\023Backf" + - "illAllStrategy\022J\n\027oracle_excluded_object" + - "s\030\001 \001(\0132\'.google.cloud.datastream.v1.Ora" + - "cleRdbmsH\000\022H\n\026mysql_excluded_objects\030\002 \001" + - "(\0132&.google.cloud.datastream.v1.MysqlRdb" + - "msH\000\022R\n\033postgresql_excluded_objects\030\003 \001(" + - "\0132+.google.cloud.datastream.v1.Postgresq" + - "lRdbmsH\000B\022\n\020excluded_objects\032\026\n\024Backfill" + - "NoneStrategy\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"\231\001\n\005State\022\025\n\021STATE_U" + - "NSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007RUNNING" + - "\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILE" + - "D\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020" + - "\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.googlea" + - "pis.com/Stream\0228projects/{project}/locat" + - "ions/{location}/streams/{stream}B\023\n\021back" + - "fill_strategyB\"\n _customer_managed_encry" + - "ption_key\"\342\003\n\014StreamObject\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\013" + - "2\032.google.protobuf.TimestampB\003\340A\003\022\031\n\014dis" + - "play_name\030\005 \001(\tB\003\340A\002\0226\n\006errors\030\006 \003(\0132!.g" + - "oogle.cloud.datastream.v1.ErrorB\003\340A\003\022=\n\014" + - "backfill_job\030\007 \001(\0132\'.google.cloud.datast" + - "ream.v1.BackfillJob\022I\n\rsource_object\030\010 \001" + - "(\01322.google.cloud.datastream.v1.SourceOb" + - "jectIdentifier:v\352As\n&datastream.googleap" + - "is.com/StreamObject\022Iprojects/{project}/" + - "locations/{location}/streams/{stream}/ob" + - "jects/{object}\"\271\004\n\026SourceObjectIdentifie" + - "r\022f\n\021oracle_identifier\030\001 \001(\0132I.google.cl" + - "oud.datastream.v1.SourceObjectIdentifier" + - ".OracleObjectIdentifierH\000\022d\n\020mysql_ident" + - "ifier\030\002 \001(\0132H.google.cloud.datastream.v1" + - ".SourceObjectIdentifier.MysqlObjectIdent" + - "ifierH\000\022n\n\025postgresql_identifier\030\003 \001(\0132M" + - ".google.cloud.datastream.v1.SourceObject" + - "Identifier.PostgresqlObjectIdentifierH\000\032" + - "A\n\026OracleObjectIdentifier\022\023\n\006schema\030\001 \001(" + - "\tB\003\340A\002\022\022\n\005table\030\002 \001(\tB\003\340A\002\032E\n\032Postgresql" + - "ObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022\022\n" + - "\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdentifi" + - "er\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001(\t" + - "B\003\340A\002B\023\n\021source_identifier\"\372\003\n\013BackfillJ" + - "ob\022<\n\005state\030\001 \001(\0162-.google.cloud.datastr" + - "eam.v1.BackfillJob.State\022@\n\007trigger\030\002 \001(" + - "\0162/.google.cloud.datastream.v1.BackfillJ" + - "ob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0226\n\rlast_end" + - "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.data" + - "stream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STATE_" + - "UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PENDIN" + - "G\020\002\022\n\n\006ACTIVE\020\003\022\013\n\007STOPPED\020\004\022\n\n\006FAILED\020\005" + - "\022\r\n\tCOMPLETED\020\006\022\017\n\013UNSUPPORTED\020\007\"=\n\007Trig" + - "ger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMATI" + - "C\020\001\022\n\n\006MANUAL\020\002\"\335\001\n\005Error\022\016\n\006reason\030\001 \001(" + - "\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022." + - "\n\nerror_time\030\004 \001(\0132\032.google.protobuf.Tim" + - "estamp\022?\n\007details\030\005 \003(\0132..google.cloud.d" + - "atastream.v1.Error.DetailsEntry\032.\n\014Detai" + - "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "O\n\020ValidationResult\022;\n\013validations\030\001 \003(\013" + - "2&.google.cloud.datastream.v1.Validation" + - "\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;\n\005" + - "state\030\002 \001(\0162,.google.cloud.datastream.v1" + - ".Validation.State\022>\n\007message\030\003 \003(\0132-.goo" + - "gle.cloud.datastream.v1.ValidationMessag" + - "e\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSPEC" + - "IFIED\020\000\022\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n" + - "\006PASSED\020\003\"\256\002\n\021ValidationMessage\022\017\n\007messa" + - "ge\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud.d" + - "atastream.v1.ValidationMessage.Level\022M\n\010" + - "metadata\030\003 \003(\0132;.google.cloud.datastream" + - ".v1.ValidationMessage.MetadataEntry\022\014\n\004c" + - "ode\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNS" + - "PECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\250\002\n\036c" + - "om.google.cloud.datastream.v1B\030Datastrea" + - "mResourcesProtoP\001Z>cloud.google.com/go/d" + - "atastream/apiv1/datastreampb;datastreamp" + - "b\252\002\032Google.Cloud.Datastream.V1\312\002\032Google\\" + - "Cloud\\Datastream\\V1\352\002\035Google::Cloud::Dat" + - "astream::V1\352AO\n\037compute.googleapis.com/N" + - "etworks\022,projects/{project}/global/netwo" + - "rks/{network}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1_OracleProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor, - new java.lang.String[] { "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", }); - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor = - internal_static_google_cloud_datastream_v1_OracleProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleProfile_ConnectionAttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1_MysqlProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor, - new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1_PostgresqlProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlProfile_descriptor, - new java.lang.String[] { "Hostname", "Port", "Username", "Password", "Database", }); - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1_GcsProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GcsProfile_descriptor, - new java.lang.String[] { "Bucket", "RootPath", }); - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1_BigQueryProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryProfile_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor, - new java.lang.String[] { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor, - new java.lang.String[] { "Vpc", "Subnet", }); - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1_PrivateConnection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Error", "VpcPeeringConfig", }); - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnection_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1_PrivateConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor, - new java.lang.String[] { "PrivateConnection", }); - internal_static_google_cloud_datastream_v1_Route_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1_Route_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Route_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "DestinationAddress", "DestinationPort", }); - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Route_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Route_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1_MysqlSslConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor, - new java.lang.String[] { "ClientKey", "ClientKeySet", "ClientCertificate", "ClientCertificateSet", "CaCertificate", "CaCertificateSet", }); - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1_ConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "OracleProfile", "GcsProfile", "MysqlProfile", "BigqueryProfile", "PostgresqlProfile", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", "Profile", "Connectivity", }); - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1_OracleColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleColumn_descriptor, - new java.lang.String[] { "Column", "DataType", "Length", "Precision", "Scale", "Encoding", "PrimaryKey", "Nullable", "OrdinalPosition", }); - internal_static_google_cloud_datastream_v1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1_OracleTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleTable_descriptor, - new java.lang.String[] { "Table", "OracleColumns", }); - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1_OracleSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSchema_descriptor, - new java.lang.String[] { "Schema", "OracleTables", }); - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1_OracleRdbms_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor, - new java.lang.String[] { "OracleSchemas", }); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor, - new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", "MaxConcurrentBackfillTasks", "DropLargeObjects", "StreamLargeObjects", "LargeObjectsHandling", }); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor = - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_DropLargeObjects_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor = - internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_OracleSourceConfig_StreamLargeObjects_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1_PostgresqlColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlColumn_descriptor, - new java.lang.String[] { "Column", "DataType", "Length", "Precision", "Scale", "PrimaryKey", "Nullable", "OrdinalPosition", }); - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1_PostgresqlTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlTable_descriptor, - new java.lang.String[] { "Table", "PostgresqlColumns", }); - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1_PostgresqlSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlSchema_descriptor, - new java.lang.String[] { "Schema", "PostgresqlTables", }); - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlRdbms_descriptor, - new java.lang.String[] { "PostgresqlSchemas", }); - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_PostgresqlSourceConfig_descriptor, - new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "ReplicationSlot", "Publication", "MaxConcurrentBackfillTasks", }); - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1_MysqlColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor, - new java.lang.String[] { "Column", "DataType", "Length", "Collation", "PrimaryKey", "Nullable", "OrdinalPosition", }); - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1_MysqlTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlTable_descriptor, - new java.lang.String[] { "Table", "MysqlColumns", }); - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1_MysqlDatabase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor, - new java.lang.String[] { "Database", "MysqlTables", }); - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1_MysqlRdbms_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor, - new java.lang.String[] { "MysqlDatabases", }); - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor, - new java.lang.String[] { "IncludeObjects", "ExcludeObjects", "MaxConcurrentCdcTasks", "MaxConcurrentBackfillTasks", }); - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1_SourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor, - new java.lang.String[] { "SourceConnectionProfile", "OracleSourceConfig", "MysqlSourceConfig", "PostgresqlSourceConfig", "SourceStreamConfig", }); - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1_AvroFileFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1_JsonFileFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor, - new java.lang.String[] { "SchemaFileFormat", "Compression", }); - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor, - new java.lang.String[] { "Path", "FileRotationMb", "FileRotationInterval", "AvroFileFormat", "JsonFileFormat", "FileFormat", }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor, - new java.lang.String[] { "SingleTargetDataset", "SourceHierarchyDatasets", "DataFreshness", "DatasetConfig", }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SingleTargetDataset_descriptor, - new java.lang.String[] { "DatasetId", }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor, - new java.lang.String[] { "DatasetTemplate", }); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor = - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BigQueryDestinationConfig_SourceHierarchyDatasets_DatasetTemplate_descriptor, - new java.lang.String[] { "Location", "DatasetIdPrefix", "KmsKeyName", }); - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datastream_v1_DestinationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor, - new java.lang.String[] { "DestinationConnectionProfile", "GcsDestinationConfig", "BigqueryDestinationConfig", "DestinationStreamConfig", }); - internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datastream_v1_Stream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "SourceConfig", "DestinationConfig", "State", "BackfillAll", "BackfillNone", "Errors", "CustomerManagedEncryptionKey", "BackfillStrategy", "CustomerManagedEncryptionKey", }); - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor, - new java.lang.String[] { "OracleExcludedObjects", "MysqlExcludedObjects", "PostgresqlExcludedObjects", "ExcludedObjects", }); - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Stream_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Stream_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_StreamObject_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_datastream_v1_StreamObject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_StreamObject_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "DisplayName", "Errors", "BackfillJob", "SourceObject", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor, - new java.lang.String[] { "OracleIdentifier", "MysqlIdentifier", "PostgresqlIdentifier", "SourceIdentifier", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor, - new java.lang.String[] { "Schema", "Table", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_PostgresqlObjectIdentifier_descriptor, - new java.lang.String[] { "Schema", "Table", }); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor, - new java.lang.String[] { "Database", "Table", }); - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_datastream_v1_BackfillJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_BackfillJob_descriptor, - new java.lang.String[] { "State", "Trigger", "LastStartTime", "LastEndTime", "Errors", }); - internal_static_google_cloud_datastream_v1_Error_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_datastream_v1_Error_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Error_descriptor, - new java.lang.String[] { "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", }); - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor = - internal_static_google_cloud_datastream_v1_Error_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Error_DetailsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_datastream_v1_ValidationResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationResult_descriptor, - new java.lang.String[] { "Validations", }); - internal_static_google_cloud_datastream_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_datastream_v1_Validation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_Validation_descriptor, - new java.lang.String[] { "Description", "State", "Message", "Code", }); - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_datastream_v1_ValidationMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor, - new java.lang.String[] { "Message", "Level", "Metadata", "Code", }); - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor = - internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1_ValidationMessage_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java deleted file mode 100644 index cbd873558f3d..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetConnectionProfileRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetConnectionProfileRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index 277aaf462625..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetPrivateConnectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetPrivateConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java deleted file mode 100644 index ee7f97b799b4..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetRouteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java deleted file mode 100644 index 4afde35b72b9..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetStreamObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the stream object resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the stream object resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java deleted file mode 100644 index d61ac09ebc87..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface GetStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java deleted file mode 100644 index fb7a4690900b..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface LookupStreamObjectRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.LookupStreamObjectRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent stream that owns the collection of objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent stream that owns the collection of objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the sourceObjectIdentifier field is set. - */ - boolean hasSourceObjectIdentifier(); - /** - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The sourceObjectIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); - /** - *
-   * Required. The source object identifier which maps to the stream object.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index 7cf685c4d13e..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface PrivateConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. A reference to a private connection resource.
-   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
-   * 
- * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The privateConnection. - */ - java.lang.String getPrivateConnection(); - /** - *
-   * Required. A reference to a private connection resource.
-   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
-   * 
- * - * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for privateConnection. - */ - com.google.protobuf.ByteString - getPrivateConnectionBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java deleted file mode 100644 index 4c3568f72168..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface SourceObjectIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.SourceObjectIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Oracle data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * @return Whether the oracleIdentifier field is set. - */ - boolean hasOracleIdentifier(); - /** - *
-   * Oracle data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - * @return The oracleIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getOracleIdentifier(); - /** - *
-   * Oracle data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifierOrBuilder getOracleIdentifierOrBuilder(); - - /** - *
-   * Mysql data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * @return Whether the mysqlIdentifier field is set. - */ - boolean hasMysqlIdentifier(); - /** - *
-   * Mysql data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - * @return The mysqlIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier getMysqlIdentifier(); - /** - *
-   * Mysql data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifierOrBuilder getMysqlIdentifierOrBuilder(); - - /** - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * @return Whether the postgresqlIdentifier field is set. - */ - boolean hasPostgresqlIdentifier(); - /** - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - * @return The postgresqlIdentifier. - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier getPostgresqlIdentifier(); - /** - *
-   * PostgreSQL data source object identifier.
-   * 
- * - * .google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier postgresql_identifier = 3; - */ - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifierOrBuilder getPostgresqlIdentifierOrBuilder(); - - public com.google.cloud.datastream.v1.SourceObjectIdentifier.SourceIdentifierCase getSourceIdentifierCase(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java deleted file mode 100644 index 9251e7fa120d..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface StartBackfillJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StartBackfillJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the stream object resource to start a backfill job
-   * for.
-   * 
- * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The object. - */ - java.lang.String getObject(); - /** - *
-   * Required. The name of the stream object resource to start a backfill job
-   * for.
-   * 
- * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for object. - */ - com.google.protobuf.ByteString - getObjectBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index d385d5d494e5..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream_resources.proto - -package com.google.cloud.datastream.v1; - -public interface StaticServiceIpConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StaticServiceIpConnectivity) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java deleted file mode 100644 index f15cdbfb98d1..000000000000 --- a/owl-bot-staging/java-datastream/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1/datastream.proto - -package com.google.cloud.datastream.v1; - -public interface StopBackfillJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StopBackfillJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the stream object resource to stop the backfill job
-   * for.
-   * 
- * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The object. - */ - java.lang.String getObject(); - /** - *
-   * Required. The name of the stream object resource to stop the backfill job
-   * for.
-   * 
- * - * string object = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for object. - */ - com.google.protobuf.ByteString - getObjectBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java deleted file mode 100644 index 68534d72a09e..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2079 +0,0 @@ -package com.google.cloud.datastream.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Datastream service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastreamGrpc { - - private DatastreamGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datastream.v1alpha1.Datastream"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) == null) { - DatastreamGrpc.getListConnectionProfilesMethod = getListConnectionProfilesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - DatastreamGrpc.getGetConnectionProfileMethod = getGetConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) == null) { - DatastreamGrpc.getCreateConnectionProfileMethod = getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) == null) { - DatastreamGrpc.getUpdateConnectionProfileMethod = getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) == null) { - DatastreamGrpc.getDeleteConnectionProfileMethod = getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod() { - io.grpc.MethodDescriptor getDiscoverConnectionProfileMethod; - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) == null) { - DatastreamGrpc.getDiscoverConnectionProfileMethod = getDiscoverConnectionProfileMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) - .build(); - } - } - } - return getDiscoverConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor getListStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreams", - requestType = com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListStreamsMethod() { - io.grpc.MethodDescriptor getListStreamsMethod; - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - DatastreamGrpc.getListStreamsMethod = getListStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) - .build(); - } - } - } - return getListStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStream", - requestType = com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Stream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetStreamMethod() { - io.grpc.MethodDescriptor getGetStreamMethod; - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - DatastreamGrpc.getGetStreamMethod = getGetStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) - .build(); - } - } - } - return getGetStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStream", - requestType = com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateStreamMethod() { - io.grpc.MethodDescriptor getCreateStreamMethod; - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - DatastreamGrpc.getCreateStreamMethod = getCreateStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) - .build(); - } - } - } - return getCreateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateStream", - requestType = com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateStreamMethod() { - io.grpc.MethodDescriptor getUpdateStreamMethod; - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - DatastreamGrpc.getUpdateStreamMethod = getUpdateStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) - .build(); - } - } - } - return getUpdateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteStream", - requestType = com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteStreamMethod() { - io.grpc.MethodDescriptor getDeleteStreamMethod; - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - DatastreamGrpc.getDeleteStreamMethod = getDeleteStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) - .build(); - } - } - } - return getDeleteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchErrorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchErrors", - requestType = com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchErrorsMethod() { - io.grpc.MethodDescriptor getFetchErrorsMethod; - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - DatastreamGrpc.getFetchErrorsMethod = getFetchErrorsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchErrors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchErrors")) - .build(); - } - } - } - return getFetchErrorsMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchStaticIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", - requestType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchStaticIpsMethod() { - io.grpc.MethodDescriptor getFetchStaticIpsMethod; - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - DatastreamGrpc.getFetchStaticIpsMethod = getFetchStaticIpsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) - .build(); - } - } - } - return getFetchStaticIpsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePrivateConnectionMethod() { - io.grpc.MethodDescriptor getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) == null) { - DatastreamGrpc.getCreatePrivateConnectionMethod = getCreatePrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) - .build(); - } - } - } - return getCreatePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.PrivateConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPrivateConnectionMethod() { - io.grpc.MethodDescriptor getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - DatastreamGrpc.getGetPrivateConnectionMethod = getGetPrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) - .build(); - } - } - } - return getGetPrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPrivateConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", - requestType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPrivateConnectionsMethod() { - io.grpc.MethodDescriptor getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) == null) { - DatastreamGrpc.getListPrivateConnectionsMethod = getListPrivateConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) - .build(); - } - } - } - return getListPrivateConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePrivateConnectionMethod() { - io.grpc.MethodDescriptor getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) == null) { - DatastreamGrpc.getDeletePrivateConnectionMethod = getDeletePrivateConnectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) - .build(); - } - } - } - return getDeletePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoute", - requestType = com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRouteMethod() { - io.grpc.MethodDescriptor getCreateRouteMethod; - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - DatastreamGrpc.getCreateRouteMethod = getCreateRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) - .build(); - } - } - } - return getCreateRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoute", - requestType = com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Route.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRouteMethod() { - io.grpc.MethodDescriptor getGetRouteMethod; - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - DatastreamGrpc.getGetRouteMethod = getGetRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) - .build(); - } - } - } - return getGetRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoutes", - requestType = com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRoutesMethod() { - io.grpc.MethodDescriptor getListRoutesMethod; - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - DatastreamGrpc.getListRoutesMethod = getListRoutesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) - .build(); - } - } - } - return getListRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", - requestType = com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRouteMethod() { - io.grpc.MethodDescriptor getDeleteRouteMethod; - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - DatastreamGrpc.getDeleteRouteMethod = getDeleteRouteMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) - .build(); - } - } - } - return getDeleteRouteMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DatastreamStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - }; - return DatastreamStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastreamBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - }; - return DatastreamBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DatastreamFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - }; - return DatastreamFutureStub.newStub(factory, channel); - } - - /** - *
-   * Datastream service
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - default void listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - default void getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - default void createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - default void updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a connection profile..
-     * 
- */ - default void deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - default void discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDiscoverConnectionProfileMethod(), responseObserver); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - default void listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListStreamsMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - default void getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - default void createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - default void updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - default void deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteStreamMethod(), responseObserver); - } - - /** - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - default void fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchErrorsMethod(), responseObserver); - } - - /** - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - default void fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchStaticIpsMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - default void createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - default void getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - default void listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPrivateConnectionsMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - default void deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePrivateConnectionMethod(), responseObserver); - } - - /** - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - default void createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRouteMethod(), responseObserver); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - default void getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRouteMethod(), responseObserver); - } - - /** - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - default void listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRoutesMethod(), responseObserver); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - default void deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service Datastream. - *
-   * Datastream service
-   * 
- */ - public static abstract class DatastreamImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return DatastreamGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamStub - extends io.grpc.stub.AbstractAsyncStub { - private DatastreamStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public void listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public void getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public void createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public void updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public void deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public void discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public void listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public void getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public void createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public void updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public void deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public void fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public void fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public void createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public void getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public void listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public void deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public void createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public void getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public void listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public void deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DatastreamBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse listConnectionProfiles(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectionProfilesMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.longrunning.Operation createConnectionProfile(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.longrunning.Operation updateConnectionProfile(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public com.google.longrunning.Operation deleteConnectionProfile(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse discoverConnectionProfile(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDiscoverConnectionProfileMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListStreamsResponse listStreams(com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.Stream getStream(com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.longrunning.Operation createStream(com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.longrunning.Operation updateStream(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.longrunning.Operation deleteStream(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public com.google.longrunning.Operation fetchErrors(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchErrorsMethod(), getCallOptions(), request); - } - - /** - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse fetchStaticIps(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchStaticIpsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation createPrivateConnection(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection(com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse listPrivateConnections(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPrivateConnectionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.longrunning.Operation deletePrivateConnection(com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePrivateConnectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public com.google.longrunning.Operation createRoute(com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.Route getRoute(com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRouteMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public com.google.cloud.datastream.v1alpha1.ListRoutesResponse listRoutes(com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRoutesMethod(), getCallOptions(), request); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.longrunning.Operation deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRouteMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service Datastream. - *
-   * Datastream service
-   * 
- */ - public static final class DatastreamFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DatastreamFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DatastreamFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - - /** - *
-     * Use this method to list connection profiles created in a project and
-     * location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectionProfilesMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConnectionProfile( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a connection profile in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnectionProfile( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to update the parameters of a connection profile.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConnectionProfile( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a connection profile..
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnectionProfile( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to discover a connection profile.
-     * The discover API call exposes the data objects and metadata belonging to
-     * the profile. Typically, a request returns children data objects under a
-     * parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture discoverConnectionProfile( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDiscoverConnectionProfileMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list streams in a project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listStreams( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getStream( - com.google.cloud.datastream.v1alpha1.GetStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createStream( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to update the configuration of a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateStream( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteStream( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to fetch any errors associated with a stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchErrors( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchErrorsMethod(), getCallOptions()), request); - } - - /** - *
-     * The FetchStaticIps API call exposes the static ips used by Datastream.
-     * Typically, a request returns children data objects under
-     * a parent data object that's optionally supplied in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchStaticIps( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchStaticIpsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPrivateConnection( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPrivateConnection( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list private connectivity configurations in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPrivateConnections( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPrivateConnectionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a private connectivity configuration.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePrivateConnection( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePrivateConnectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to create a route for a private connectivity in a project
-     * and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRoute( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to get details about a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRoute( - com.google.cloud.datastream.v1alpha1.GetRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRouteMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to list routes created for a private connectivity in a
-     * project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRoutes( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRoutesMethod(), getCallOptions()), request); - } - - /** - *
-     * Use this method to delete a route.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRoute( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRouteMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_CONNECTION_PROFILES = 0; - private static final int METHODID_GET_CONNECTION_PROFILE = 1; - private static final int METHODID_CREATE_CONNECTION_PROFILE = 2; - private static final int METHODID_UPDATE_CONNECTION_PROFILE = 3; - private static final int METHODID_DELETE_CONNECTION_PROFILE = 4; - private static final int METHODID_DISCOVER_CONNECTION_PROFILE = 5; - private static final int METHODID_LIST_STREAMS = 6; - private static final int METHODID_GET_STREAM = 7; - private static final int METHODID_CREATE_STREAM = 8; - private static final int METHODID_UPDATE_STREAM = 9; - private static final int METHODID_DELETE_STREAM = 10; - private static final int METHODID_FETCH_ERRORS = 11; - private static final int METHODID_FETCH_STATIC_IPS = 12; - private static final int METHODID_CREATE_PRIVATE_CONNECTION = 13; - private static final int METHODID_GET_PRIVATE_CONNECTION = 14; - private static final int METHODID_LIST_PRIVATE_CONNECTIONS = 15; - private static final int METHODID_DELETE_PRIVATE_CONNECTION = 16; - private static final int METHODID_CREATE_ROUTE = 17; - private static final int METHODID_GET_ROUTE = 18; - private static final int METHODID_LIST_ROUTES = 19; - private static final int METHODID_DELETE_ROUTE = 20; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_CONNECTION_PROFILES: - serviceImpl.listConnectionProfiles((com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONNECTION_PROFILE: - serviceImpl.getConnectionProfile((com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONNECTION_PROFILE: - serviceImpl.createConnectionProfile((com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONNECTION_PROFILE: - serviceImpl.updateConnectionProfile((com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTION_PROFILE: - serviceImpl.deleteConnectionProfile((com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISCOVER_CONNECTION_PROFILE: - serviceImpl.discoverConnectionProfile((com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_STREAMS: - serviceImpl.listStreams((com.google.cloud.datastream.v1alpha1.ListStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_STREAM: - serviceImpl.getStream((com.google.cloud.datastream.v1alpha1.GetStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_STREAM: - serviceImpl.createStream((com.google.cloud.datastream.v1alpha1.CreateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_STREAM: - serviceImpl.updateStream((com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_STREAM: - serviceImpl.deleteStream((com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_ERRORS: - serviceImpl.fetchErrors((com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_STATIC_IPS: - serviceImpl.fetchStaticIps((com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PRIVATE_CONNECTION: - serviceImpl.createPrivateConnection((com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PRIVATE_CONNECTION: - serviceImpl.getPrivateConnection((com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PRIVATE_CONNECTIONS: - serviceImpl.listPrivateConnections((com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PRIVATE_CONNECTION: - serviceImpl.deletePrivateConnection((com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROUTE: - serviceImpl.createRoute((com.google.cloud.datastream.v1alpha1.CreateRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROUTE: - serviceImpl.getRoute((com.google.cloud.datastream.v1alpha1.GetRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROUTES: - serviceImpl.listRoutes((com.google.cloud.datastream.v1alpha1.ListRoutesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ROUTE: - serviceImpl.deleteRoute((com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListConnectionProfilesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse>( - service, METHODID_LIST_CONNECTION_PROFILES))) - .addMethod( - getGetConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile>( - service, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_CONNECTION_PROFILE))) - .addMethod( - getDiscoverConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse>( - service, METHODID_DISCOVER_CONNECTION_PROFILE))) - .addMethod( - getListStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse>( - service, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream>( - service, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_STREAM))) - .addMethod( - getFetchErrorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, - com.google.longrunning.Operation>( - service, METHODID_FETCH_ERRORS))) - .addMethod( - getFetchStaticIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( - service, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_PRIVATE_CONNECTION))) - .addMethod( - getGetPrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection>( - service, METHODID_GET_PRIVATE_CONNECTION))) - .addMethod( - getListPrivateConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse>( - service, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, - com.google.longrunning.Operation>( - service, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route>( - service, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( - service, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, - com.google.longrunning.Operation>( - service, METHODID_DELETE_ROUTE))) - .build(); - } - - private static abstract class DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DatastreamBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Datastream"); - } - } - - private static final class DatastreamFileDescriptorSupplier - extends DatastreamBaseDescriptorSupplier { - DatastreamFileDescriptorSupplier() {} - } - - private static final class DatastreamMethodDescriptorSupplier - extends DatastreamBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DatastreamMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (DatastreamGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DatastreamFileDescriptorSupplier()) - .addMethod(getListConnectionProfilesMethod()) - .addMethod(getGetConnectionProfileMethod()) - .addMethod(getCreateConnectionProfileMethod()) - .addMethod(getUpdateConnectionProfileMethod()) - .addMethod(getDeleteConnectionProfileMethod()) - .addMethod(getDiscoverConnectionProfileMethod()) - .addMethod(getListStreamsMethod()) - .addMethod(getGetStreamMethod()) - .addMethod(getCreateStreamMethod()) - .addMethod(getUpdateStreamMethod()) - .addMethod(getDeleteStreamMethod()) - .addMethod(getFetchErrorsMethod()) - .addMethod(getFetchStaticIpsMethod()) - .addMethod(getCreatePrivateConnectionMethod()) - .addMethod(getGetPrivateConnectionMethod()) - .addMethod(getListPrivateConnectionsMethod()) - .addMethod(getDeletePrivateConnectionMethod()) - .addMethod(getCreateRouteMethod()) - .addMethod(getGetRouteMethod()) - .addMethod(getListRoutesMethod()) - .addMethod(getDeleteRouteMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java deleted file mode 100644 index ecd8ad009d5d..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface AvroFileFormatOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java deleted file mode 100644 index a0c97ad72939..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java +++ /dev/null @@ -1,712 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamResourcesProto { - private CloudDatastreamResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/datastream/v1alpha1/datas" + - "tream_resources.proto\022 google.cloud.data" + - "stream.v1alpha1\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032\036goo" + - "gle/protobuf/duration.proto\032\037google/prot" + - "obuf/timestamp.proto\"\250\002\n\rOracleProfile\022\025" + - "\n\010hostname\030\001 \001(\tB\003\340A\002\022\014\n\004port\030\002 \001(\005\022\025\n\010u" + - "sername\030\003 \001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A" + - "\002\022\035\n\020database_service\030\005 \001(\tB\003\340A\002\022h\n\025conn" + - "ection_attributes\030\006 \003(\0132I.google.cloud.d" + - "atastream.v1alpha1.OracleProfile.Connect" + - "ionAttributesEntry\032;\n\031ConnectionAttribut" + - "esEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "\252\001\n\014MysqlProfile\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022" + - "\014\n\004port\030\002 \001(\005\022\025\n\010username\030\003 \001(\tB\003\340A\002\022\030\n\010" + - "password\030\004 \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001" + - "(\01320.google.cloud.datastream.v1alpha1.My" + - "sqlSslConfig\"9\n\nGcsProfile\022\030\n\013bucket_nam" + - "e\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoCon" + - "nectivitySettings\"\035\n\033StaticServiceIpConn" + - "ectivity\"\250\001\n\034ForwardSshTunnelConnectivit" + - "y\022\025\n\010hostname\030\001 \001(\tB\003\340A\002\022\025\n\010username\030\002 \001" + - "(\tB\003\340A\002\022\014\n\004port\030\003 \001(\005\022\027\n\010password\030d \001(\tB" + - "\003\340A\004H\000\022\032\n\013private_key\030e \001(\tB\003\340A\004H\000B\027\n\025au" + - "thentication_method\">\n\020VpcPeeringConfig\022" + - "\025\n\010vpc_name\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003" + - "\340A\002\"\324\005\n\021PrivateConnection\022\021\n\004name\030\001 \001(\tB" + - "\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\022O\n\006labe" + - "ls\030\004 \003(\0132?.google.cloud.datastream.v1alp" + - "ha1.PrivateConnection.LabelsEntry\022\031\n\014dis" + - "play_name\030\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.go" + - "ogle.cloud.datastream.v1alpha1.PrivateCo" + - "nnection.StateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.goo" + - "gle.cloud.datastream.v1alpha1.ErrorB\003\340A\003" + - "\022N\n\022vpc_peering_config\030d \001(\01322.google.cl" + - "oud.datastream.v1alpha1.VpcPeeringConfig" + - "\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"E\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022" + - "\014\n\010CREATING\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201" + - "\001\352A~\n+datastream.googleapis.com/PrivateC" + - "onnection\022Oprojects/{project}/locations/" + - "{location}/privateConnections/{private_c" + - "onnection}\";\n\023PrivateConnectivity\022$\n\027pri" + - "vate_connection_name\030\001 \001(\tB\003\340A\002\"\331\003\n\005Rout" + - "e\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + - "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\022C\n\006labels\030\004 \003(\01323.google.cloud." + - "datastream.v1alpha1.Route.LabelsEntry\022\031\n" + - "\014display_name\030\005 \001(\tB\003\340A\002\022 \n\023destination_" + - "address\030\006 \001(\tB\003\340A\002\022\030\n\020destination_port\030\007" + - " \001(\005\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datastream.googleapi" + - "s.com/Route\022^projects/{project}/location" + - "s/{location}/privateConnections/{private" + - "_connection}/routes/{route}\"\312\001\n\016MysqlSsl" + - "Config\022\027\n\nclient_key\030\013 \001(\tB\003\340A\004\022\033\n\016clien" + - "t_key_set\030\014 \001(\010B\003\340A\003\022\037\n\022client_certifica" + - "te\030\r \001(\tB\003\340A\004\022#\n\026client_certificate_set\030" + - "\016 \001(\010B\003\340A\003\022\033\n\016ca_certificate\030\017 \001(\tB\003\340A\004\022" + - "\037\n\022ca_certificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021Con" + - "nectionProfile\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + - "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?." + - "google.cloud.datastream.v1alpha1.Connect" + - "ionProfile.LabelsEntry\022\031\n\014display_name\030\005" + - " \001(\tB\003\340A\002\022I\n\016oracle_profile\030d \001(\0132/.goog" + - "le.cloud.datastream.v1alpha1.OracleProfi" + - "leH\000\022C\n\013gcs_profile\030e \001(\0132,.google.cloud" + - ".datastream.v1alpha1.GcsProfileH\000\022G\n\rmys" + - "ql_profile\030f \001(\0132..google.cloud.datastre" + - "am.v1alpha1.MysqlProfileH\000\022T\n\017no_connect" + - "ivity\030\310\001 \001(\01328.google.cloud.datastream.v" + - "1alpha1.NoConnectivitySettingsH\001\022h\n\036stat" + - "ic_service_ip_connectivity\030\311\001 \001(\0132=.goog" + - "le.cloud.datastream.v1alpha1.StaticServi" + - "ceIpConnectivityH\001\022c\n\030forward_ssh_connec" + - "tivity\030\312\001 \001(\0132>.google.cloud.datastream." + - "v1alpha1.ForwardSshTunnelConnectivityH\001\022" + - "V\n\024private_connectivity\030\313\001 \001(\01325.google." + - "cloud.datastream.v1alpha1.PrivateConnect" + - "ivityH\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001:\201\001\352A~\n+datastream.googlea" + - "pis.com/ConnectionProfile\022Oprojects/{pro" + - "ject}/locations/{location}/connectionPro" + - "files/{connection_profile}B\t\n\007profileB\016\n" + - "\014connectivity\"\273\001\n\014OracleColumn\022\023\n\013column" + - "_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006length" + - "\030\003 \001(\005\022\021\n\tprecision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005" + - "\022\020\n\010encoding\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022" + - "\020\n\010nullable\030\010 \001(\010\022\030\n\020ordinal_position\030\t " + - "\001(\005\"i\n\013OracleTable\022\022\n\ntable_name\030\001 \001(\t\022F" + - "\n\016oracle_columns\030\002 \003(\0132..google.cloud.da" + - "tastream.v1alpha1.OracleColumn\"i\n\014Oracle" + - "Schema\022\023\n\013schema_name\030\001 \001(\t\022D\n\roracle_ta" + - "bles\030\002 \003(\0132-.google.cloud.datastream.v1a" + - "lpha1.OracleTable\"U\n\013OracleRdbms\022F\n\016orac" + - "le_schemas\030\001 \003(\0132..google.cloud.datastre" + - "am.v1alpha1.OracleSchema\"\231\001\n\022OracleSourc" + - "eConfig\022@\n\tallowlist\030\001 \001(\0132-.google.clou" + - "d.datastream.v1alpha1.OracleRdbms\022A\n\nrej" + - "ectlist\030\002 \001(\0132-.google.cloud.datastream." + - "v1alpha1.OracleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013" + - "column_name\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006" + - "length\030\003 \001(\005\022\021\n\tcollation\030\004 \001(\t\022\023\n\013prima" + - "ry_key\030\005 \001(\010\022\020\n\010nullable\030\006 \001(\010\022\030\n\020ordina" + - "l_position\030\007 \001(\005\"f\n\nMysqlTable\022\022\n\ntable_" + - "name\030\001 \001(\t\022D\n\rmysql_columns\030\002 \003(\0132-.goog" + - "le.cloud.datastream.v1alpha1.MysqlColumn" + - "\"j\n\rMysqlDatabase\022\025\n\rdatabase_name\030\001 \001(\t" + - "\022B\n\014mysql_tables\030\002 \003(\0132,.google.cloud.da" + - "tastream.v1alpha1.MysqlTable\"V\n\nMysqlRdb" + - "ms\022H\n\017mysql_databases\030\001 \003(\0132/.google.clo" + - "ud.datastream.v1alpha1.MysqlDatabase\"\226\001\n" + - "\021MysqlSourceConfig\022?\n\tallowlist\030\001 \001(\0132,." + - "google.cloud.datastream.v1alpha1.MysqlRd" + - "bms\022@\n\nrejectlist\030\002 \001(\0132,.google.cloud.d" + - "atastream.v1alpha1.MysqlRdbms\"\375\001\n\014Source" + - "Config\022+\n\036source_connection_profile_name" + - "\030\001 \001(\tB\003\340A\002\022T\n\024oracle_source_config\030d \001(" + - "\01324.google.cloud.datastream.v1alpha1.Ora" + - "cleSourceConfigH\000\022R\n\023mysql_source_config" + - "\030e \001(\01323.google.cloud.datastream.v1alpha" + - "1.MysqlSourceConfigH\000B\026\n\024source_stream_c" + - "onfig\"\020\n\016AvroFileFormat\"\212\002\n\016JsonFileForm" + - "at\022N\n\022schema_file_format\030\001 \001(\01622.google." + - "cloud.datastream.v1alpha1.SchemaFileForm" + - "at\022U\n\013compression\030\002 \001(\0162@.google.cloud.d" + - "atastream.v1alpha1.JsonFileFormat.JsonCo" + - "mpression\"Q\n\017JsonCompression\022 \n\034JSON_COM" + - "PRESSION_UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION" + - "\020\001\022\010\n\004GZIP\020\002\"\362\002\n\024GcsDestinationConfig\022\014\n" + - "\004path\030\001 \001(\t\022L\n\017gcs_file_format\030\002 \001(\0162/.g" + - "oogle.cloud.datastream.v1alpha1.GcsFileF" + - "ormatB\002\030\001\022\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026f" + - "ile_rotation_interval\030\004 \001(\0132\031.google.pro" + - "tobuf.Duration\022L\n\020avro_file_format\030d \001(\013" + - "20.google.cloud.datastream.v1alpha1.Avro" + - "FileFormatH\000\022L\n\020json_file_format\030e \001(\01320" + - ".google.cloud.datastream.v1alpha1.JsonFi" + - "leFormatH\000B\r\n\013file_format\"\274\001\n\021Destinatio" + - "nConfig\0220\n#destination_connection_profil" + - "e_name\030\001 \001(\tB\003\340A\002\022X\n\026gcs_destination_con" + - "fig\030d \001(\01326.google.cloud.datastream.v1al" + - "pha1.GcsDestinationConfigH\000B\033\n\031destinati" + - "on_stream_config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.pro" + - "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\003\340A\003\022D\n\006la" + - "bels\030\004 \003(\01324.google.cloud.datastream.v1a" + - "lpha1.Stream.LabelsEntry\022\031\n\014display_name" + - "\030\005 \001(\tB\003\340A\002\022J\n\rsource_config\030\006 \001(\0132..goo" + - "gle.cloud.datastream.v1alpha1.SourceConf" + - "igB\003\340A\002\022T\n\022destination_config\030\007 \001(\01323.go" + - "ogle.cloud.datastream.v1alpha1.Destinati" + - "onConfigB\003\340A\002\022=\n\005state\030\010 \001(\0162..google.cl" + - "oud.datastream.v1alpha1.Stream.State\022T\n\014" + - "backfill_all\030e \001(\0132<.google.cloud.datast" + - "ream.v1alpha1.Stream.BackfillAllStrategy" + - "H\000\022V\n\rbackfill_none\030f \001(\0132=.google.cloud" + - ".datastream.v1alpha1.Stream.BackfillNone" + - "StrategyH\000\022<\n\006errors\030\t \003(\0132\'.google.clou" + - "d.datastream.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023Bac" + - "kfillAllStrategy\022P\n\027oracle_excluded_obje" + - "cts\030\001 \001(\0132-.google.cloud.datastream.v1al" + - "pha1.OracleRdbmsH\000\022N\n\026mysql_excluded_obj" + - "ects\030\002 \001(\0132,.google.cloud.datastream.v1a" + - "lpha1.MysqlRdbmsH\000B\022\n\020excluded_objects\032\026" + - "\n\024BackfillNoneStrategy\032-\n\013LabelsEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\225\001\n\005State\022" + - "\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007R" + - "UNNING\020\002\022\n\n\006PAUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n" + - "\006FAILED\020\005\022\026\n\022FAILED_PERMANENTLY\020\006\022\014\n\010STA" + - "RTING\020\007\022\014\n\010DRAINING\020\010:_\352A\\\n datastream.g" + - "oogleapis.com/Stream\0228projects/{project}" + - "/locations/{location}/streams/{stream}B\023" + - "\n\021backfill_strategy\"\343\001\n\005Error\022\016\n\006reason\030" + - "\001 \001(\t\022\022\n\nerror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001" + - "(\t\022.\n\nerror_time\030\004 \001(\0132\032.google.protobuf" + - ".Timestamp\022E\n\007details\030\005 \003(\01324.google.clo" + - "ud.datastream.v1alpha1.Error.DetailsEntr" + - "y\032.\n\014DetailsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"U\n\020ValidationResult\022A\n\013validat" + - "ions\030\001 \003(\0132,.google.cloud.datastream.v1a" + - "lpha1.Validation\"\206\002\n\nValidation\022\023\n\013descr" + - "iption\030\001 \001(\t\022C\n\006status\030\002 \001(\01623.google.cl" + - "oud.datastream.v1alpha1.Validation.Statu" + - "s\022D\n\007message\030\003 \003(\01323.google.cloud.datast" + - "ream.v1alpha1.ValidationMessage\022\014\n\004code\030" + - "\004 \001(\t\"J\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022" + - "\020\n\014NOT_EXECUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020" + - "\003\"\272\002\n\021ValidationMessage\022\017\n\007message\030\001 \001(\t" + - "\022H\n\005level\030\002 \001(\01629.google.cloud.datastrea" + - "m.v1alpha1.ValidationMessage.Level\022S\n\010me" + - "tadata\030\003 \003(\0132A.google.cloud.datastream.v" + - "1alpha1.ValidationMessage.MetadataEntry\022" + - "\014\n\004code\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL" + - "_UNSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>" + - "\n\rGcsFileFormat\022\037\n\033GCS_FILE_FORMAT_UNSPE" + - "CIFIED\020\000\022\010\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileForm" + - "at\022\"\n\036SCHEMA_FILE_FORMAT_UNSPECIFIED\020\000\022\022" + - "\n\016NO_SCHEMA_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002" + - "B\371\001\n$com.google.cloud.datastream.v1alpha" + - "1B\035CloudDatastreamResourcesProtoP\001ZDclou" + - "d.google.com/go/datastream/apiv1alpha1/d" + - "atastreampb;datastreampb\252\002 Google.Cloud." + - "Datastream.V1Alpha1\312\002 Google\\Cloud\\Datas" + - "tream\\V1alpha1\352\002#Google::Cloud::Datastre" + - "am::V1alpha1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor, - new java.lang.String[] { "Hostname", "Port", "Username", "Password", "DatabaseService", "ConnectionAttributes", }); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor, - new java.lang.String[] { "Hostname", "Port", "Username", "Password", "SslConfig", }); - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor, - new java.lang.String[] { "BucketName", "RootPath", }); - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor, - new java.lang.String[] { "Hostname", "Username", "Port", "Password", "PrivateKey", "AuthenticationMethod", }); - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor, - new java.lang.String[] { "VpcName", "Subnet", }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "State", "Error", "VpcPeeringConfig", }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor, - new java.lang.String[] { "PrivateConnectionName", }); - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "DestinationAddress", "DestinationPort", }); - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor, - new java.lang.String[] { "ClientKey", "ClientKeySet", "ClientCertificate", "ClientCertificateSet", "CaCertificate", "CaCertificateSet", }); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "OracleProfile", "GcsProfile", "MysqlProfile", "NoConnectivity", "StaticServiceIpConnectivity", "ForwardSshConnectivity", "PrivateConnectivity", "Profile", "Connectivity", }); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor, - new java.lang.String[] { "ColumnName", "DataType", "Length", "Precision", "Scale", "Encoding", "PrimaryKey", "Nullable", "OrdinalPosition", }); - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor, - new java.lang.String[] { "TableName", "OracleColumns", }); - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor, - new java.lang.String[] { "SchemaName", "OracleTables", }); - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor, - new java.lang.String[] { "OracleSchemas", }); - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor, - new java.lang.String[] { "Allowlist", "Rejectlist", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor, - new java.lang.String[] { "ColumnName", "DataType", "Length", "Collation", "PrimaryKey", "Nullable", "OrdinalPosition", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor, - new java.lang.String[] { "TableName", "MysqlColumns", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor, - new java.lang.String[] { "DatabaseName", "MysqlTables", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor, - new java.lang.String[] { "MysqlDatabases", }); - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor, - new java.lang.String[] { "Allowlist", "Rejectlist", }); - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor, - new java.lang.String[] { "SourceConnectionProfileName", "OracleSourceConfig", "MysqlSourceConfig", "SourceStreamConfig", }); - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor, - new java.lang.String[] { "SchemaFileFormat", "Compression", }); - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor, - new java.lang.String[] { "Path", "GcsFileFormat", "FileRotationMb", "FileRotationInterval", "AvroFileFormat", "JsonFileFormat", "FileFormat", }); - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor, - new java.lang.String[] { "DestinationConnectionProfileName", "GcsDestinationConfig", "DestinationStreamConfig", }); - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "Labels", "DisplayName", "SourceConfig", "DestinationConfig", "State", "BackfillAll", "BackfillNone", "Errors", "BackfillStrategy", }); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor, - new java.lang.String[] { "OracleExcludedObjects", "MysqlExcludedObjects", "ExcludedObjects", }); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor, - new java.lang.String[] { "Reason", "ErrorUuid", "Message", "ErrorTime", "Details", }); - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor, - new java.lang.String[] { "Validations", }); - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor, - new java.lang.String[] { "Description", "Status", "Message", "Code", }); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor, - new java.lang.String[] { "Message", "Level", "Metadata", "Code", }); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor = - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java deleted file mode 100644 index e627806fff25..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java +++ /dev/null @@ -1,640 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamServiceProto { - private CloudDatastreamServiceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datastream/v1alpha1/datas" + - "tream.proto\022 google.cloud.datastream.v1a" + - "lpha1\032\034google/api/annotations.proto\032\027goo" + - "gle/api/client.proto\032\037google/api/field_b" + - "ehavior.proto\032\031google/api/resource.proto" + - "\032;google/cloud/datastream/v1alpha1/datas" + - "tream_resources.proto\032#google/longrunnin" + - "g/operations.proto\032 google/protobuf/fiel" + - "d_mask.proto\032\037google/protobuf/timestamp." + - "proto\"\275\003\n DiscoverConnectionProfileReque" + - "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" + - "oogleapis.com/ConnectionProfile\022R\n\022conne" + - "ction_profile\030\310\001 \001(\01323.google.cloud.data" + - "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" + - "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" + - "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" + - "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" + - "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" + - "rdbms\030e \001(\0132,.google.cloud.datastream.v1" + - "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" + - "\n\013data_object\"\276\001\n!DiscoverConnectionProf" + - "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" + - "le.cloud.datastream.v1alpha1.OracleRdbms" + - "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" + - "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" + - "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" + - "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + - "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" + - "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" + - "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" + - "\"\n datastream.googleapis.com/Stream\"N\n\023F" + - "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" + - "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" + - "ListConnectionProfilesRequest\022C\n\006parent\030" + - "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" + - "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + - "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + - "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" + - "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" + - "ogle.cloud.datastream.v1alpha1.Connectio" + - "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + - "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" + - "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." + - "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" + - "ateConnectionProfileRequest\022C\n\006parent\030\001 " + - "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" + - "onnectionProfile\022\"\n\025connection_profile_i" + - "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" + - "23.google.cloud.datastream.v1alpha1.Conn" + - "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + - "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" + - "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" + - "23.google.cloud.datastream.v1alpha1.Conn" + - "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" + - "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" + - "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" + - "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" + - " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" + - "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." + - "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + - "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + - "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " + - "\003(\0132(.google.cloud.datastream.v1alpha1.S" + - "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + - "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" + - "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + - "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" + - "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" + - "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" + - "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" + - "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + - "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" + - " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" + - "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" + - "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" + - "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" + - "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" + - "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" + - "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" + - ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" + - "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" + - "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" + - "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" + - "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" + - "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" + - "_result\030\010 \001(\01322.google.cloud.datastream." + - "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" + - "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" + - "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" + - "vateConnection\022\"\n\025private_connection_id\030" + - "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" + - ".google.cloud.datastream.v1alpha1.Privat" + - "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + - "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" + - "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" + - "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + - "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" + - "ionsResponse\022P\n\023private_connections\030\001 \003(" + - "\01323.google.cloud.datastream.v1alpha1.Pri" + - "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" + - "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" + - "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" + - "atastream.googleapis.com/PrivateConnecti" + - "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" + - "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" + - "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + - "pis.com/PrivateConnection\"\272\001\n\022CreateRout" + - "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" + - "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " + - "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" + - "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" + - "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" + - "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" + - "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + - "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + - "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" + - " \003(\0132\'.google.cloud.datastream.v1alpha1." + - "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + - "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" + - "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" + - "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" + - "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" + - "stream.googleapis.com/Route2\212\'\n\nDatastre" + - "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" + - "loud.datastream.v1alpha1.ListConnectionP" + - "rofilesRequest\032@.google.cloud.datastream" + - ".v1alpha1.ListConnectionProfilesResponse" + - "\"M\202\323\344\223\002>\022\022*\022" + - "\022* - * Required. The name of the connection profile resource to get. - *
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index b6968cd1e504..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetPrivateConnectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java deleted file mode 100644 index 738f0aa965a5..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetRouteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java deleted file mode 100644 index 8d5ae593825a..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java deleted file mode 100644 index fe72f9f2bf88..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface NoConnectivitySettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index fcc6ed472d1a..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface PrivateConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The privateConnectionName. - */ - java.lang.String getPrivateConnectionName(); - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for privateConnectionName. - */ - com.google.protobuf.ByteString - getPrivateConnectionNameBytes(); -} diff --git a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index 70408cec0b1a..000000000000 --- a/owl-bot-staging/java-datastream/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface StaticServiceIpConnectivityOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - com.google.protobuf.MessageOrBuilder { -}